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:
parent
af103111f0
commit
d3d0ea18c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105045
@ -143,8 +143,7 @@ typedef __uid_t_ uid_t;
|
|||||||
#define _XOPEN_UNIX -1
|
#define _XOPEN_UNIX -1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define the versions we target for compliance. */
|
/* Define the POSIX.2 version we target for compliance. */
|
||||||
#define _POSIX_VERSION 200112L
|
|
||||||
#define _POSIX2_VERSION 199212L
|
#define _POSIX2_VERSION 199212L
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -95,6 +95,9 @@
|
|||||||
#define _POSIX_SAVED_IDS 1 /* saved set-user-ID and set-group-ID */
|
#define _POSIX_SAVED_IDS 1 /* saved set-user-ID and set-group-ID */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Define the POSIX.1 version we target for compliance. */
|
||||||
|
#define _POSIX_VERSION 200112L
|
||||||
|
|
||||||
/* access function */
|
/* access function */
|
||||||
#define F_OK 0 /* test for existence of file */
|
#define F_OK 0 /* test for existence of file */
|
||||||
#define X_OK 0x01 /* test for execute or search permission */
|
#define X_OK 0x01 /* test for execute or search permission */
|
||||||
|
Loading…
Reference in New Issue
Block a user