9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@9fans.net
Subject: Re: [9fans] APE printf difference
Date: Tue,  8 Jul 2008 00:02:33 +0100	[thread overview]
Message-ID: <49106a6cc36f1a2d0a749737b674bcb4@terzarima.net> (raw)
In-Reply-To: <6ACC80E1-EB30-44AF-A1CA-72B990AE6A6B@mac.com>

"... 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 ..."

that's true when a stream is established as _IONBF or _IOLBF,
so if you call setvbuf, that will be true.  the bit i quoted earlier dealt
with how the default i/o streams stdin/stdout/stderr were configured,
and that was not clear-cut, being conditional on whether the system
decided they were "interactive" or not, which seemed to be implementation-dependent
behaviour.  now, it might turn out to be straightforward to change APE to configure
the streams based on the guess made by isatty(), but that's why i asked
which way APE should face by default?  for import or export?
Trickey's short paper on APE touches on that, and i think an earlier
paper by Hume on Portability in the Research Unix environment was more
explicit.  in the past i relied on APE to check programs for good portability
when I developed on Plan 9 but supplied the programs to others to run on Unix, VMS and Windows.
perhaps now inward portability is more common, but should the older pedantry not be
available at all?




  parent reply	other threads:[~2008-07-07 23:02 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
2008-07-07 21:21       ` erik quanstrom
2008-07-07 23:02       ` Charles Forsyth [this message]
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=49106a6cc36f1a2d0a749737b674bcb4@terzarima.net \
    --to=forsyth@terzarima.net \
    --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).