9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Pietro Gagliardi <pietro10@mac.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] APE printf difference
Date: Mon,  7 Jul 2008 17:01:08 -0400	[thread overview]
Message-ID: <6ACC80E1-EB30-44AF-A1CA-72B990AE6A6B@mac.com> (raw)
In-Reply-To: <a7d531a84f842f26980f8cefd1623a11@terzarima.net>

C89 does have such a requirement, in two places:

Section 5.1.2.3:
"...
- The input and output dynamics of interactive devices shall take
place as specified in 7.9.3. ... or line-buffered input appear as soon
as possible, to ensure that prompting messages actually appear prior
to a program waiting for input.
..."

Section 7.9.3:
"... Furthermore, characters are intended to be transmitted as a block
to the host environment when ... input is requested on an unbuffered
stream, or input is requested on a line buffered stream ..."

So there you go. I don't know about C99, but I do know POSIX/SUS are
designed to be aligned with standard C.

Pietro




  reply	other threads:[~2008-07-07 21:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-06 22:03 Fernan Bolando
2008-07-06 22:14 ` erik quanstrom
2008-07-06 23:04   ` Charles Forsyth
2008-07-07 21:01     ` Pietro Gagliardi [this message]
2008-07-07 21:21       ` erik quanstrom
2008-07-07 23:02       ` Charles Forsyth
2008-07-08  0:07         ` a
2008-07-09 11:12           ` lucio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ACC80E1-EB30-44AF-A1CA-72B990AE6A6B@mac.com \
    --to=pietro10@mac.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).