home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!decwrl!csus.edu!netcom.com!pdh
- From: pdh@netcom.com (Phil Howard )
- Subject: Re: How do you read binary data piped into stdin?
- Message-ID: <1993Jan28.110651.12468@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <N0gRXB1w165w@eastwind.mcds.com> <1993Jan26.012308.19664@netcom.com> <930126.062840.1v1.rusnews.w165w@cybrspc.uucp>
- Date: Thu, 28 Jan 1993 11:06:51 GMT
- Lines: 19
-
- roy%cybrspc@cs.umn.edu (roy) writes:
-
- >pdh@netcom.com (Phil Howard ) writes:
- >
- >> Unfortunately, standard C lacks a facility to change the mode of an open
- >> file. This would be what you need, and I have had situations where I need
- >> this as well.
- >
- >What about setmode()? My FM says the call is available on Unix systems.
- >Is the FM lying to me? (I s'pose it wouldn't be the first time)
-
- Your machine may have setmode(). In fact many machines might; I don't know
- for sure. But ANSI C does not, so it is not as portable as C. Of course
- people could use it where it exists and avodi having to do other things.
- --
- /************************************************************************\
- | Phil Howard, pdh@netcom.com, KA9WGN Spell protection? "1(911)A1" |
- | "It's not broken... it's just functionally challenged" --Phil and Pete |
- \************************************************************************/
-