| 1 |
< |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
| 1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
| 2 |
|
|
| 3 |
|
#ifndef lint |
| 4 |
|
static char SCCSid[] = "$SunId$ SGI"; |
| 109 |
|
} |
| 110 |
|
/* check settings */ |
| 111 |
|
checkvalues(); |
| 112 |
< |
/* load RIF if rtrace */ |
| 113 |
< |
if (ncprocs) |
| 114 |
< |
getradfile(); |
| 112 |
> |
/* load rad input file */ |
| 113 |
> |
getradfile(); |
| 114 |
|
|
| 115 |
|
if (hdlist[0] == NULL) { /* create new holodeck */ |
| 116 |
|
HDGRID hdg[HDMAX]; |
| 175 |
|
if (fstat(fd, &stbuf) < 0) |
| 176 |
|
error(SYSTEM, "cannot stat open holodeck file"); |
| 177 |
|
mod &= stbuf.st_mode; /* always more restrictive */ |
| 178 |
< |
if (mod == stbuf.st_mode) |
| 178 |
> |
if (mod == (stbuf.st_mode & 0777)) |
| 179 |
|
return(-1); /* already set */ |
| 180 |
|
/* else change it */ |
| 181 |
|
if (fchmod(fd, mod) < 0) { |