Fixed bugs in my YOST replacement code. Doing a trim_string
[samba.git] / source3 / lib / system.c
index 1410b776ab13cbbb43f43aad2e0d75dc06bf622e..ac97449da253cccf4f3eb79804106fb27e5c3554 100644 (file)
@@ -98,7 +98,7 @@ int sys_select(fd_set *fds,struct timeval *tval)
   do {
     if (tval) memcpy((void *)&t2,(void *)tval,sizeof(t2));
     errno = 0;
-    selrtn = select(16,SELECT_CAST fds,NULL,NULL,tval?&t2:NULL);
+    selrtn = select(255,SELECT_CAST fds,NULL,NULL,tval?&t2:NULL);
   } while (selrtn<0 && errno == EINTR);
 
   return(selrtn);
@@ -141,6 +141,14 @@ int sys_stat(char *fname,struct stat *sbuf)
   return(stat(dos_to_unix(fname,False),sbuf));
 }
 
+/*******************************************************************
+The wait() calls vary between systems
+********************************************************************/
+int sys_waitpid(pid_t pid,int *status,int options)
+{
+  return waitpid(pid,status,options);
+}
+
 /*******************************************************************
 don't forget lstat()
 ********************************************************************/
@@ -190,14 +198,10 @@ for rename()
 ********************************************************************/
 int sys_rename(char *from, char *to)
 {
-#ifdef KANJI
     pstring zfrom, zto;
     strcpy (zfrom, dos_to_unix (from, False));
     strcpy (zto, dos_to_unix (to, False));
     return rename (zfrom, zto);
-#else 
-    return rename (from, to);
-#endif /* KANJI */
 }
 
 /*******************************************************************