home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!taumet!steve
- From: steve@taumet.com (Steve Clamage)
- Subject: Re: How do you read binary data piped into stdin?
- Message-ID: <1993Jan28.162546.27128@taumet.com>
- Organization: TauMetric Corporation
- References: <N0gRXB1w165w@eastwind.mcds.com> <1993Jan26.012308.19664@netcom.com> <930126.062840.1v1.rusnews.w165w@cybrspc.uucp>
- Date: Thu, 28 Jan 1993 16:25:46 GMT
- Lines: 22
-
- 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)
-
- Note that Phil said "standard C". Individual implementations may
- provide many functions not part of Standard C. (I prefer to capitalize
- it when referring to the ANSI/ISO Standard.)
-
- It is not possible on many systems to change the mode of an open file
- from text to binary. Unix makes no distinction between text and binary
- files, and could perhaps accomplish this trick easily. On the other
- hand, the versions of Unix I use do not have a function called setmode().
- --
-
- Steve Clamage, TauMetric Corp, steve@taumet.com
-