From b075ad5b007248d50e4c2e838b460c9c7cfd9fad Mon Sep 17 00:00:00 2001 From: Theo Schlossnagle Date: Sun, 31 Mar 2013 04:00:15 +0000 Subject: 3665 Implement O_CLOEXEC as an open() flag Reviewed by: Robert Mustacchi Reviewed by: Gordon Ross Reviewed by: Dan McDonald Approved by: Richard Lowe --- usr/src/uts/common/sys/file.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr/src/uts/common/sys/file.h') diff --git a/usr/src/uts/common/sys/file.h b/usr/src/uts/common/sys/file.h index f402bc7079..03acc088c2 100644 --- a/usr/src/uts/common/sys/file.h +++ b/usr/src/uts/common/sys/file.h @@ -26,6 +26,8 @@ /* 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 @@ -113,6 +115,8 @@ typedef struct fpollinfo { #define FSEARCH 0x200000 /* O_SEARCH = 0x200000 */ #define FEXEC 0x400000 /* O_EXEC = 0x400000 */ +#define FCLOEXEC 0x800000 /* O_CLOEXEC = 0x800000 */ + #ifdef _KERNEL /* -- cgit v1.2.3