--- ray/src/common/fropen.c 1994/04/14 04:44:45 2.6 +++ ray/src/common/fropen.c 2003/06/30 14:59:11 2.11 @@ -1,25 +1,26 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: fropen.c,v 2.11 2003/06/30 14:59:11 schorsch Exp $"; #endif - /* * Find and open a Radiance library file. + * + * External symbols declared in standard.h */ +#include "copyright.h" + #include #include "paths.h" FILE * -fropen(fname) /* find file and open for reading */ +frlibopen(fname) /* find file and open for reading */ register char *fname; { - extern char *strcpy(), *getlibpath(); + extern char *strcpy(), *getrlibpath(); FILE *fp; - char pname[MAXPATH]; + char pname[PATH_MAX]; register char *sp, *cp; if (fname == NULL) @@ -28,7 +29,7 @@ register char *fname; if (ISDIRSEP(fname[0]) || fname[0] == '.') /* absolute path */ return(fopen(fname, "r")); /* check search path */ - sp = getlibpath(); + sp = getrlibpath(); do { cp = pname; while (*sp && (*cp = *sp++) != PATHSEP)