aboutsummaryrefslogtreecommitdiffstats
path: root/guts/__fxstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/__fxstat.c')
-rw-r--r--guts/__fxstat.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/guts/__fxstat.c b/guts/__fxstat.c
new file mode 100644
index 0000000..e715f6c
--- /dev/null
+++ b/guts/__fxstat.c
@@ -0,0 +1,17 @@
+/*
+ * int
+ * wrap___fxstat(int ver, int fd, struct stat *buf) {
+ * int rc = -1;
+ */
+
+ struct stat64 buf64;
+ /* populate buffer with complete data */
+ real___fxstat(ver, fd, buf);
+ /* obtain fake data */
+ rc = wrap___fxstat64(ver, fd, &buf64);
+ /* overwrite */
+ pseudo_stat32_from64(buf, &buf64);
+
+/* return rc;
+ * }
+ */