From 2c4bff3681e4d9373cfb4f353f4388017a67a417 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 27 Jun 2005 15:35:32 +0000 Subject: [PATCH] Various further wording changes related to open file description, etc. --- man2/open.2 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/man2/open.2 b/man2/open.2 index bbdd1722a..0d3cba75d 100644 --- a/man2/open.2 +++ b/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