diff options
author | Lauri Aarnio <Lauri.Aarnio@iki.fi> | 2008-09-11 16:29:14 +0300 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2008-09-27 00:02:42 +0300 |
commit | 47119b3499fe574bd3c07748ecf90f636ffa0d41 (patch) | |
tree | 0d2766ce7546ff87293a96d85e6a37b02e52c0a7 | |
parent | c6d11d076fabd2ab1fd108f6907ca2596535b0a6 (diff) |
Added four wrappers (__xmknodat(),__fxstatat(),__fxstatat64(),fstatat64())
-rw-r--r-- | preload/interface.master | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/preload/interface.master b/preload/interface.master index e6b585a..44fbf63 100644 --- a/preload/interface.master +++ b/preload/interface.master @@ -126,11 +126,19 @@ WRAP: DIR *__opendir2(const char *name, int flags) : map(name) WRAP: int __xmknod(int ver, const char *path, mode_t mode, dev_t *dev) : \ dont_resolve_final_symlink map(path) fail_if_readonly(path,-1,EROFS) +WRAP: int __xmknodat(int ver, int dirfd, const char *pathname, mode_t mode, dev_t *dev) : \ + dont_resolve_final_symlink map_at(dirfd,pathname) fail_if_readonly(pathname,-1,EROFS) WRAP: int __xstat(int ver, const char *filename, struct stat *buf) : map(filename) #ifdef HAVE___XSTAT64 WRAP: int __xstat64(int ver, const char *filename, struct stat64 *buf) : map(filename) #endif + +WRAP: int __fxstatat(int ver, int dirfd, const char *pathname, struct stat *buf, int flags) : \ + map_at(dirfd,pathname) +WRAP: int __fxstatat64(int ver, int dirfd, const char *pathname, struct stat64 *buf, int flags) : \ + map_at(dirfd,pathname) + WRAP: int _xftw(int mode, const char *dir, int (*fn)(const char *file, const struct stat *sb, int flag), int nopenfd) : map(dir) #ifdef HAVE__XFTW64 WRAP: int _xftw64(int mode, const char *dir, int (*fn)(const char *file, const struct stat64 *sb, int flag), int nopenfd) : map(dir) @@ -204,6 +212,8 @@ WRAP: FILE *freopen64(const char *path, const char *mode, FILE *stream) : \ check_and_fail_if_readonly(fopen_mode_w_perm(mode),path,NULL,freopen_errno(stream)) WRAP: int fstatat(int dirfd, const char *pathname, struct stat *buf, int flags) : map_at(dirfd,pathname) +WRAP: int fstatat64(int dirfd, const char *pathname, struct stat64 *buf, int flags) : map_at(dirfd,pathname) + WRAP: int ftw(const char *dir, int (*fn)(const char *file, const struct stat *sb, int flag), int nopenfd) : map(dir) #ifdef HAVE_FTW64 WRAP: int ftw64(const char *dir, int (*fn)(const char *file, const struct stat64 *sb, int flag), int nopenfd) : map(dir) |