summaryrefslogtreecommitdiff
path: root/src/stdio/fclose.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-05-28 15:50:03 -0400
committerJakob Kaivo <jkk@ung.org>2024-05-28 15:50:03 -0400
commitc9ec058657f9f8b3fd39a16f1a9e993b4a1e982e (patch)
tree6cf1abadd04a1a9049d82ffe0e78be7f8b4cece2 /src/stdio/fclose.c
parentb4cd7036bea6c6440fbbcdaebe53c864c87a5646 (diff)
abstract out "forced" implementations of functions from future specifications
Diffstat (limited to 'src/stdio/fclose.c')
-rw-r--r--src/stdio/fclose.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c
index 37198fcb..cb4499ac 100644
--- a/src/stdio/fclose.c
+++ b/src/stdio/fclose.c
@@ -1,23 +1,10 @@
-#ifndef _POSIX_SOURCE
-#define _POSIX_SOURCE
-#define POSIX_FORCED
-#endif
-
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if 0
-#include <sys/types.h>
-#include <unistd.h>
-#endif
#include "_stdio.h"
-#ifdef POSIX_FORCED
-#include "_syscall.h"
-#define close(_fd) __scall1(close, _fd)
-#endif
+#include "_forced/close.h"
/** close a file stream **/