diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-01-07 17:55:19 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-01-07 17:55:19 +0000 |
| commit | 5a05b91821479f4ed994264bda2eb626033d3489 (patch) | |
| tree | 3d8186e3e6284afb1585e3350c9e96e96637be65 /lib | |
| parent | 6a8780971a4b6b09543a8b543a3ef599e425b95c (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/sys/open.2 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index e56ddc0cb12a..51ea5719d68f 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -32,7 +32,7 @@ .\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" $FreeBSD$ .\" -.Dd January 10, 2006 +.Dd January 7, 2007 .Dt OPEN 2 .Os .Sh NAME @@ -229,11 +229,28 @@ Search permission is denied for a component of the path prefix. The required permissions (for reading and/or writing) are denied for the given flags. .It Bq Er EACCES +.Dv O_TRUNC +is specified and write permission is denied. +.It Bq Er EACCES .Dv O_CREAT is specified, the file does not exist, and the directory in which it is to be created does not permit writing. +.It Bq Er EPERM +.Dv O_CREAT +is specified, the file does not exist, and the directory in which it is to be +created has its immutable flag set, see the +.Xr chflags 2 +manual page for more information. +.It Bq Er EPERM +.Dv The named file has its immutable flag set and the file is to be modified. +.It Bq Er EPERM +.Dv The named file has its append-only flag set, the file is to be modified, and +.Dv O_TRUNC +is specified or +.Dv O_APPEND +is not specified. .It Bq Er ELOOP Too many symbolic links were encountered in translating the pathname. .It Bq Er EISDIR |
