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

\File{grind5a\-3.c},{16:46},{Oct 14 1989}
\L{\LB{...}}
\L{\LB{}}
\L{\LB{\Proc{while}    \K{while} (fgets (buffer, \K{sizeof} buffer, stdin)) \{}}
\L{\LB{}\Tab{8}{\K{register} PE = oct2prim (buffer, strlen (buffer) + 1);}}
\L{\LB{}}
\L{\LB{}\Tab{8}{\K{if} (PDataRequest (sd, \&pe, 1, pi) == NOTOK)}}
\L{\LB{}\Tab{8}{    error (\S{}\"P\-DATA.REQUEST: \%s\"\SE{}, PErrString (pa \-\> pa\_reason));}}
\L{\LB{}}
\L{\LB{}\Tab{8}{pe\_free (pe);}}
\L{\LB{    \}}}
\L{\LB{}}
\L{\LB{\Proc{if}    \K{if} (PRelRequest (sd, NULLPEP, 0, NOTOK, pr, pi) == NOTOK)}}
\L{\LB{}\Tab{8}{error (\S{}\"P\-RELEASE.REQUEST: \%s\"\SE{}, PErrString (pa \-\> pa\_reason));}}
\L{\LB{}}
\L{\LB{\Proc{if}    \K{if} (!pr \-\> pr\_affirmative) \{}}
\L{\LB{}\Tab{8}{(\K{void}) PUAbortRequest (sd, NULLPEP, 0, pi);}}
\L{\LB{}\Tab{8}{error (\S{}\"release rejected by sink\"\SE{});}}
\L{\LB{    \}}}
\ProcCont{if}\L{\LB{    PRFREE (pr);}}
\L{\LB{}}
\L{\LB{    exit (0);}}
\L{\LB{\}}}

unix.superglobalmegacorp.com

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