File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grind4-6b.py
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

...

/*    MAIN */

/* ARGSUSED */

main (argc, argv, envp)
int	argc;
char  **argv,
      **envp;
{
    PE	    pe;
    PS	    ps;

    myname = *argv;
    if ((ps = ps_alloc (std_open)) == NULLPS)
	adios (NULLCP, "ps_alloc loses");
    if (std_setup (ps, stdin) == NOTOK)
	ps_adios (ps, "std_setup");

    for (;;) {
	if ((pe = ps2pe (ps)) == NULLPE)
	    if (ps -> ps_errno)
		ps_adios (ps, "ps2pe");
	    else
		break;

	(void) parse_PERSONNEL_PersonnelRecord (pe, 1, NULLIP, NULLVP,
		    NULLCP);

	pe_free (pe);
    }

    ps_free (ps);

    exit (0);
}

%}

...

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.