From 434f5778077845cd7ab5f211536ba418240f0513 Mon Sep 17 00:00:00 2001 From: Joseph Koshy Date: Tue, 8 Sep 1998 02:02:50 +0000 Subject: [PATCH] Use ellipsis in the synopsis, and an appropriate explanation in the text of the manual page. Suggested by: bde --- lib/libc/sys/fcntl.2 | 8 ++++++-- lib/libc/sys/open.2 | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2 index 877e830cc34..fdf1941d3cb 100644 --- a/lib/libc/sys/fcntl.2 +++ b/lib/libc/sys/fcntl.2 @@ -40,7 +40,7 @@ .Sh SYNOPSIS .Fd #include .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/open.2 b/lib/libc/sys/open.2 index 73435287d16..15a4ef6f63f 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -40,7 +40,7 @@ .Sh SYNOPSIS .Fd #include .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