diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-16 14:00:51 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-16 14:00:51 -0400 |
commit | 896e28812c51b9ffdf3efc00c7d7ef699e380a58 (patch) | |
tree | aaa25e093fb4a2ac4c57609e1f745e5ac0734ca8 /src/stdio/fflush.c | |
parent | 0b0d1fe1d4fbf8560577d81e5af0549683eac8ba (diff) |
formatting
Diffstat (limited to 'src/stdio/fflush.c')
-rw-r--r-- | src/stdio/fflush.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/stdio/fflush.c b/src/stdio/fflush.c index 19096714..e6108fbd 100644 --- a/src/stdio/fflush.c +++ b/src/stdio/fflush.c @@ -1,12 +1,16 @@ -#include <stdio.h> -#include "_stdio.h" +#ifndef _POSIX_SOURCE +#define _POSIX_SOURCE +#define POSIX_FORCED +#endif -#ifdef _POSIX_SOURCE +#include <stdio.h> #include <sys/types.h> #include <unistd.h> -#else +#include "_stdio.h" + +#ifdef POSIX_FORCED #include "_syscall.h" -#define write(_fd, _buf, _size) __syscall(__syscall_lookup(write), _fd, _buf, _size) +#define write(_fd, _buf, _size) __scall3(write, _fd, _buf, _size) #endif /** flush buffered writes **/ @@ -51,7 +55,5 @@ If ARGUMENT(stream) is CONSTANT(NULL), THIS() will flush all open streams. /* UNDEFINED(ARGUMENT(stream) is not an output stream) UNDEFINED(ARGUMENT(stream) is an update stream in which the most recent operation was input) -*/ -/* STDC(1) */ |