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 |
|
* Get general information on holodeck file |
6 |
|
*/ |
37 |
|
char *fname; |
38 |
|
FILE *fout; |
39 |
|
{ |
43 |
– |
extern long ftell(); |
40 |
|
FILE *fp; |
41 |
|
HOLO *hdsect; |
42 |
|
int fd; |
56 |
|
nextloc = ftell(fp); /* get stdio position */ |
57 |
|
fclose(fp); /* done with stdio */ |
58 |
|
for (n = 0; nextloc > 0L; n++) { /* get the section(s) */ |
59 |
< |
lseek(fd, (long)nextloc, 0); |
59 |
> |
lseek(fd, (off_t)nextloc, 0); |
60 |
|
read(fd, (char *)&nextloc, sizeof(nextloc)); |
61 |
|
fprintf(fout, "Section %d:\n", n); |
62 |
|
hdsect = hdinit(fd, NULL); /* load section directory */ |