summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/open.2
Commit message (Collapse)AuthorAgeFilesLines
* Document the ERESTART translation to EINTR for devfs nodes.kib2013-02-071-1/+12
| | | | | Based on the submission by: jilles MFC after: 2 weeks
* Fix mdoc errors.kib2011-04-011-3/+2
| | | | | Submitted by: ru MFC after: 3 days
* Document O_CLOEXEC.kib2011-03-251-4/+16
| | | | | Reviewed by: jhb MFC after: 1 week
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-2/+2
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Actually make O_DIRECTORY work.ed2010-03-211-0/+12
| | | | | | According to POSIX open() must return ENOTDIR when the path name does not refer to a path name. Change vn_open() to respect this flag. This also simplifies the Linuxolator a bit.
* Add missing POSIX 1003.1-2008 open(2) flag; O_TTY_INIT.ed2009-02-281-1/+15
| | | | | | | On FreeBSD, this is the default behaviour. According to the spec, we may give this flag a value of zero, but I'd rather not do this. If we define it to a non-zero value, we can always change default behaviour without changing the ABI. This is very unlikely to happen, though.
* Man pages for the openat(2), fexecve(2) and related syscalls.kib2008-04-161-9/+76
| | | | Reviewed by: ru
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Be more specific in ENXIO description:pjd2007-01-071-3/+4
| | | | | | - O_NONBLOCK flag has to be set, if it is not set, open(2) will wait for another process opening the fifo for reading, - Use O_WRONLY which implies that the file has to be opened _only_ for write.
* open(2) returns EROFS when O_CREAT is specified and the named file wouldpjd2007-01-071-0/+3
| | | | reside on a read-only file system.
* - POSIX mentions that EACCES can be returned when O_TRUNC is specifiedpjd2007-01-071-1/+18
| | | | | separately. Do the same. - Document when EPERM can be returned.
* Prefer "to be modified" over "to be opened for writing".pjd2007-01-071-1/+1
| | | | | | | | | | This is quite tricky situation, because we allow to open a file with O_RDONLY|O_TRUNC. O_TRUNC modifies a file, but we actually don't open it for writing. EISDIR is also returned when we try to open a directory O_RDONLY|O_TRUNC, which is correct. POSIX says that "The result of using O_TRUNC with O_RDONLY is undefined.", we choose to accept it (Solaris did the same), that's why "to be modified" seems more accurate to me.
* Markup fixes.ru2006-09-171-3/+3
|
* Add references to fhopen, fhstat, getfh, lgetfh and fhstatfs.grog2006-01-101-0/+3
| | | | Pointed out by: Antony Curtis <antony@mysql.com>
* Tweak markup for POSIX standards. Minor wordsmithing.imp2005-12-011-3/+7
| | | | Submitted by: ru@
* Document O_NOCTTY and O_SYNC. O_NOCTTY is a nop on freebsd, while onimp2005-12-011-0/+17
| | | | | | | other systems it prevents a tty from becoming a controlling tty on the open. O_SYNC is the POSIX name for O_FSYNC. The Markup Police may need to tweak my references to standards.
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+1
|
* Markup, grammar, and spelling fixes.ru2004-06-301-1/+1
|
* Fix/add errno return values to match the NFS client implementation anddds2003-09-021-1/+5
| | | | | | | | better represent failures of special files accessed over NFS. Approved by: schweikh (mentor) Reviewed by: bde (as a description) MFC after: 6 weeks
* The .Fn functioncharnier2003-03-241-2/+3
| | | | The ... 2 system call
* mdoc(7) police: "The .Fa argument.".ru2002-12-191-1/+3
|
* mdoc(7) police: Tidy up the syscall language.ru2002-12-181-5/+5
| | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
* Uniformly refer to a file system as "file system".ru2002-12-121-2/+2
| | | | Approved by: re
* Fix the description of the O_NONBLOCK flag to match reality.ru2002-01-221-2/+1
| | | | | Prodded by: Maxim Konovalov <maxim@macomnet.ru> Obtained from: BSD/OS
* Remove the internal implementation details of wrapping syscalls,ru2001-10-261-19/+0
| | | | | | which do not match the reality anyway. Approved by: deischen, bde
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-1/+1
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* mdoc(7) police: added missing newline after .Dv macro call,ru2001-07-041-8/+12
| | | | removed hard sentence breaks.
* This patch implements O_DIRECT about 80% of the way. It takes a patchsetdillon2001-05-241-0/+7
| | | | | | | | | | | | | | | | Tor created a while ago, removes the raw I/O piece (that has cache coherency problems), and adds a buffer cache / VM freeing piece. Essentially this patch causes O_DIRECT I/O to not be left in the cache, but does not prevent it from going through the cache, hence the 80%. For the last 20% we need a method by which the I/O can be issued directly to buffer supplied by the user process and bypass the buffer cache entirely, but still maintain cache coherency. I also have the code working under -stable but the changes made to sys/file.h may not be MFCable, so an MFC is not on the table yet. Submitted by: tegge, dillon
* document O_NOFOLLOW and O_FSYNC flags to openalfred2000-11-291-0/+21
|
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* Document EWOULDBLOCK as a possible errno return value.archie2000-04-091-0/+7
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Explain ENXIO error status with respect to fifos.ghelmer1999-03-071-0/+4
| | | | PR: docs/8559
* Use ellipsis in the synopsis, and an appropriate explanation injkoshy1998-09-081-2/+6
| | | | | | the text of the manual page. Suggested by: bde
* Document EINVAL as a possible return value from open(2).joerg1997-10-221-0/+7
|
* Sort cross references.wosch1997-01-201-2/+2
|
* Add missing RETURN VALUES/ERRORS sections.mpp1997-01-121-0/+7
|
* Correctly use .Fn instead of .Nm to reference function namesmpp1996-08-221-3/+4
| | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages.
* Added missing section numbers to a bunch of .Xr macros, ormpp1996-03-271-1/+1
| | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
* Reviewed by: julian and (hsu?)julian1996-01-221-0/+20
| | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+257
OpenPOWER on IntegriCloud