enable LARGEFILE64 aliases
authorRich Felker <dalias@aerifal.cx>
Fri, 1 Jun 2012 03:12:31 +0000 (23:12 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 1 Jun 2012 03:12:31 +0000 (23:12 -0400)
these will NOT be used when compiling with -D_LARGEFILE64_SOURCE on
musl; instead, they exist in the hopes of eventually being able to run
some glibc-linked apps with musl sitting in place of glibc.

also remove the (apparently incorrect) fcntl alias.

src/fcntl/fcntl.c
src/internal/libc.h

index cc3d6cce95b036bfa84301f8dd0e83be314b5c43..fa5ad32ff7ecf05e337c72ce72e5160525106d47 100644 (file)
@@ -16,5 +16,3 @@ int fcntl(int fd, int cmd, ...)
        if (cmd == F_GETOWN) return __syscall(SYS_fcntl, fd, cmd, arg);
        return syscall(SYS_fcntl, fd, cmd, arg);
 }
-
-LFS64(fcntl);
index 0ec3691e4f512f2b21dda5f238c0584b559e7cc8..53e4e8269a36d4e1596e192a63425ca5eb1c2c12 100644 (file)
@@ -62,8 +62,7 @@ extern char **__environ;
        extern __typeof(old) new __attribute__((weak, alias(#old)))
 
 #undef LFS64_2
-//#define LFS64_2(x, y) weak_alias(x, y)
-#define LFS64_2(x, y) extern __typeof(x) y
+#define LFS64_2(x, y) weak_alias(x, y)
 
 #undef LFS64
 #define LFS64(x) LFS64_2(x, x##64)