* Do system configuration for VAX/UNIX
* 1) Build system data structures
* 3) Create header files for devices
* Michael Toy -- Berkeley -- 1981
fprintf(stderr
, "usage: config <sysname>\n");
if (freopen(argv
[1], "r", stdin
) == NULL
)
ioconf(); /* Print ioconf.c */
ubglue(); /* Create ubglue.s */
makefile(); /* build Makefile */
headers(); /* make a lot of .h files */
printf("Don't forget to run \"make depend\"\n");
* returns EOF on end of file
* pointer to the word otherwise
while((ch
= getc(fp
)) != EOF
)
if (ch
!= ' ' && ch
!= '\t')
while((ch
= getc(fp
)) != EOF
)
* Prepend the path to a filename
cp
= malloc(strlen(PREFIX
)+strlen(file
)+5);