History log of /src/lib/libc/stdio/flags.c |
Revision | | Date | Author | Comments |
1.19 |
| 09-Nov-2017 |
christos | Add O_REGULAR to enforce opening of only regular files (like we have O_DIRECTORY for directories). This is better than open(, O_NONBLOCK), fstat()+S_ISREG() because opening devices can have side effects.
|
1.18 |
| 04-Nov-2017 |
christos | Implement nofollow (l) for fopen(3).
|
1.17 |
| 15-Nov-2012 |
christos | branches: 1.17.22; Add 'x' to the mode bits to specify O_EXCL, like glibc.
|
1.16 |
| 15-Mar-2012 |
christos | branches: 1.16.2; - ansify, knf. - no functional changes
|
1.15 |
| 26-Jun-2011 |
christos | branches: 1.15.2; 1.15.4; * Arrange for interfaces that create new file descriptors to be able to set close-on-exec on creation (http://udrepper.livejournal.com/20407.html).
- Add F_DUPFD_CLOEXEC to fcntl(2). - Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing. - Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK. - Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK. - Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter for socket(2) and socketpair(2). - Add new paccept(2) syscall that takes an additional sigset_t to alter the sigmask temporarily and a flags argument to set SOCK_CLOEXEC, SOCK_NONBLOCK. - Add new mode character 'e' to fopen(3) and popen(3) to open pipes and file descriptors for close on exec. - Add new kqueue1(2) syscall with a new flags argument to open the kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.
* Fix the system calls that take socklen_t arguments to actually do so.
* Don't include userland header files (signal.h) from system header files (rump_syscallargs.h).
* Bump libc version for the new syscalls.
|
1.14 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
1.13 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.12 |
| 15-Jan-2000 |
christos | branches: 1.12.6; add and "f" flag to fopen that makes sure we are opening a plain file, so that there is no chance to block.
|
1.11 |
| 20-Sep-1999 |
lukem | back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. _DIAGASSERT() is still retained.
|
1.10 |
| 16-Sep-1999 |
lukem | * use _DIAGASSERT() to check pointer arguments against NULL and file descriptors against -1 (as appropriate). * add actual checks which to detect stuff that would trigger_DIAGASSERT(), and attempt to return a sane error condition. * knf some code * remove some `register' decls.
the first two items result in the addition of code similar to the following in various functions:
_DIAGASSERT(path != NULL) #ifdef _DIAGNOSTIC if (path == NULL) { errno = EFAULT; return (-1); } #endif
|
1.9 |
| 19-Mar-1999 |
christos | include <fcntl.h> instead of <sys/file.h>
|
1.8 |
| 03-Feb-1998 |
perry | remove obsolete register declarations
|
1.7 |
| 13-Jul-1997 |
christos | Fix RCSID's Fix gcc warnings. Add prototypes for functions that were declared in more than one place to local.h or extern.h and use that instead.
|
1.6 |
| 20-Dec-1996 |
cgd | pull in local.h for prototypes. first arg to __sflags() is const char *
|
1.5 |
| 02-Feb-1995 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
1.4 |
| 31-Dec-1993 |
jtc | Add explicit return types to function definitions.
|
1.3 |
| 26-Aug-1993 |
jtc | Declare rcsid strings so they are stored in text segment.
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 02-Feb-1995 |
jtc | imported from 44lite
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.12.6.1 |
| 06-Feb-2002 |
nathanw | #include "reentrant.h" before "local.h" so that the thread types used in fileext.h are avaliable.
|
1.15.4.1 |
| 28-Nov-2012 |
riz | Pull up following revision(s) (requested by christos in ticket #723): lib/libc/stdio/flags.c: revision 1.17 lib/libc/stdio/fopen.3: revision 1.29 Add 'x' to the mode bits to specify O_EXCL, like glibc.
|
1.15.2.2 |
| 16-Jan-2013 |
yamt | sync with (a bit old) head
|
1.15.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.16.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.17.22.1 |
| 12-Apr-2018 |
msaitoh | Pull up following revision(s) (requested by christos in ticket #741): lib/libc/stdio/flags.c: revision 1.19 lib/libc/stdio/fdopen.c: revision 1.18 sys/kern/vfs_vnops.c: revision 1.196 lib/libc/stdio/freopen.c: revision 1.20 lib/libc/stdio/fopen.c: revision 1.17 external/bsd/nvi/dist/common/recover.c: revision 1.10 external/bsd/nvi/dist/common/recover.c: revision 1.11 lib/libc/sys/open.2: revision 1.58 sys/sys/fcntl.h: revision 1.49 make the checkok test stricter to avoid races, and use O_REGULAR. Instead of opening the file and using popen(3), pass the file descriptor to sendmail directory. Idea and code from Todd Miller. Add O_REGULAR to enforce opening of only regular files (like we have O_DIRECTORY for directories). This is better than open(, O_NONBLOCK), fstat()+S_ISREG() because opening devices can have side effects.
|