r19539: Move pidfile to smbd/
[kai/samba.git] / source4 / smbd / pidfile.c
similarity index 96%
rename from source4/lib/util/pidfile.c
rename to source4/smbd/pidfile.c
index dc9ecafae928e8aa5da28dc66fd8e84c86401494..493de66b442dcd09a7fdef056b6760dde8b35ddc 100644 (file)
 #include "includes.h"
 #include "system/filesys.h"
 
-#ifndef O_NONBLOCK
-#define O_NONBLOCK
-#endif
-
 /**
  * @file
  * @brief Pid file handling
@@ -36,7 +32,7 @@
  * return the pid in a pidfile. return 0 if the process (or pidfile)
  * does not exist 
  */
-_PUBLIC_ pid_t pidfile_pid(const char *name)
+pid_t pidfile_pid(const char *name)
 {
        int fd;
        char pidstr[20];