| 47 |
|
#define guard_io() 0 |
| 48 |
|
#define unguard() 0 |
| 49 |
|
#endif |
| 50 |
+ |
|
| 51 |
+ |
#ifndef linux |
| 52 |
+ |
extern char *sys_errlist[]; |
| 53 |
+ |
#endif |
| 54 |
+ |
|
| 55 |
|
/* rpict command */ |
| 56 |
|
char *rpargv[128] = {"rpict", "-S", "1"}; |
| 57 |
|
int rpargc = 3; |
| 198 |
|
int ltyp; |
| 199 |
|
{ |
| 200 |
|
static struct flock fls; /* static so initialized to zeroes */ |
| 196 |
– |
extern char *sys_errlist[]; |
| 201 |
|
|
| 202 |
|
fls.l_type = ltyp; |
| 203 |
|
if (fcntl(fd, F_SETLKW, &fls) < 0) { |
| 552 |
|
filerr(t) /* report file error and exit */ |
| 553 |
|
char *t; |
| 554 |
|
{ |
| 551 |
– |
extern char *sys_errlist[]; |
| 552 |
– |
|
| 555 |
|
fprintf(stderr, "%s: %s error on file \"%s\": %s\n", |
| 556 |
|
progname, t, outfile, sys_errlist[errno]); |
| 557 |
|
_exit(1); |