Module Name:    src
Committed By:   christos
Date:           Wed Apr 20 19:57:58 UTC 2011

Modified Files:
        src/lib/libc/sys: open.2

Log Message:
sync with reality (prototype of open is varyadic)


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/sys/open.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/open.2
diff -u src/lib/libc/sys/open.2:1.49 src/lib/libc/sys/open.2:1.50
--- src/lib/libc/sys/open.2:1.49	Sun Apr 10 20:21:45 2011
+++ src/lib/libc/sys/open.2	Wed Apr 20 15:57:58 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: open.2,v 1.49 2011/04/11 00:21:45 wiz Exp $
+.\"	$NetBSD: open.2,v 1.50 2011/04/20 19:57:58 christos Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)open.2	8.2 (Berkeley) 11/16/93
 .\"
-.Dd April 10, 2011
+.Dd April 20, 2011
 .Dt OPEN 2
 .Os
 .Sh NAME
@@ -40,7 +40,7 @@
 .Sh SYNOPSIS
 .In 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
@@ -72,10 +72,10 @@
 .It Dv O_APPEND
 Append to the file on each write.
 .It Dv O_CREAT
-Create the file if it does not exist, in which case the file is
-created with mode
-.Ar mode
-as described in
+Create the file if it does not exist.
+The third argument of type
+.Ft mode_t
+is used to compute the mode bits of the file as described in
 .Xr chmod 2
 and modified by the process' umask value (see
 .Xr umask 2 ) .

Reply via email to