aboutsummaryrefslogtreecommitdiffstats
path: root/guts/fclose.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/fclose.c')
-rw-r--r--guts/fclose.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/guts/fclose.c b/guts/fclose.c
new file mode 100644
index 0000000..e0c5681
--- /dev/null
+++ b/guts/fclose.c
@@ -0,0 +1,17 @@
+/*
+ * static int
+ * wrap_fclose(FILE *fp) {
+ * int rc = -1;
+ */
+
+ if (!fp) {
+ errno = EFAULT;
+ return -1;
+ }
+ int fd = fileno(fp);
+ pseudo_client_op(OP_CLOSE, 0, fd, -1, 0, 0);
+ rc = real_fclose(fp);
+
+/* return rc;
+ * }
+ */