Module Name: src Committed By: christos Date: Sun Apr 10 15:45:34 UTC 2011
Modified Files: src/sys/kern: kern_descrip.c sys_descrip.c sys_generic.c sys_pipe.c uipc_syscalls.c vfs_syscalls.c src/sys/sys: fcntl.h filedesc.h Log Message: - Add O_CLOEXEC to open(2) - Add fd_set_exclose() to encapsulate uses of FIO{,N}CLEX, O_CLOEXEC, F{G,S}ETFD - Add a pipe1() function to allow passing flags to the fd's that pipe(2) opens to ease implementation of linux pipe2(2) - Factor out fp handling code from open(2) and fhopen(2) To generate a diff of this commit: cvs rdiff -u -r1.211 -r1.212 src/sys/kern/kern_descrip.c cvs rdiff -u -r1.19 -r1.20 src/sys/kern/sys_descrip.c cvs rdiff -u -r1.125 -r1.126 src/sys/kern/sys_generic.c cvs rdiff -u -r1.129 -r1.130 src/sys/kern/sys_pipe.c cvs rdiff -u -r1.141 -r1.142 src/sys/kern/uipc_syscalls.c cvs rdiff -u -r1.421 -r1.422 src/sys/kern/vfs_syscalls.c cvs rdiff -u -r1.36 -r1.37 src/sys/sys/fcntl.h cvs rdiff -u -r1.58 -r1.59 src/sys/sys/filedesc.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.