diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-03 16:34:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-03 16:34:57 +0000 |
commit | 1fa3478aaf5a40a0eb37f8f5679707d23231e276 (patch) | |
tree | 09dfadb60520f4c4157d8ed9d328c84f50399023 /source3/smbwrapper/realcalls.h | |
parent | 8d4c7326212f23d2a255def7f7e9c992eb752911 (diff) | |
download | samba-1fa3478aaf5a40a0eb37f8f5679707d23231e276.tar.gz samba-1fa3478aaf5a40a0eb37f8f5679707d23231e276.tar.bz2 samba-1fa3478aaf5a40a0eb37f8f5679707d23231e276.zip |
drat.
on Linux 2.0 libc detects the lack of getdents in the kernel and used
opendir() etc. so we need to implement those ...
it would be needed for a port to others OSes anyway I suppose.
(This used to be commit e3fd861590dd27cc643c2d8d0cb5a5651c84d9ac)
Diffstat (limited to 'source3/smbwrapper/realcalls.h')
-rw-r--r-- | source3/smbwrapper/realcalls.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbwrapper/realcalls.h b/source3/smbwrapper/realcalls.h index 53f110fe4a..a5eb046962 100644 --- a/source3/smbwrapper/realcalls.h +++ b/source3/smbwrapper/realcalls.h @@ -21,9 +21,14 @@ #ifdef linux struct dirent *__libc_readdir(DIR * dir); -#define real_readdir(dir) (__libc_readdir(dirp)) +#define real_readdir(dir) (__libc_readdir(dir)) +#define real_opendir(fn) (__libc_opendir(fn)) +#define real_telldir(dir) (__libc_telldir(dir)) +#define real_closedir(dir) (__libc_closedir(dir)) +#define real_seekdir(dir, ofs) (__libc_seekdir(dir, ofs)) #else #define real_readdir(dirp) ((struct dirent *)syscall(SYS_readdir,(dirp))) +#define real_opendir(fn) ((DIR *)syscall(SYS_opendir,(fn))) /* if needed define SYS_readdir so that readdir gets compiled */ #endif |