File modules/pa/spawn.c


Included Files


Preprocessor definitions

#define ERRSTRING

#define LINE_LENGTH 1024

#define STRING_LENGTH 255

#define DEFAULT_LOCKTIME 300


Type enum NFSL

enum NFSL
enum NFSL 
   { 
     NFSL_SYSF; 
     NFSL_SECV; 
     NFSL_LOCKED; 
     NFSL_OK; 
     NFSL_STOLEN; 
     NFSL_LOST; 
   } 

Global Variable sd1

int sd1[2]
Visible in:  modules/pa/spawn.c
Used in: spawn_job()modules/pa/spawn.c

Global Function nfslock()

time_t nfslock ( char* path, char* namelock, int max_age, int notify )
Calls: close(), fprintf(), free(), fstat(), getpid(), getuid(), link(), lstat(), malloc(), open(), random(), sleep(), sprintf(), srandom(), strlen(), time(), unlink(), write()

Global Function nfsunlock()

int nfsunlock ( char* path, char* namelock, int max_age, time_t birth )
Calls: close(), free(), fstat(), getpid(), lstat(), malloc(), open(), random(), sleep(), sprintf(), srandom(), strlen(), time(), unlink(), write()

Global Function spawn_job()

int spawn_job ( char* path, char* argv[], int* in_fd, int* out_fd, int* err_fd )
Calls: close(), dup2(), execvp(), exit(), fork(), fprintf(), perror(), pipe(), strerror()
References Variables: sd1modules/pa/spawn.c