--- ray/src/common/rtio.h 2003/06/30 14:59:11 3.2 +++ ray/src/common/rtio.h 2003/10/27 10:19:31 3.5 @@ -1,19 +1,20 @@ -/* RCSid $Id: rtio.h,v 3.2 2003/06/30 14:59:11 schorsch Exp $ */ +/* RCSid $Id: rtio.h,v 3.5 2003/10/27 10:19:31 schorsch Exp $ */ /* * Radiance i/o and string routines */ #ifndef _RAD_RTIO_H_ #define _RAD_RTIO_H_ -#ifdef __cplusplus -extern "C" { -#endif #include #include #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* XXX include paths.h instead */ #ifndef F_OK /* mode bits for access(2) call */ #define R_OK 4 /* readable */ @@ -22,9 +23,6 @@ extern "C" { #define F_OK 0 /* exists */ #endif - /* is missing on some systems */ -extern off_t lseek(int, off_t, int); - /* defined in badarg.c */ extern int badarg(int ac, char **av, char *fl); /* defined in expandarg.c */ @@ -46,6 +44,8 @@ extern void fputword(char *s, FILE *fp); extern FILE *frlibopen(char *fname); /* defined in getlibpath.c */ extern char *getrlibpath(void); + /* defined in gethomedir.c */ +extern char *gethomedir(char *uname, char *path, int plen); /* defined in getpath.c */ extern char *getpath(char *fname, char *searchpath, int mode); /* defined in portio.c */