sync with reality (prototype of open is varyadic)
This commit is contained in:
parent
e40530ec28
commit
57ddf70a57
|
@ -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 @@ Do not block on open or for data to become available.
|
|||
.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 ) .
|
||||
|
|
Loading…
Reference in New Issue