aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/open.2
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-01-07 23:01:32 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-01-07 23:01:32 +0000
commitbc87da10b60c1af83c533cdee2076de8ff17c589 (patch)
treec0bf17257eb83e9741c7111f2bc8125ce20d5721 /lib/libc/sys/open.2
parentdc73f9b1509ebdbc55dbabed2e52e649deba5012 (diff)
downloadsrc-bc87da10b60c1af83c533cdee2076de8ff17c589.tar.gz
src-bc87da10b60c1af83c533cdee2076de8ff17c589.zip
open(2) returns EROFS when O_CREAT is specified and the named file would
reside on a read-only file system.
Notes
Notes: svn path=/head/; revision=165877
Diffstat (limited to 'lib/libc/sys/open.2')
-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 51ea5719d68f..b7e40f86d308 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