Change O_NOCTTY from 0 to 0x8000; this is already BSD default

behavior, but POSIX.1 and the COMPAT_{LINUX,SVR4} code require
it to be distinct from other oflag values.
This commit is contained in:
kleink 1997-04-03 17:51:47 +00:00
parent eb6be97252
commit 8cfa44e947

View File

@ -1,4 +1,4 @@
/* $NetBSD: fcntl.h,v 1.8 1995/03/26 20:24:12 jtc Exp $ */
/* $NetBSD: fcntl.h,v 1.9 1997/04/03 17:51:47 kleink Exp $ */
/*-
* Copyright (c) 1983, 1990, 1993
@ -95,8 +95,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 required to be distinct */
#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 */