提交 50018f92 编写于 作者: R Rich Felker

disable lfs64 aliases for remapped time64 functions

these functions cannot provide the glibc lfs64-ABI-compatible symbols
when time_t differs from what it was in that ABI. instead, the aliases
need to be provided by the time32 compat shims or through some other
mechanism.
上级 2d69fcf5
...@@ -73,4 +73,6 @@ int aio_suspend(const struct aiocb *const cbs[], int cnt, const struct timespec ...@@ -73,4 +73,6 @@ int aio_suspend(const struct aiocb *const cbs[], int cnt, const struct timespec
} }
} }
#if !_REDIR_TIME64
weak_alias(aio_suspend, aio_suspend64); weak_alias(aio_suspend, aio_suspend64);
#endif
#include <sys/stat.h> #include <sys/stat.h>
#if !_REDIR_TIME64
int __fxstat(int ver, int fd, struct stat *buf) int __fxstat(int ver, int fd, struct stat *buf)
{ {
return fstat(fd, buf); return fstat(fd, buf);
...@@ -25,6 +27,8 @@ weak_alias(__fxstatat, __fxstatat64); ...@@ -25,6 +27,8 @@ weak_alias(__fxstatat, __fxstatat64);
weak_alias(__lxstat, __lxstat64); weak_alias(__lxstat, __lxstat64);
weak_alias(__xstat, __xstat64); weak_alias(__xstat, __xstat64);
#endif
int __xmknod(int ver, const char *path, mode_t mode, dev_t *dev) int __xmknod(int ver, const char *path, mode_t mode, dev_t *dev)
{ {
return mknod(path, mode, *dev); return mknod(path, mode, *dev);
......
...@@ -10,4 +10,6 @@ int fstat(int fd, struct stat *st) ...@@ -10,4 +10,6 @@ int fstat(int fd, struct stat *st)
return fstatat(fd, "", st, AT_EMPTY_PATH); return fstatat(fd, "", st, AT_EMPTY_PATH);
} }
#if !_REDIR_TIME64
weak_alias(fstat, fstat64); weak_alias(fstat, fstat64);
#endif
...@@ -126,4 +126,6 @@ int fstatat(int fd, const char *restrict path, struct stat *restrict st, int fla ...@@ -126,4 +126,6 @@ int fstatat(int fd, const char *restrict path, struct stat *restrict st, int fla
return __syscall_ret(ret); return __syscall_ret(ret);
} }
#if !_REDIR_TIME64
weak_alias(fstatat, fstatat64); weak_alias(fstatat, fstatat64);
#endif
...@@ -6,4 +6,6 @@ int lstat(const char *restrict path, struct stat *restrict buf) ...@@ -6,4 +6,6 @@ int lstat(const char *restrict path, struct stat *restrict buf)
return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW);
} }
#if !_REDIR_TIME64
weak_alias(lstat, lstat64); weak_alias(lstat, lstat64);
#endif
...@@ -6,4 +6,6 @@ int stat(const char *restrict path, struct stat *restrict buf) ...@@ -6,4 +6,6 @@ int stat(const char *restrict path, struct stat *restrict buf)
return fstatat(AT_FDCWD, path, buf, 0); return fstatat(AT_FDCWD, path, buf, 0);
} }
#if !_REDIR_TIME64
weak_alias(stat, stat64); weak_alias(stat, stat64);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册