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,10 +24,12 @@
*/
/* 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,10 +113,12 @@
/* 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>