diff options
-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 e56ddc0..51ea571 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 |