Allow setting FD_CLOEXEC flag for new sockets
authorUlrich Drepper <drepper@redhat.com>
Wed, 21 Nov 2007 07:28:50 +0000 (02:28 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 22 Jan 2008 09:34:59 +0000 (10:34 +0100)
commit3a50c04428aae81343fa76fc6fa5317e548dfacf
treef9b9df02db835fc2df392d4db730f1e896567f7e
parenta039c58ab6b7b88ae19aae1582424f0ce011a903
Allow setting FD_CLOEXEC flag for new sockets

This is a first user of sys_indirect.  Several of the socket-related system
calls which produce a file handle now can be passed an additional parameter
to set the FD_CLOEXEC flag.

 include/asm-x86/ia32_unistd.h |    1 +
 include/linux/indirect.h      |   27 +++++++++++++++++++++++++++
 net/socket.c                  |   21 +++++++++++++--------
 3 files changed, 41 insertions(+), 8 deletions(-)

Signed-off-by: Jens Axboe <axboe@axboetest.dk.oracle.com>
include/asm-x86/ia32_unistd.h
include/linux/indirect.h
net/socket.c