1 |
– |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Create a closed environment from a holodeck section |
6 |
|
*/ |
74 |
|
nextloc = ftell(fp); /* get stdio position */ |
75 |
|
fclose(fp); /* done with stdio */ |
76 |
|
for (n = 0; nextloc > 0L; n++) { /* get the indicated section */ |
77 |
< |
lseek(fd, (long)nextloc, 0); |
77 |
> |
lseek(fd, (off_t)nextloc, 0); |
78 |
|
read(fd, (char *)&nextloc, sizeof(nextloc)); |
79 |
|
if (n == sect) { |
80 |
|
hdinit(fd, NULL); |
321 |
|
} |
322 |
|
|
323 |
|
|
324 |
+ |
void |
325 |
|
eputs(s) /* put error message to stderr */ |
326 |
|
register char *s; |
327 |
|
{ |