| 5 |
|
|
| 6 |
|
#ifndef _RAD_RTIO_H_ |
| 7 |
|
#define _RAD_RTIO_H_ |
| 8 |
– |
#ifdef __cplusplus |
| 9 |
– |
extern "C" { |
| 10 |
– |
#endif |
| 8 |
|
|
| 9 |
|
#include <stdio.h> |
| 10 |
|
#include <sys/types.h> |
| 11 |
|
#include <fcntl.h> |
| 12 |
|
#include <string.h> |
| 13 |
|
|
| 14 |
+ |
#ifdef __cplusplus |
| 15 |
+ |
extern "C" { |
| 16 |
+ |
#endif |
| 17 |
+ |
|
| 18 |
|
/* XXX include paths.h instead */ |
| 19 |
|
#ifndef F_OK /* mode bits for access(2) call */ |
| 20 |
|
#define R_OK 4 /* readable */ |
| 23 |
|
#define F_OK 0 /* exists */ |
| 24 |
|
#endif |
| 25 |
|
|
| 25 |
– |
/* <unistd.h> is missing on some systems */ |
| 26 |
– |
extern off_t lseek(int, off_t, int); |
| 27 |
– |
|
| 26 |
|
/* defined in badarg.c */ |
| 27 |
|
extern int badarg(int ac, char **av, char *fl); |
| 28 |
|
/* defined in expandarg.c */ |
| 44 |
|
extern FILE *frlibopen(char *fname); |
| 45 |
|
/* defined in getlibpath.c */ |
| 46 |
|
extern char *getrlibpath(void); |
| 47 |
+ |
/* defined in gethomedir.c */ |
| 48 |
+ |
extern char *gethomedir(char *uname, char *path, int plen); |
| 49 |
|
/* defined in getpath.c */ |
| 50 |
|
extern char *getpath(char *fname, char *searchpath, int mode); |
| 51 |
|
/* defined in portio.c */ |