summaryrefslogtreecommitdiff
path: root/lib/libc/sys/ioctl.2
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-12-19 09:40:28 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-12-19 09:40:28 +0000
commit2efeeba554cbd7bdee9cfe17641c8bd335c7972f (patch)
treef0781cb8e5be3a35234a6d0c123d6ae11ba70e40 /lib/libc/sys/ioctl.2
parent3ca4c01eea0e54f4f560aff65f774d6bd0b0b87c (diff)
Notes
Diffstat (limited to 'lib/libc/sys/ioctl.2')
-rw-r--r--lib/libc/sys/ioctl.212
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2
index 9208ed728eeb..3278e4921502 100644
--- a/lib/libc/sys/ioctl.2
+++ b/lib/libc/sys/ioctl.2
@@ -76,10 +76,10 @@ An
.Fa request
has encoded in it whether the argument is an
.Dq in
-parameter
+argument
or
.Dq out
-parameter, and the size of the argument
+argument, and the size of the argument
.Fa argp
in bytes.
Macros and defines used in specifying an ioctl
@@ -97,10 +97,14 @@ system call
will fail if:
.Bl -tag -width Er
.It Bq Er EBADF
+The
.Fa d
+argument
is not a valid descriptor.
.It Bq Er ENOTTY
+The
.Fa d
+argument
is not associated with a character
special device.
.It Bq Er ENOTTY
@@ -109,12 +113,16 @@ of object that the descriptor
.Fa d
references.
.It Bq Er EINVAL
+The
.Fa request
or
.Fa argp
+argument
is not valid.
.It Bq Er EFAULT
+The
.Fa argp
+argument
points outside the process's allocated address space.
.El
.Sh SEE ALSO