diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/ioctl.2 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2 index a1d5f79..c22bb5b 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 |