File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grind5b-4.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

...

    while (fgets (buffer, sizeof buffer, stdin))
	if (SDataRequest (sd, buffer, strlen (buffer) + 1, si) == NOTOK)
	    error ("S-DATA.REQUEST: %s", SErrString (sa -> sa_reason));

    if (SRelRequest (sd, NULLCP, 0, NOTOK, sr, si) == NOTOK)
	error ("S-RELEASE.REQUEST: %s", SErrString (sa -> sa_reason));

    if (!sr -> sr_affirmative) {
	(void) SUAbortRequest (sd, NULLCP, 0, si);
	error ("release rejected by sink");
    }

    exit (0);
}

unix.superglobalmegacorp.com

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