Print this page
3665 Implement O_CLOEXEC as an open() flag
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Reviewed by: Dan McDonald <danmcd@nexenta.com>

*** 24,33 **** --- 24,35 ---- */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ + /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */ + #ifndef _SYS_FILE_H #define _SYS_FILE_H #include <sys/t_lock.h> #ifdef _KERNEL
*** 111,120 **** --- 113,124 ---- /* f_flag2 (open-only) */ #define FSEARCH 0x200000 /* O_SEARCH = 0x200000 */ #define FEXEC 0x400000 /* O_EXEC = 0x400000 */ + #define FCLOEXEC 0x800000 /* O_CLOEXEC = 0x800000 */ + #ifdef _KERNEL /* * Fake flags for driver ioctl calls to inform them of the originating * process' model. See <sys/model.h>