summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/wrapper.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 04:33:56 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 04:33:56 +0000
commit57a58f592b67a0ebf482f06315b9c546590126bf (patch)
treea3fdc435369865b8ef631f262e4d60d630515cd8 /source3/smbwrapper/wrapper.h
parent977d6015564932410ff69e291b8c6eddeece334d (diff)
downloadsamba-57a58f592b67a0ebf482f06315b9c546590126bf.tar.gz
samba-57a58f592b67a0ebf482f06315b9c546590126bf.tar.bz2
samba-57a58f592b67a0ebf482f06315b9c546590126bf.zip
more smbw cleanups.
- cleaned up prototyping. Unfortunately we can't auto-prototype wrapped.c because it replaces system functions. - split stat functions into smbw_stat.c (This used to be commit 04e92e692e49234df6fbbfd07a33b315ed62f0de)
Diffstat (limited to 'source3/smbwrapper/wrapper.h')
-rw-r--r--source3/smbwrapper/wrapper.h36
1 files changed, 33 insertions, 3 deletions
diff --git a/source3/smbwrapper/wrapper.h b/source3/smbwrapper/wrapper.h
index d38aa4227e..5339f652f8 100644
--- a/source3/smbwrapper/wrapper.h
+++ b/source3/smbwrapper/wrapper.h
@@ -31,7 +31,37 @@
#include "kernel_stat.h"
#include "realcalls.h"
-
-int smbw_path(const char *path);
+int smbw_dirp(DIR *dirp);
int smbw_fd(int fd);
-int smbw_dirp(DIR *);
+int smbw_dir_open(const char *fname);
+int smbw_dir_close(int fd);
+int smbw_stat(const char *fname, struct stat *st);
+off_t smbw_dir_lseek(int fd, off_t offset, int whence);
+int smbw_path(const char *path);
+int smbw_open(const char *fname, int flags, mode_t mode);
+int smbw_chdir(const char *name);
+int smbw_close(int fd);
+int smbw_fchdir(unsigned int fd);
+int smbw_fcntl(int fd, int cmd, long arg);
+int smbw_getdents(unsigned int fd, struct dirent *dirp, int count);
+off_t smbw_lseek(int fd, off_t offset, int whence);
+ssize_t smbw_read(int fd, void *buf, size_t count);
+ssize_t smbw_write(int fd, void *buf, size_t count);
+int smbw_access(const char *name, int mode);
+int smbw_chmod(const char *fname, mode_t newmode);
+int smbw_chown(const char *fname, uid_t owner, gid_t group);
+int smbw_closedir(DIR *d);
+int smbw_fstat(int fd, struct stat *st);
+char *smbw_getcwd(char *buf, size_t size);
+int smbw_stat(const char *fname, struct stat *st);
+int smbw_mkdir(const char *fname, mode_t mode);
+void smbw_seekdir(DIR *d, off_t offset);
+off_t smbw_telldir(DIR *d);
+int smbw_unlink(const char *fname);
+int smbw_utime(const char *fname,void *buf);
+DIR *smbw_opendir(const char *fname);
+struct dirent *smbw_readdir(DIR *d);
+int smbw_readlink(const char *path, char *buf, size_t bufsize);
+int smbw_rename(const char *oldname, const char *newname);
+int smbw_rmdir(const char *fname);
+