summaryrefslogtreecommitdiff
path: root/nonstd/static/fopen.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-02 13:12:59 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-02 13:12:59 -0500
commitaa2c7727b1ee7b3747681f6b78f9ef0d36beb749 (patch)
tree2d637999ffbf3661fa5ef2e6e93bf40bff13672f /nonstd/static/fopen.h
parenta4bd7a9c848d024ecb9c2bd9af0facaec728ba30 (diff)
trim old nonstd
Diffstat (limited to 'nonstd/static/fopen.h')
-rw-r--r--nonstd/static/fopen.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/nonstd/static/fopen.h b/nonstd/static/fopen.h
deleted file mode 100644
index 64d30f1e..00000000
--- a/nonstd/static/fopen.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "nonstd/FILE.h"
-
-static FILE *__common_fopen(struct __fopen_options *opt)
-{
- FILE *f = NULL;
- if (__libc.stdio.nopen < FOPEN_MAX) {
- f = __libc.stdio.files + __libc.stdio.nopen;
- __libc.stdio.nopen++;
- }
- f->fd = opt->fd;
- return f;
-}