aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux/pseudo_wrappers.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/linux/pseudo_wrappers.c')
-rw-r--r--ports/linux/pseudo_wrappers.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ports/linux/pseudo_wrappers.c b/ports/linux/pseudo_wrappers.c
new file mode 100644
index 0000000..7d3fcd5
--- /dev/null
+++ b/ports/linux/pseudo_wrappers.c
@@ -0,0 +1,18 @@
+
+/* the unix port wants to know that real_stat() and
+ * friends exist. So they do.
+ */
+int
+pseudo_stat(const char *path, struct stat *buf) {
+ return real___xstat(_STAT_VER, path, buf);
+}
+
+int
+pseudo_lstat(const char *path, struct stat *buf) {
+ return real___lxstat(_STAT_VER, path, buf);
+}
+
+int
+pseudo_fstat(int fd, struct stat *buf) {
+ return real___fxstat(_STAT_VER, fd, buf);
+}