mirror of https://github.com/mkerrisk/man-pages
Various further wording changes related to open file description, etc.
This commit is contained in:
parent
0847872439
commit
2c4bff3681
13
man2/open.2
13
man2/open.2
|
@ -58,7 +58,7 @@ returns a file descriptor, a small, non-negative integer
|
|||
for use in subsequent system calls
|
||||
.RB ( read "(2), " write "(2), " lseek "(2), " fcntl "(2), etc.)."
|
||||
The file descriptor returned by a successful call will be
|
||||
the lowest file descriptor not currently open for the process.
|
||||
the lowest-numbered file descriptor not currently open for the process.
|
||||
.PP
|
||||
The new file descriptor is set to remain open across an
|
||||
.BR execve (2)
|
||||
|
@ -75,16 +75,19 @@ A call to
|
|||
creates a new
|
||||
.IR "open file description" ,
|
||||
an entry in the system-wide table of open files.
|
||||
(A file descriptor is essentially a reference to one of these entries.)
|
||||
This entry records the file offset and the file status flags
|
||||
(modifiable via the
|
||||
.BR fcntl ()
|
||||
.B F_SETFL
|
||||
operation).
|
||||
A file descriptor is a reference to one of these entries;
|
||||
this reference is unaffected if
|
||||
.I pathname
|
||||
is subsequently removed or modified to refer to a different file.
|
||||
The new open file description is initially not shared
|
||||
with any other process.
|
||||
(But sharing may arise via
|
||||
.BR fork (2).)
|
||||
with any other process,
|
||||
but sharing may arise via
|
||||
.BR fork (2).
|
||||
.PP
|
||||
The parameter
|
||||
.I flags
|
||||
|
|
Loading…
Reference in New Issue