* tell vcat which fonts are loaded on the "typesetter"
#define MAGIC_NUMBER 0436
#define RAILMAG_FILE "/usr/lib/vfont/railmag"
error("Invalid font number");
rm
[fnum
-1] = concat(cbuf
[fnum
-1], "/usr/lib/vfont/", argv
[1]);
write(2, "Railmag: ", 9);
write(2, str
, strlen(str
));
if((fd
= open(concat(cbuf
, file
, ".10"), 0)) < 0)
if((fd
= open(concat(cbuf2
, "/usr/lib/vfont/", cbuf
), 0)) < 0)
if(read(fd
, &word
, 2) != 2)
error("font has no magic number");
if((rmfd
= open(RAILMAG_FILE
, 0)) < 0)
error("No railmag file");
while(read(rmfd
, &c
, 1) == 1 && c
!= '\n')
printf("%s on %d\n", rm
[i
], i
+1);
if((rmfd
= creat(RAILMAG_FILE
, 0644)) < 0)
error("cant recreate railmag file");