summaryrefslogtreecommitdiff
path: root/com32/lib/fclose.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-27 12:51:29 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-27 12:51:29 -0800
commit3d0cb11079c5dc6115a9282b51b1f42151c4926e (patch)
treeef1d65508a5afd349f54fd0bba6f8fec27198338 /com32/lib/fclose.c
parentc7897f4098ce5977fe5dffa0ee15bc842339567f (diff)
downloadsyslinux-3d0cb11079c5dc6115a9282b51b1f42151c4926e.tar.gz
Un-inline fclose()
gcc complains that fclose() is too big to be inlined with -Os, so humour it and move fclose() out of line.
Diffstat (limited to 'com32/lib/fclose.c')
-rw-r--r--com32/lib/fclose.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/lib/fclose.c b/com32/lib/fclose.c
new file mode 100644
index 00000000..41f6a62c
--- /dev/null
+++ b/com32/lib/fclose.c
@@ -0,0 +1,11 @@
+/*
+ * fclose.c
+ */
+
+#include <stdio.h>
+#include <unistd.h>
+
+int fclose(FILE *__f)
+{
+ return close(fileno(__f));
+}