summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/realcalls.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-03 16:34:57 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-03 16:34:57 +0000
commite3fd861590dd27cc643c2d8d0cb5a5651c84d9ac (patch)
tree466f7ff52d7c466a3226e2af9dbe444f62e79cbe /source/smbwrapper/realcalls.h
parent06f1af12c37fc759e7315366dd4e82f4e96b042d (diff)
downloadsamba-e3fd861590dd27cc643c2d8d0cb5a5651c84d9ac.tar.gz
samba-e3fd861590dd27cc643c2d8d0cb5a5651c84d9ac.tar.xz
samba-e3fd861590dd27cc643c2d8d0cb5a5651c84d9ac.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.
Diffstat (limited to 'source/smbwrapper/realcalls.h')
-rw-r--r--source/smbwrapper/realcalls.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/smbwrapper/realcalls.h b/source/smbwrapper/realcalls.h
index 53f110fe4ab..a5eb046962a 100644
--- a/source/smbwrapper/realcalls.h
+++ b/source/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