Browse Source

add LSB ABI __xstat, etc. junk

Rich Felker 12 years ago
parent
commit
9ea20dcbaa
4 changed files with 36 additions and 0 deletions
  1. 9 0
      src/stat/__fxstat.c
  2. 9 0
      src/stat/__fxstatat.c
  3. 9 0
      src/stat/__lxstat.c
  4. 9 0
      src/stat/__xstat.c

+ 9 - 0
src/stat/__fxstat.c

@@ -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);

+ 9 - 0
src/stat/__fxstatat.c

@@ -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);

+ 9 - 0
src/stat/__lxstat.c

@@ -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);

+ 9 - 0
src/stat/__xstat.c

@@ -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);