From: Geoff Collyer <geoff@collyer.net>
To: 9fans@cse.psu.edu
Subject: [9fans] mmap (was configure misery)
Date: Sun, 16 Nov 2003 16:30:09 -0800 [thread overview]
Message-ID: <9ad066c1012da12cc6fe20b64c4aa937@collyer.net> (raw)
In-Reply-To: <0ca601c3ac7c$063589c0$b9844051@insultant.net>
I believe the war story that Boyd is thinking of is that Sun were very
excited about using mmap in SunOS 4.0 (to make the benchmark
cat bigfile >/dev/null
run in essentially zero time) and even rewrote stdio to use mmap
whenever possible. I believe their cat still used stdio (or they
rewrote cat to use mmap directly) and they had forgotten in their
excitement that open files have seek offsets and that they are
inherited. So the shell commands
(read line; cat; echo $line) <disk-file
would print the entire file, followed by its first line, instead of
all but the first line, followed by the first line. I can't recall
the real-life example, but it was much more embarrassing.
next prev parent reply other threads:[~2003-11-17 0:30 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-16 8:04 [9fans] Re: configure misery Aharon Robbins
2003-11-16 8:37 ` Geoff Collyer
2003-11-16 14:46 ` Charles Forsyth
2003-11-16 9:53 ` Bruce Ellis
2003-11-16 19:11 ` Lyndon Nerenberg
2003-11-16 19:32 ` andrey mirtchovski
2003-11-16 21:43 ` Dan Cross
2003-11-16 23:37 ` Lyndon Nerenberg
2003-11-17 0:04 ` mirtchov
2003-11-17 0:04 ` boyd, rounin
2003-11-17 3:18 ` Dan Cross
2003-11-17 3:28 ` boyd, rounin
2003-11-16 21:46 ` Russ Cox
2003-11-16 22:24 ` mirtchov
2003-11-16 22:47 ` Russ Cox
2003-11-17 0:38 ` Mike Haertel
2003-11-16 22:38 ` Lyndon Nerenberg
2003-11-16 22:41 ` boyd, rounin
2003-11-18 12:54 ` Aharon Robbins
2003-11-18 14:11 ` Russ Cox
2003-11-18 14:55 ` Joel Salomon
2003-11-17 0:24 ` Enache Adrian
2003-11-17 12:16 ` Aharon Robbins
2003-11-17 23:16 ` Taj Khattra
2003-11-16 19:58 ` boyd, rounin
2003-11-17 0:30 ` Geoff Collyer [this message]
2003-11-17 0:29 ` [9fans] mmap (was configure misery) boyd, rounin
2003-11-17 12:25 ` [9fans] Re: configure misery Aharon Robbins
2003-11-17 0:42 ` John Stalker
2003-11-17 12:28 ` Aharon Robbins
2003-11-17 12:42 ` Lucio De Re
2003-11-17 12:53 ` Lucio De Re
2003-11-17 13:43 ` Aharon Robbins
2003-11-17 15:06 ` mirtchov
2003-11-17 15:35 ` David Presotto
2003-11-17 16:31 ` John Stalker
2003-11-17 17:19 ` Aharon Robbins
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=9ad066c1012da12cc6fe20b64c4aa937@collyer.net \
--to=geoff@collyer.net \
--cc=9fans@cse.psu.edu \
/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).