Cross reference for modules/pa/spawn.c of index.

# File modules/pa/spawn.c

## Included Files

- `#include <stdio.h>`

- `#include <stdlib.h>`

- `#include <errno.h>`

- `#include <sys/types.h>`

- `#include <unistd.h>`

- `#include <string.h>`

- `#include <sys/stat.h>`

- `#include <fcntl.h>`

- `#include <time.h>`

## 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: | sd1 | modules/pa/spawn.c