From 83329c27b739f7f2e5af9f66f5852d72a0a8b6a3 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Sun, 6 Sep 1998 08:50:49 +0000 Subject: Use a varargs style prototype in the manual page, with accompanying explanation in the text. --- lib/libc/sys/ioctl.2 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'lib/libc/sys/ioctl.2') 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 .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 -- cgit v1.1