Xref: utzoo comp.lang.c:31686 alt.lang.cfutures:50 Path: utzoo!utgpu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.lang.c,alt.lang.cfutures Subject: Re: STDIO (Re: TRUE and FALSE) Message-ID: <6539@sugar.hackercorp.com> Date: 7 Sep 90 23:25:08 GMT References: <17632@haddock.ima.isc.com> <38Q5QG2@xds13.ferranti.com> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Organization: Sugar Land Unix - Houston Lines: 26 In article stephen@estragon.uchicago.edu (Stephen P Spackman) writes: > Another thing that is needed is a function > FILE *pseudof > ( int (*producer)(void *handle, char *buf, size_t len) > , int (*consumer)(void *handle, char const *buf, size_t len) > , void *handle > , char const *mode > ); That's pretty cool, man. I like it. Except that in my ideal stdio the mode is back to being a binary mask, but that was easy to miss. The mas would have values like: O_RONLY O_RDWR O_WRONLY O_BINARY O_APPEND O_UNBUFFERED etc... > That signature needs further thought - maybe it needs a flush/close > function as well, e.g.; but it's not so far away. Sounds good. -- Peter da Silva. `-_-' .