* pxheader - program to sit in front of interpreter code to make shell mods
* unnecessary to make Pascal obj's look like real programs.
* This program lives in /usr/lib/px_header
* Bill Joy UCB February 6, 1978
static char *sccsid
= "@(#)px_header.c 1.1 (Berkeley) %G%";
#define ADDR_LC HEADER_BYTES - sizeof (struct exec) - sizeof (struct pxhdr)
register unsigned short *ip
;
error("Too many arguments.\n");
for (i
= 1; i
< argc
; i
++)
ip
= (unsigned short *) (ADDR_LC
);
i
= ((struct pxhdr
*)(ADDR_LC
))->objsize
+ sizeof(struct pxhdr
);
j
= (i
> 0 && i
< BUFSIZ
) ? i
: BUFSIZ
;
ip
+= BUFSIZ
/ sizeof ( unsigned short );
error("Px not found.\n");