diff options
author | mike <mike@FreeBSD.org> | 2002-10-13 14:25:01 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-10-13 14:25:01 +0000 |
commit | 652e37b5de2bde430fa1342228dacc797cf46c35 (patch) | |
tree | 872b63033bb3fdb4783cac2bfb20fa9a6e0adaad | |
parent | ca337b355fefad2c8a7cdea07c1f0f96e96fd45a (diff) | |
download | FreeBSD-src-652e37b5de2bde430fa1342228dacc797cf46c35.zip FreeBSD-src-652e37b5de2bde430fa1342228dacc797cf46c35.tar.gz |
Move the _POSIX_VERSION constant from <unistd.h> to <sys/unistd.h>, so
that it can be used in-kernel for a sysctl.
-rw-r--r-- | include/unistd.h | 3 | ||||
-rw-r--r-- | sys/sys/unistd.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h index e0a3db4..e893da7 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -143,8 +143,7 @@ typedef __uid_t_ uid_t; #define _XOPEN_UNIX -1 #endif -/* Define the versions we target for compliance. */ -#define _POSIX_VERSION 200112L +/* Define the POSIX.2 version we target for compliance. */ #define _POSIX2_VERSION 199212L /* diff --git a/sys/sys/unistd.h b/sys/sys/unistd.h index 238f120..0758b35 100644 --- a/sys/sys/unistd.h +++ b/sys/sys/unistd.h @@ -95,6 +95,9 @@ #define _POSIX_SAVED_IDS 1 /* saved set-user-ID and set-group-ID */ #endif +/* Define the POSIX.1 version we target for compliance. */ +#define _POSIX_VERSION 200112L + /* access function */ #define F_OK 0 /* test for existence of file */ #define X_OK 0x01 /* test for execute or search permission */ |