bleh
This commit is contained in:
parent
58dfc9dffc
commit
f7a0b6da1d
@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)open.2 6.7 (Berkeley) 5/27/91
|
||||
.\" $Id: open.2,v 1.5 1993/12/15 17:36:59 jtc Exp $
|
||||
.\" $Id: open.2,v 1.6 1994/04/11 06:36:04 glass Exp $
|
||||
.\"
|
||||
.Dd May 27, 1991
|
||||
.Dt OPEN 2
|
||||
@ -70,7 +70,7 @@ the following values
|
||||
O_RDONLY open for reading only
|
||||
O_WRONLY open for writing only
|
||||
O_RDWR open for reading and writing
|
||||
O_NONBLOCK do not block on open
|
||||
O_NONBLOCK do not block on open or for data to become available
|
||||
O_APPEND append on each write
|
||||
O_CREAT create file if it does not exist
|
||||
O_TRUNC truncate size to 0
|
||||
@ -104,15 +104,15 @@ will fail even if the symbolic
|
||||
link points to a non-existent name.
|
||||
If the
|
||||
.Dv O_NONBLOCK
|
||||
flag is specified and the
|
||||
flag is specified, do not wait for the device or file to be ready or
|
||||
available. If the
|
||||
.Fn open
|
||||
call would result
|
||||
in the process being blocked for some reason (e.g., waiting for
|
||||
carrier on a dialup line),
|
||||
.Fn open
|
||||
returns immediately.
|
||||
The first time the process attempts to perform I/O on the open
|
||||
file it will block (not currently implemented).
|
||||
This flag also has the effect of making all subsequent I/O on the open file non-blocking.
|
||||
.Pp
|
||||
When opening a file, a lock with
|
||||
.Xr flock 2
|
||||
|
Loading…
Reference in New Issue
Block a user