Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys sync with reality (prototype of open is varyadic)



details:   https://anonhg.NetBSD.org/src/rev/9df32de09b02
branches:  trunk
changeset: 764413:9df32de09b02
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 20 19:57:58 2011 +0000

description:
sync with reality (prototype of open is varyadic)

diffstat:

 lib/libc/sys/open.2 |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 6dfea56059c5 -r 9df32de09b02 lib/libc/sys/open.2
--- a/lib/libc/sys/open.2       Wed Apr 20 19:40:00 2011 +0000
+++ b/lib/libc/sys/open.2       Wed Apr 20 19:57:58 2011 +0000
@@ -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 ) .



Home | Main Index | Thread Index | Old Index