summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>1998-09-06 08:50:49 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>1998-09-06 08:50:49 +0000
commitfe6894b6dcf8f0a73ed1a3802e23d48bea3dbc0d (patch)
treea8da53a068dfb6f0cfb394f629868b4371af27da /lib/libc
parente5d237d4b9985f39d48b8c3949bea4f835ea5416 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/ioctl.215
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2
index a1d5f7963cba..c22bb5b1e12e 100644
--- a/lib/libc/sys/ioctl.2
+++ b/lib/libc/sys/ioctl.2
@@ -40,7 +40,7 @@
.Sh SYNOPSIS
.Fd #include <sys/ioctl.h>
.Ft int
-.Fn ioctl "int d" "unsigned long request" "char *argp"
+.Fn ioctl "int d" "unsigned long request" "..."
.Sh DESCRIPTION
The
.Fn ioctl
@@ -54,6 +54,19 @@ The argument
.Fa d
must be an open file descriptor.
.Pp
+The third argument to
+.Nm
+is traditionally named
+.Ar "char *argp" .
+Most uses of
+.Nm
+in
+.Fx 3.0
+however, require the third argument to be a
+.Ar caddr_t
+or an
+.Ar int .
+.Pp
An ioctl
.Fa request
has encoded in it whether the argument is an