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/freopen.c | |
parent | 0b0d1fe1d4fbf8560577d81e5af0549683eac8ba (diff) |
formatting
Diffstat (limited to 'src/stdio/freopen.c')
-rw-r--r-- | src/stdio/freopen.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/stdio/freopen.c b/src/stdio/freopen.c index 516684b4..0afec064 100644 --- a/src/stdio/freopen.c +++ b/src/stdio/freopen.c @@ -3,19 +3,19 @@ #define POSIX_FORCED #endif -#include <stdio.h> -#include <string.h> -#include <errno.h> #include <sys/types.h> +#include <errno.h> #include <fcntl.h> +#include <stdio.h> +#include <string.h> #include <unistd.h> #include "_stdio.h" #ifdef POSIX_FORCED #include "termios/_termios.h" #include "_syscall.h" -#define open(fname, flags, mode) __scall3(open, fname, flags, mode) -#define isatty(fd) ioctl(fd, TCFLSH, 0) +#define open(_p, _f, _m) __scall3(open, _p, _f, _m) +#define isatty(_fd) ioctl(_fd, TCFLSH, 0) #endif /** reopen a file stream with a new file **/ @@ -102,6 +102,7 @@ ignoring any errors. The error and end-of-file indicators are cleared. ***/ + /* STDC(1) */ |