File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grind5a-3.c
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

...

    while (fgets (buffer, sizeof buffer, stdin)) {
	register PE = oct2prim (buffer, strlen (buffer) + 1);

	if (PDataRequest (sd, &pe, 1, pi) == NOTOK)
	    error ("P-DATA.REQUEST: %s", PErrString (pa -> pa_reason));

	pe_free (pe);
    }

    if (PRelRequest (sd, NULLPEP, 0, NOTOK, pr, pi) == NOTOK)
	error ("P-RELEASE.REQUEST: %s", PErrString (pa -> pa_reason));

    if (!pr -> pr_affirmative) {
	(void) PUAbortRequest (sd, NULLPEP, 0, pi);
	error ("release rejected by sink");
    }
    PRFREE (pr);

    exit (0);
}

unix.superglobalmegacorp.com

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