add LSB ABI __xstat, etc. junk
authorRich Felker <dalias@aerifal.cx>
Fri, 1 Jun 2012 03:32:09 +0000 (23:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 1 Jun 2012 03:32:09 +0000 (23:32 -0400)
src/stat/__fxstat.c [new file with mode: 0644]
src/stat/__fxstatat.c [new file with mode: 0644]
src/stat/__lxstat.c [new file with mode: 0644]
src/stat/__xstat.c [new file with mode: 0644]

diff --git a/src/stat/__fxstat.c b/src/stat/__fxstat.c
new file mode 100644 (file)
index 0000000..fd39ee3
--- /dev/null
@@ -0,0 +1,9 @@
+#include <sys/stat.h>
+#include "libc.h"
+
+int __fxstat(int ver, int fd, struct stat *buf)
+{
+       return fstat(fd, buf);
+}
+
+LFS64(__fxstat);
diff --git a/src/stat/__fxstatat.c b/src/stat/__fxstatat.c
new file mode 100644 (file)
index 0000000..e389dec
--- /dev/null
@@ -0,0 +1,9 @@
+#include <sys/stat.h>
+#include "libc.h"
+
+int __fxstatat(int ver, int fd, const char *path, struct stat *buf, int flag)
+{
+       return fstatat(fd, path, buf, flag);
+}
+
+LFS64(__fxstatat);
diff --git a/src/stat/__lxstat.c b/src/stat/__lxstat.c
new file mode 100644 (file)
index 0000000..e9992ed
--- /dev/null
@@ -0,0 +1,9 @@
+#include <sys/stat.h>
+#include "libc.h"
+
+int __lxstat(int ver, const char *path, struct stat *buf)
+{
+       return lstat(path, buf);
+}
+
+LFS64(__lxstat);
diff --git a/src/stat/__xstat.c b/src/stat/__xstat.c
new file mode 100644 (file)
index 0000000..42011d5
--- /dev/null
@@ -0,0 +1,9 @@
+#include <sys/stat.h>
+#include "libc.h"
+
+int __xstat(int ver, const char *path, struct stat *buf)
+{
+       return stat(path, buf);
+}
+
+LFS64(__xstat);