summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-01-07 23:01:32 +0000
committerpjd <pjd@FreeBSD.org>2007-01-07 23:01:32 +0000
commit78c4023bc4a7414a4205826ed53e8c4848830b31 (patch)
treec0bf17257eb83e9741c7111f2bc8125ce20d5721 /lib
parent1d842041db07130def480402fd39e9724816e4f8 (diff)
downloadFreeBSD-src-78c4023bc4a7414a4205826ed53e8c4848830b31.zip
FreeBSD-src-78c4023bc4a7414a4205826ed53e8c4848830b31.tar.gz
open(2) returns EROFS when O_CREAT is specified and the named file would
reside on a read-only file system.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/open.23
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 51ea571..b7e40f8 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -259,6 +259,9 @@ it is to be modified.
.It Bq Er EROFS
The named file resides on a read-only file system,
and the file is to be modified.
+.It Bq Er EROFS
+.Dv O_CREAT
+is specified and the named file would reside on a read-only file system.
.It Bq Er EMFILE
The process has already reached its limit for open file descriptors.
.It Bq Er ENFILE
OpenPOWER on IntegriCloud