diff options
Diffstat (limited to 'man2/open.2')
| -rw-r--r-- | man2/open.2 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/man2/open.2 b/man2/open.2 index 1c1a878467..31994d482a 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -52,7 +52,7 @@ open, creat \- open and possibly create a file or device .fi .SH DESCRIPTION Given a -.IR pathname +.I pathname for a file, .BR open () returns a file descriptor, a small, non-negative integer @@ -151,7 +151,7 @@ Specifying this flag permits a program to avoid an additional .BR fcntl (2) .B F_SETFD operation to set the -.BR FD_CLOEXEC +.B FD_CLOEXEC flag. Additionally, use of this flag is essential in some multithreaded programs @@ -159,7 +159,7 @@ since using a separate .BR fcntl (2) .B F_SETFD operation to set the -.BR FD_CLOEXEC +.B FD_CLOEXEC flag does not suffice to avoid race conditions where one thread opens a file descriptor at the same time as another thread does a @@ -300,7 +300,7 @@ returned will cause the calling process to wait. For the handling of FIFOs (named pipes), see also .BR fifo (7). For a discussion of the effect of -.BR O_NONBLOCK +.B O_NONBLOCK in conjunction with mandatory file locks and with file leases, see .BR fcntl (2). .TP @@ -335,7 +335,7 @@ The argument specifies the permissions to use in case a new file is created. It is modified by the process's -.IR umask +.I umask in the usual way: the permissions of the created file are .IR "(mode & ~umask)" . Note that this mode only applies to future accesses of the @@ -423,7 +423,7 @@ already exists and were used. .TP .B EFAULT -.IR pathname +.I pathname points outside your accessible address space. .TP .B EFBIG @@ -459,7 +459,7 @@ was a symbolic link. The process already has the maximum number of files open. .TP .B ENAMETOOLONG -.IR pathname +.I pathname was too long. .TP .B ENFILE @@ -532,12 +532,12 @@ The .BR O_DIRECTORY , .BR O_NOATIME , and -.BR O_NOFOLLOW +.B O_NOFOLLOW flags are Linux specific. One may have to define the .B _GNU_SOURCE macro to get their definitions. -.BR O_DIRECT +.B O_DIRECT is not specified in POSIX; one has to define .B _GNU_SOURCE to get its definition. |
