diff options
author | ed <ed@FreeBSD.org> | 2009-02-28 10:10:30 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-28 10:10:30 +0000 |
commit | f05698585dfff301fe972774bb632c6bdb28da90 (patch) | |
tree | aed61ae8dea8d203ff43b736d45cb76269527ddc /sys/sys/fcntl.h | |
parent | b2ec174608f896fcb64ca3b112816ae647426614 (diff) | |
download | FreeBSD-src-f05698585dfff301fe972774bb632c6bdb28da90.zip FreeBSD-src-f05698585dfff301fe972774bb632c6bdb28da90.tar.gz |
Add missing POSIX 1003.1-2008 open(2) flag; O_TTY_INIT.
On FreeBSD, this is the default behaviour. According to the spec, we may
give this flag a value of zero, but I'd rather not do this. If we define
it to a non-zero value, we can always change default behaviour without
changing the ABI. This is very unlikely to happen, though.
Diffstat (limited to 'sys/sys/fcntl.h')
-rw-r--r-- | sys/sys/fcntl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index 600ddd8..c3cbc51 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -140,6 +140,11 @@ typedef __pid_t pid_t; #define FEXEC O_EXEC #endif +/* Defined by POSIX 1003.1-2008; BSD default, but reserve for future use. */ +#if __POSIX_VISIBLE >= 200809 +#define O_TTY_INIT 0x00080000 /* Restore default termios attributes */ +#endif + /* * XXX missing O_DSYNC, O_RSYNC. */ |