diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-23 13:40:39 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-23 13:40:39 -0500 |
| commit | 3a3c5a7e8b78d46f62f81a71fc5bec37be79d744 (patch) | |
| tree | da6e8b719a414e6f45a15028d0c3bfe489692cd9 /src/unistd | |
| parent | b529e2684d03e7e6d20fee4b0f8eb9ea5099c5a4 (diff) | |
always set to _POSIX2_VERSION
Diffstat (limited to 'src/unistd')
| -rw-r--r-- | src/unistd/_POSIX2_CHAR_TERM.c | 2 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_C_BIND.c | 15 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_C_DEV.c | 2 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_C_VERSION.c | 16 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_FORT_DEV.c | 2 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_FORT_RUN.c | 2 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_LOCALEDEF.c | 2 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_SW_DEV.c | 4 | ||||
| -rw-r--r-- | src/unistd/_POSIX2_UPE.c | 2 |
9 files changed, 10 insertions, 37 deletions
diff --git a/src/unistd/_POSIX2_CHAR_TERM.c b/src/unistd/_POSIX2_CHAR_TERM.c index 9a7e889b..84d0f2fd 100644 --- a/src/unistd/_POSIX2_CHAR_TERM.c +++ b/src/unistd/_POSIX2_CHAR_TERM.c @@ -1,5 +1,5 @@ #include <unistd.h> -#define _POSIX2_CHAR_TERM /* TODO */ +#define _POSIX2_CHAR_TERM (_POSIX2_VERSION) /* POSIX(2) */ diff --git a/src/unistd/_POSIX2_C_BIND.c b/src/unistd/_POSIX2_C_BIND.c index 44c9a0ba..ff408c15 100644 --- a/src/unistd/_POSIX2_C_BIND.c +++ b/src/unistd/_POSIX2_C_BIND.c @@ -1,18 +1,5 @@ #include <unistd.h> - -#if (defined _POSIX_C_SOURCE) -#if _POSIX_C_SOURCE >= 200809L -#define _POSIX2_C_VERSION (200809L) -#elif _POSIX_C_SOURCE >= 200112L -#define _POSIX2_C_VERSION (200112L) -#elif _POSIX_C_SOURCE >= 199506L -#define _POSIX2_C_VERSION (199506L) -#elif _POSIX_C_SOURCE >= 2 -#define _POSIX2_C_VERSION (199209L) -#else -#undef _POSIX2_C_VERSION -#endif -#endif +#define _POSIX2_C_BIND (_POSIX2_VERSION) /* POSIX(2) diff --git a/src/unistd/_POSIX2_C_DEV.c b/src/unistd/_POSIX2_C_DEV.c index 89578936..4463d53d 100644 --- a/src/unistd/_POSIX2_C_DEV.c +++ b/src/unistd/_POSIX2_C_DEV.c @@ -1,5 +1,5 @@ #include <unistd.h> -#define _POSIX2_C_DEV /* TODO */ +#define _POSIX2_C_DEV (_POSIX2_VERSION) /* POSIX(2) */ diff --git a/src/unistd/_POSIX2_C_VERSION.c b/src/unistd/_POSIX2_C_VERSION.c index 44c9a0ba..8c4533e7 100644 --- a/src/unistd/_POSIX2_C_VERSION.c +++ b/src/unistd/_POSIX2_C_VERSION.c @@ -1,20 +1,6 @@ #include <unistd.h> - -#if (defined _POSIX_C_SOURCE) -#if _POSIX_C_SOURCE >= 200809L -#define _POSIX2_C_VERSION (200809L) -#elif _POSIX_C_SOURCE >= 200112L -#define _POSIX2_C_VERSION (200112L) -#elif _POSIX_C_SOURCE >= 199506L -#define _POSIX2_C_VERSION (199506L) -#elif _POSIX_C_SOURCE >= 2 -#define _POSIX2_C_VERSION (199209L) -#else -#undef _POSIX2_C_VERSION -#endif -#endif +#define _POSIX2_C_VERSION (_POSIX2_VERSION) /* POSIX(2) */ - diff --git a/src/unistd/_POSIX2_FORT_DEV.c b/src/unistd/_POSIX2_FORT_DEV.c index dd22e4bf..0fc12054 100644 --- a/src/unistd/_POSIX2_FORT_DEV.c +++ b/src/unistd/_POSIX2_FORT_DEV.c @@ -1,5 +1,5 @@ #include <unistd.h> -#define _POSIX2_FORT_DEV /* TODO */ +#define _POSIX2_FORT_DEV (_POSIX2_VERSION) /* POSIX(2) */ diff --git a/src/unistd/_POSIX2_FORT_RUN.c b/src/unistd/_POSIX2_FORT_RUN.c index 54d21036..a03bfe1c 100644 --- a/src/unistd/_POSIX2_FORT_RUN.c +++ b/src/unistd/_POSIX2_FORT_RUN.c @@ -1,5 +1,5 @@ #include <unistd.h> -#define _POSIX2_FORT_RUN /* TODO */ +#define _POSIX2_FORT_RUN (_POSIX2_VERSION) /* POSIX(2) */ diff --git a/src/unistd/_POSIX2_LOCALEDEF.c b/src/unistd/_POSIX2_LOCALEDEF.c index ee4b68f7..da986f82 100644 --- a/src/unistd/_POSIX2_LOCALEDEF.c +++ b/src/unistd/_POSIX2_LOCALEDEF.c @@ -1,5 +1,5 @@ #include <unistd.h> -#define _POSIX2_LOCALEDEF 200809L +#define _POSIX2_LOCALEDEF (_POSIX2_VERSION) /* XOPEN(400) POSIX(2) diff --git a/src/unistd/_POSIX2_SW_DEV.c b/src/unistd/_POSIX2_SW_DEV.c index ddd0f01b..79ec89d2 100644 --- a/src/unistd/_POSIX2_SW_DEV.c +++ b/src/unistd/_POSIX2_SW_DEV.c @@ -1,6 +1,6 @@ #include <unistd.h> -#define _POSIX2_SW_DEV +#define _POSIX2_SW_DEV (_POSIX2_VERSION) + /* POSIX(2) */ - diff --git a/src/unistd/_POSIX2_UPE.c b/src/unistd/_POSIX2_UPE.c index a0c6299a..61295212 100644 --- a/src/unistd/_POSIX2_UPE.c +++ b/src/unistd/_POSIX2_UPE.c @@ -1,5 +1,5 @@ #include <unistd.h> -#define _POSIX2_UPE /* TODO */ +#define _POSIX2_UPE (_POSIX2_VERSION) /* POSIX(2) */ |
