Move the _POSIX_VERSION constant from <unistd.h> to <sys/unistd.h>, so

that it can be used in-kernel for a sysctl.
This commit is contained in:
Mike Barcroft 2002-10-13 14:25:01 +00:00
parent af103111f0
commit d3d0ea18c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105045
2 changed files with 4 additions and 2 deletions

View File

@ -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
/*

View File

@ -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 */