From c6dc9c00d7bf7eefc50b0f7e26cfdfedd135184e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 13:27:42 -0500 Subject: merge XOPEN identifiers --- src/stdio/P_tmpdir.c | 5 +++++ src/stdio/getw.c | 12 ++++++++++++ src/stdio/putw.c | 11 +++++++++++ src/stdio/tempnam.c | 10 ++++++++++ 4 files changed, 38 insertions(+) create mode 100644 src/stdio/P_tmpdir.c create mode 100644 src/stdio/getw.c create mode 100644 src/stdio/putw.c create mode 100644 src/stdio/tempnam.c (limited to 'src') diff --git a/src/stdio/P_tmpdir.c b/src/stdio/P_tmpdir.c new file mode 100644 index 00000000..9ff77865 --- /dev/null +++ b/src/stdio/P_tmpdir.c @@ -0,0 +1,5 @@ +#include +#define P_tmpdir "/tmp" +/* +XOPEN(4) +*/ diff --git a/src/stdio/getw.c b/src/stdio/getw.c new file mode 100644 index 00000000..ec6f97df --- /dev/null +++ b/src/stdio/getw.c @@ -0,0 +1,12 @@ +#include + +# define _XOPEN_LEGACY 500 + +int getw(FILE *stream) +{ + return 0; +} + +/* +XOPEN(4,600) +*/ diff --git a/src/stdio/putw.c b/src/stdio/putw.c new file mode 100644 index 00000000..8aac6d23 --- /dev/null +++ b/src/stdio/putw.c @@ -0,0 +1,11 @@ +#include + +# define _XOPEN_LEGACY 500 + +int putw(int w, FILE *stream) +{ +} + +/* +XOPEN(4,600) +*/ diff --git a/src/stdio/tempnam.c b/src/stdio/tempnam.c new file mode 100644 index 00000000..d35dde0d --- /dev/null +++ b/src/stdio/tempnam.c @@ -0,0 +1,10 @@ +#include + +char * tempnam(const char * dir, const char * pfx) +{ + return NULL; +} + +/* +XOPEN(4) +*/ -- cgit v1.2.1