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

...

    for (;;) {
	if (TReadRequest (sd, tx, NOTOK, td) == NOTOK) {
	    if (td -> td_reason != DR_NORMAL)
		error ("T-READ.REQUEST: %s", TErrString (td -> td_reason));
	    break;
	}

	if (tx -> tx_expedited)
	    result = TExpdRequest (sd, tx -> tx_base, tx -> tx_cc, td);
	else
	    result = TDataRequest (sd, tx -> tx_base, tx -> tx_cc, td);
	if (tx -> tx_base)
	    free (tx -> tx_base);

	if (result == NOTOK)
	    error ("%s: %s", tx -> tx_expedited ? "T-EXPEDITED-DATA.REQUEST"
		    : "T-DATA.REQUEST", TErrString (td -> td_reason));

    }

    exit (0);
}

unix.superglobalmegacorp.com

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