Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards Subject: Re: stdio on SYSV vrs BSD Message-ID: <12763@smoke.BRL.MIL> Date: 2 May 90 06:06:29 GMT References: <558@venice.SEDD.TRW.COM> Organization: U.S. Army Ballistic Research Laboratory Lines: 10 In article <558@venice.SEDD.TRW.COM> waldorf@venice.sedd.trw.com (Jerry Waldorf) writes: > In the file /usr/include/stdio.h on a BSD box, there is a defined: >#define _IOSTRG 0100 > What exactly is this used for? What is the equivalent on SYSV machines? It's a flag bit used internally by sprintf() and sscanf(), in a FILE structure that they own, to indicate that I/O is from/to a memory buffer, instead of the usual file descriptor in a user-supplied FILE structure. UNIX System V often uses a totally different kludge for this; in Release 2 it was to reserve the last _iob[] member for this purpose. Better approaches are possible.