9 |
|
*/ |
10 |
|
|
11 |
|
#include "standard.h" |
12 |
+ |
|
13 |
+ |
#ifdef F_SETLKW |
14 |
+ |
|
15 |
|
#include "paths.h" |
16 |
|
#include <signal.h> |
17 |
|
#include <sys/types.h> |
99 |
|
register int n; |
100 |
|
/* close input and output descriptors */ |
101 |
|
close(fileno(stdin)); |
99 |
– |
fflush(stdout); |
102 |
|
close(fileno(stdout)); |
103 |
|
/* create named pipes for input and output */ |
104 |
|
if (mknod(mktemp(strcpy(inpname,TEMPLATE)), S_IFIFO|0600) < 0) |
128 |
|
inpname[0] = '\0'; |
129 |
|
unlink(outpname); |
130 |
|
outpname[0] = '\0'; |
129 |
– |
clean_slate(); /* reset time and ray counters */ |
131 |
|
return; |
132 |
|
createrr: |
133 |
|
error(SYSTEM, "cannot create named pipes in pfhold"); |
196 |
|
formerr: |
197 |
|
error(USER, "format error in persist file"); |
198 |
|
} |
199 |
+ |
|
200 |
+ |
#endif |