/* Copyright (c) 1979 Regents of the University of California */
* pi - Pascal interpreter code translator
* Charles Haley, Bill Joy UCB
* Version 1.2 January 1979
* pxp - Pascal execution profiler
* Version 1.2 January 1979
* Yymain initializes each of the utility
* clusters and then starts the processing
Perror(filename
, "No lines in file");
* Initialize the clusters
writef(2, "File not rewritten because of errors\n");
pexit(eflg
? ERRS
: AOK
);
if (creat(firstname
, 0644) != 1) {
while ((c
= read(fout
[0], &fout
[3], 512)) > 0) {
if (write(1, &fout
[3], c
) != c
) {
hf
= open("/usr/lib/npx_header", 0);
if (hf
>= 0 && read(hf
, buf
, 1024) > 16) {
header
.txt_size
= buf
[1];
header
.data_size
= buf
[2];
for (i
= 0; i
< 512; i
++)
if (header
.magic
!= 0407)
header
.data_size
= lc
- header
.txt_size
;
write(ofil
, &header
, sizeof header
);
write(i
, cp
, strlen(cp
));