History log of /freebsd-11.0-release/lib/libc/sys/open.2
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 303975 11-Aug-2016 gjb

Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE
cycle.

Prune svn:mergeinfo from the new branch, and rename it to RC1.

Update __FreeBSD_version.

Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and
the dvd1.iso packages population.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 285251 07-Jul-2015 trasz

Fix markup.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation


# 280983 02-Apr-2015 trasz

Update open(2) to make it more obvious that O_NOCTTY and O_TTY_INIT
are ignored.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 246476 07-Feb-2013 kib

Document the ERESTART translation to EINTR for devfs nodes.

Based on the submission by: jilles
MFC after: 2 weeks


# 220253 01-Apr-2011 kib

Fix mdoc errors.

Submitted by: ru
MFC after: 3 days


# 220000 25-Mar-2011 kib

Document O_CLOEXEC.

Reviewed by: jhb
MFC after: 1 week


# 211397 16-Aug-2010 joel

Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
translating these manual pages. Minor corrections by me.

Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>


# 205423 21-Mar-2010 ed

Actually make O_DIRECTORY work.

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.


# 189143 28-Feb-2009 ed

Add missing POSIX 1003.1-2008 open(2) flag; O_TTY_INIT.

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.


# 178245 16-Apr-2008 kib

Man pages for the openat(2), fexecve(2) and related syscalls.

Reviewed by: ru


# 165903 09-Jan-2007 imp

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


# 165878 07-Jan-2007 pjd

Be more specific in ENXIO description:
- 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.


# 165877 07-Jan-2007 pjd

open(2) returns EROFS when O_CREAT is specified and the named file would
reside on a read-only file system.


# 165862 07-Jan-2007 pjd

- POSIX mentions that EACCES can be returned when O_TRUNC is specified
separately. Do the same.
- Document when EPERM can be returned.


# 165861 07-Jan-2007 pjd

Prefer "to be modified" over "to be opened for writing".
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.


# 162385 17-Sep-2006 ru

Markup fixes.


# 154202 10-Jan-2006 grog

Add references to fhopen, fhstat, getfh, lgetfh and fhstatfs.

Pointed out by: Antony Curtis <antony@mysql.com>


# 152990 01-Dec-2005 imp

Tweak markup for POSIX standards. Minor wordsmithing.

Submitted by: ru@


# 152989 01-Dec-2005 imp

Document O_NOCTTY and O_SYNC. O_NOCTTY is a nop on freebsd, while on
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.


# 131504 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 131365 30-Jun-2004 ru

Markup, grammar, and spelling fixes.


# 119688 02-Sep-2003 dds

Fix/add errno return values to match the NFS client implementation and
better represent failures of special files accessed over NFS.

Approved by: schweikh (mentor)
Reviewed by: bde (as a description)
MFC after: 6 weeks


# 112543 24-Mar-2003 charnier

The .Fn function
The ... 2 system call


# 108087 19-Dec-2002 ru

mdoc(7) police: "The .Fa argument.".


# 108028 18-Dec-2002 ru

mdoc(7) police: Tidy up the syscall language.

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.


# 107788 12-Dec-2002 ru

Uniformly refer to a file system as "file system".

Approved by: re


# 89650 22-Jan-2002 ru

Fix the description of the O_NONBLOCK flag to match reality.

Prodded by: Maxim Konovalov <maxim@macomnet.ru>
Obtained from: BSD/OS


# 85555 26-Oct-2001 ru

Remove the internal implementation details of wrapping syscalls,
which do not match the reality anyway.

Approved by: deischen, bde


# 84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


# 79754 15-Jul-2001 dd

Remove whitespace at EOL.


# 79531 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


# 79204 04-Jul-2001 ru

mdoc(7) police: added missing newline after .Dv macro call,
removed hard sentence breaks.


# 77115 24-May-2001 dillon

This patch implements O_DIRECT about 80% of the way. It takes a patchset
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


# 69336 29-Nov-2000 alfred

document O_NOFOLLOW and O_FSYNC flags to open


# 59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


# 59105 09-Apr-2000 archie

Document EWOULDBLOCK as a possible errno return value.


# 50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48794 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
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


# 44559 07-Mar-1999 ghelmer

Explain ENXIO error status with respect to fifos.

PR: docs/8559


# 38930 08-Sep-1998 jkoshy

Use ellipsis in the synopsis, and an appropriate explanation in
the text of the manual page.

Suggested by: bde


# 30645 22-Oct-1997 joerg

Document EINVAL as a possible return value from open(2).


# 21907 20-Jan-1997 wosch

Sort cross references.


# 21579 12-Jan-1997 mpp

Add missing RETURN VALUES/ERRORS sections.


# 17782 22-Aug-1996 mpp

Correctly use .Fn instead of .Nm to reference function names
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.


# 14855 27-Mar-1996 mpp

Added missing section numbers to a bunch of .Xr macros, or
converted them into .Fn macros where appropriate. Also fixed
up some minor formatting problems.


# 13545 22-Jan-1996 julian

Reviewed by: julian and (hsu?)
Submitted by: John Birrel(L?)

changes for threadsafe operations


# 1574 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1573,
which included commits to RCS files with non-trunk default branches.


# 1573 27-May-1994 rgrimes

BSD 4.4 Lite Lib Sources