From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c86eb13dd395066 X-Google-Attributes: gid103376,public From: Jim Balter Subject: Re: CRC in Ada? Date: 1997/03/14 Message-ID: <332946AE.2C9C@netcom.com>#1/1 X-Deja-AN: 225446235 References: <1997Mar2.220652@nova.wright.edu> <1997Mar5.083233.1@eisner> <1997Mar5.131846.1@eisner> <3324A8B9.4A18@netcom.com> <3325DD47.565E@netcom.com> <3326B7A3.6ECF@netcom.com> <5gapv9$gmm$1@goanna.cs.rmit.edu.au> Organization: JQB Enterprises X-NETCOM-Date: Fri Mar 14 4:39:51 AM PST 1997 Newsgroups: comp.lang.ada Date: 1997-03-14T04:39:51-08:00 List-Id: Richard A. O'Keefe wrote: > > Jim Balter writes: > >I have already quoted you as saying that a single I/O call per block > >by the *C library* (not a comment about ADA) is not guaranteed. > > I have the C standard and the POSIX standard, and for the life of me > I cannot find in either document _any_ guarantee about how many system > calls or even how many read() calls will be done for fread() or any > other C stdio input function call. "When a stream is /fully buffered/, characters are intended to be transmitted to or from the host environment as a block when a buffer is filled". Someone who does design and planning based upon a theoretical possibility that some implementation will ignore that intent just doesn't know what they are doing, profession-wise. > In fact, it is quite easy to set > up a situation where there _is_ and _has to be_ a read() call for > every character transferred. Which is totally irrelevant to the question of whether it is a "mistake" to do char-at-time processing. If one sets up such a situation then presumably one wants that situation. --