summaryrefslogtreecommitdiffstats
path: root/source/lib/system.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-05 02:54:37 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-05 02:54:37 +0000
commit61e3116e573637d6b5a878eeb8db72831e3c5bd1 (patch)
tree80d58d866f0e6ff03d112b11edaf59ec8c3d1959 /source/lib/system.c
parentdff891e69d1fd0175f806e00d10ddbcbb9fc7b0b (diff)
downloadsamba-61e3116e573637d6b5a878eeb8db72831e3c5bd1.tar.gz
samba-61e3116e573637d6b5a878eeb8db72831e3c5bd1.tar.xz
samba-61e3116e573637d6b5a878eeb8db72831e3c5bd1.zip
- use workgroup from smb.conf in smbclient
- change debug level on clitar stuff - define MAP_FILE if not defined - ensure we never set authoritative on queries in nmbd - fake a positive response to SMBioctl, apparently this is needed for some WfWg printer drivers - deny file access for non-fcbopen queries when (access_allowed == AREAD && flags == O_RDWR) - add sys_waitpid()
Diffstat (limited to 'source/lib/system.c')
-rw-r--r--source/lib/system.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/lib/system.c b/source/lib/system.c
index 81e9a6679ad..5ece0ca0241 100644
--- a/source/lib/system.c
+++ b/source/lib/system.c
@@ -142,6 +142,18 @@ int sys_stat(char *fname,struct stat *sbuf)
}
/*******************************************************************
+The wait() calls vary between systems
+********************************************************************/
+int sys_waitpid(pid_t pid,int *status,int options)
+{
+#ifdef USE_WAITPID
+ return waitpid(pid,status,options);
+#else
+ return wait4(pid,status,options,NULL);
+#endif
+}
+
+/*******************************************************************
don't forget lstat()
********************************************************************/
int sys_lstat(char *fname,struct stat *sbuf)