Article View: news.software.nntp
Article #62923Re: NNTP and YENC
From: Russ Allbery
Date: Tue, 07 Jan 2003 19:41
Date: Tue, 07 Jan 2003 19:41
24 lines
2461 bytes
2461 bytes
Karl Kleinpaste <karl@charcoal.com> writes:
> In 20+ years in the land of UNIX and Linux, I've never worked with a
> system which comprehended an "rb" argument to fopen(3). It sounds like
> (to emphasize a phrase) a platform-specific issue.
Well, to be fair, most Unixes support "rb" as a flag to fopen. They just
ignore the "b". For example, from the Linux manual pages:
The mode string can also include the letter "b" either as a last
character or as a character between the characters in any of the two-
character strings described above. This is strictly for compatibility
with ANSI X3.159-1989 ("ANSI C") and has no effect; the "b" is ignored
on all POSIX conforming systems, including Linux. (Other systems may
treat text files and binary files differently, and adding the "b" may
be a good idea if you do I/O to a binary file and expect that your
program may be ported to non-Unix environments.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylu1gk7non.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03> <ylfzs8tlg7.fsf@windlord.stanford.edu> <e7VR9.570818$%m4.168983@rwcrnsc52.ops.asp.att.net> <86n0mflgcc.fsf@number6.magda.ca> <uUnS9.128$wz1.135006@news.uswest.net> <ylsmw5yj2d.fsf@windlord.stanford.edu> <1whhai4ut01zx.dlg@meowing.net> <n1vS9.271676$qF3.24635@sccrnsc04> <vxkk7hhhyct.fsf@cinnamon.vanillaknot.com>Show Full Headers
Complete Article Headers
Message-ID: <ylu1gk7non.fsf@windlord.stanford.edu> Subject: Re: NNTP and YENC Date: Tue, 07 Jan 2003 11:41:12 -0800 From: Russ Allbery <rra@stanford.edu> References: <BXLR9.432835$pN3.48082@sccrnsc03> <ylfzs8tlg7.fsf@windlord.stanford.edu> <e7VR9.570818$%m4.168983@rwcrnsc52.ops.asp.att.net> <86n0mflgcc.fsf@number6.magda.ca> <uUnS9.128$wz1.135006@news.uswest.net> <ylsmw5yj2d.fsf@windlord.stanford.edu> <1whhai4ut01zx.dlg@meowing.net> <n1vS9.271676$qF3.24635@sccrnsc04> <vxkk7hhhyct.fsf@cinnamon.vanillaknot.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 23 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1041968472 29889 171.64.13.23 (7 Jan 2003 19:41:12 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:hdE4LRHuRcNe2k0GDJZ509nC8VE=