| 11 |
|
#include <fcntl.h> |
| 12 |
|
#include <string.h> |
| 13 |
|
|
| 14 |
+ |
#include "paths.h" |
| 15 |
+ |
|
| 16 |
|
#ifdef __cplusplus |
| 17 |
|
extern "C" { |
| 18 |
|
#endif |
| 19 |
|
|
| 18 |
– |
/* XXX include paths.h instead */ |
| 19 |
– |
#ifndef F_OK /* mode bits for access(2) call */ |
| 20 |
– |
#define R_OK 4 /* readable */ |
| 21 |
– |
#define W_OK 2 /* writable */ |
| 22 |
– |
#define X_OK 1 /* executable */ |
| 23 |
– |
#define F_OK 0 /* exists */ |
| 24 |
– |
#endif |
| 25 |
– |
|
| 20 |
|
/* defined in badarg.c */ |
| 21 |
|
extern int badarg(int ac, char **av, char *fl); |
| 22 |
|
/* defined in expandarg.c */ |
| 32 |
|
extern char *fgetword(char *s, int n, FILE *fp); |
| 33 |
|
/* defined in fputword.c */ |
| 34 |
|
extern void fputword(char *s, FILE *fp); |
| 41 |
– |
/* defined in fixargv0.c */ |
| 42 |
– |
/*extern char *fixargv0(char *av0);*/ /* XXX include paths.h instead */ |
| 35 |
|
/* defined in fropen.c */ |
| 36 |
|
extern FILE *frlibopen(char *fname); |
| 37 |
|
/* defined in getlibpath.c */ |