From 5d23ccbd2516498d351a7cf31ee24c0ae5eb691b Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 23 Sep 2015 20:52:40 +0200 Subject: [PATCH] : Clean up the _POSIX2_* defines (Shells and Utilities options). * Bump the _POSIX2_C_BIND, _POSIX2_FORT_RUN and _POSIX2_UPE defines to 200809. * Define _POSIX2_C_DEV, _POSIX2_LOCALEDEF and _POSIX2_SW_DEV to 200809. * Improve comments. Things I know of that we still have to do: * For 100% _POSIX2_UPE conformance we still need to implement at least sh(1)'s HISTFILE and MAILCHECK environment variables. * For 100% _POSIX2_SW_DEV conformance we still need to implement at least make(1)'s -p option. --- include/unistd.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index d73013b43a..6a9ed330f4 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -119,20 +119,22 @@ typedef __uid_t uid_t; #define _POSIX_TRACE_EVENT_FILTER -1 #define _POSIX_TRACE_INHERIT -1 #define _POSIX_TRACE_LOG -1 -#define _POSIX2_C_BIND 200112L /* mandatory */ -#define _POSIX2_C_DEV -1 /* need c99 utility */ + +#define _POSIX2_C_BIND 200809L /* mandatory */ +#define _POSIX2_C_DEV 200809L /* [CD] */ #define _POSIX2_CHAR_TERM 1 -#define _POSIX2_FORT_DEV -1 /* need fort77 utility */ -#define _POSIX2_FORT_RUN 200112L -#define _POSIX2_LOCALEDEF -1 -#define _POSIX2_PBS -1 -#define _POSIX2_PBS_ACCOUNTING -1 -#define _POSIX2_PBS_CHECKPOINT -1 -#define _POSIX2_PBS_LOCATE -1 -#define _POSIX2_PBS_MESSAGE -1 -#define _POSIX2_PBS_TRACK -1 -#define _POSIX2_SW_DEV -1 /* XXX ??? */ -#define _POSIX2_UPE 200112L +#define _POSIX2_FORT_DEV -1 /* [FD] need fort77 utility */ +#define _POSIX2_FORT_RUN 200809L /* [FR] */ +#define _POSIX2_LOCALEDEF 200809L +#define _POSIX2_PBS -1 /* [BE] obsolescent */ +#define _POSIX2_PBS_ACCOUNTING -1 /* [BE] obsolescent */ +#define _POSIX2_PBS_CHECKPOINT -1 /* [BE] obsolescent */ +#define _POSIX2_PBS_LOCATE -1 /* [BE] obsolescent */ +#define _POSIX2_PBS_MESSAGE -1 /* [BE] obsolescent */ +#define _POSIX2_PBS_TRACK -1 /* [BE] obsolescent */ +#define _POSIX2_SW_DEV 200809L /* [SD] */ +#define _POSIX2_UPE 200809L /* [UP] */ + #define _V6_ILP32_OFF32 -1 #define _V6_ILP32_OFFBIG 0 #define _V6_LP64_OFF64 0 -- 2.41.0