diff options
| author | Joseph Koshy <jkoshy@FreeBSD.org> | 1998-09-14 06:38:03 +0000 |
|---|---|---|
| committer | Joseph Koshy <jkoshy@FreeBSD.org> | 1998-09-14 06:38:03 +0000 |
| commit | d94036bc48a7f61a9ed99a3e822ef1860fb81e51 (patch) | |
| tree | 4253596cf7fa21e7bdeb410b7ba33ed83d8fd4fa /lib | |
| parent | 09351b5e1685365423a409f72c36186b8926c0e6 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/sys/fcntl.2 | 8 | ||||
| -rw-r--r-- | lib/libc/sys/ioctl.2 | 17 | ||||
| -rw-r--r-- | lib/libc/sys/open.2 | 8 |
3 files changed, 28 insertions, 5 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2 index 877e830cc346..fdf1941d3cb1 100644 --- a/lib/libc/sys/fcntl.2 +++ b/lib/libc/sys/fcntl.2 @@ -40,7 +40,7 @@ .Sh SYNOPSIS .Fd #include <fcntl.h> .Ft int -.Fn fcntl "int fd" "int cmd" "int arg" +.Fn fcntl "int fd" "int cmd" "..." .Sh DESCRIPTION .Fn Fcntl provides for control over descriptors. @@ -48,7 +48,11 @@ The argument .Fa fd is a descriptor to be operated on by .Fa cmd -as follows: +as described below. Depending on the value of +.Fa cmd , +.Nm +can take an additional third argument +.Fa "int arg" . .Bl -tag -width F_GETOWNX .It Dv F_DUPFD Return a new descriptor as follows: diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2 index a1d5f7963cba..30b315e017bc 100644 --- a/lib/libc/sys/ioctl.2 +++ b/lib/libc/sys/ioctl.2 @@ -31,6 +31,8 @@ .\" .\" @(#)ioctl.2 8.2 (Berkeley) 12/11/93 .\" +.\" $Id: ioctl.2,v 1.6 1998/09/09 01:30:25 jkoshy Exp $ +.\" .Dd December 11, 1993 .Dt IOCTL 2 .Os BSD 4 @@ -40,7 +42,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 +56,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 diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 73435287d165..15a4ef6f63fd 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -40,7 +40,7 @@ .Sh SYNOPSIS .Fd #include <fcntl.h> .Ft int -.Fn open "const char *path" "int flags" "mode_t mode" +.Fn open "const char *path" "int flags" "..." .Sh DESCRIPTION The file name specified by .Fa path @@ -54,7 +54,11 @@ The argument may indicate the file is to be created if it does not exist (by specifying the .Dv O_CREAT -flag), in which case the file is created with mode +flag). In this case +.Nm +requires a third argument +.Fa "mode_t mode" , +and the file is created with mode .Fa mode as described in .Xr chmod 2 |
