12 |
|
#include <string.h> |
13 |
|
#include <signal.h> |
14 |
|
#include <sys/stat.h> |
15 |
– |
#ifdef _WIN32 |
16 |
– |
#include <process.h> /* getpid() */ |
17 |
– |
#endif |
15 |
|
|
16 |
+ |
#include "rtprocess.h" /* getpid() */ |
17 |
|
#include "standard.h" |
18 |
|
#include "random.h" |
19 |
|
|
25 |
|
#define TIMELIM (8*3600) /* time limit for holding pattern */ |
26 |
|
#endif |
27 |
|
|
30 |
– |
#ifndef freebsd |
31 |
– |
#define mkfifo(fn,md) mknod(fn, S_IFIFO|(md), 0) |
32 |
– |
#endif |
33 |
– |
|
28 |
|
extern void io_process(); |
29 |
|
|
30 |
|
extern int headismine; /* boolean true if header belongs to me */ |
84 |
|
} |
85 |
|
|
86 |
|
|
87 |
+ |
void |
88 |
|
persistfile(pfn) /* open persist file and lock it */ |
89 |
|
char *pfn; |
90 |
|
{ |