diff options
author | bde <bde@FreeBSD.org> | 1996-11-29 16:28:40 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-11-29 16:28:40 +0000 |
commit | 623ea9097a9c438fd452300b19a68333a101c981 (patch) | |
tree | 3cafd120fdb55a90868176f0792dbb400ff961fe /sys/sys/fcntl.h | |
parent | 3b5f0bc30376be71cc3ed070066c6fc06b7b1456 (diff) | |
download | FreeBSD-src-623ea9097a9c438fd452300b19a68333a101c981.zip FreeBSD-src-623ea9097a9c438fd452300b19a68333a101c981.tar.gz |
Made O_NOCTTY distinct from the other flags (it clashed with O_RDONLY).
Found by: NIST-PCTS
Diffstat (limited to 'sys/sys/fcntl.h')
-rw-r--r-- | sys/sys/fcntl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index 7861e27..9101051 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)fcntl.h 8.3 (Berkeley) 1/21/94 - * $Id: fcntl.h,v 1.2 1994/08/02 07:52:57 davidg Exp $ + * $Id: fcntl.h,v 1.3 1996/01/30 23:00:34 mpp Exp $ */ #ifndef _SYS_FCNTL_H_ @@ -94,8 +94,8 @@ #define FHASLOCK 0x4000 /* descriptor holds advisory lock */ #endif -/* defined by POSIX 1003.1; BSD default, so no bit required */ -#define O_NOCTTY 0 /* don't assign controlling terminal */ +/* Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY. */ +#define O_NOCTTY 0x8000 /* don't assign controlling terminal */ #ifdef KERNEL /* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */ |