From: Nathaniel W Filardo <nwf@cs.jhu.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] What's so special about seek() ?
Date: Mon, 20 Oct 2008 03:26:45 -0400 [thread overview]
Message-ID: <20081020072645.GJ4216@masters10.cs.jhu.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 298 bytes --]
/sys/src/libc/9syscall/mkfile has a rather odd looking special case for the
seek system call... it looks like if seek fails (returns -1) that the first
two arguments (fd and offset) are overwritten with -1. What's going on
here? The manual page doesn't hint at anything...
Thanks.
--nwf;
[-- Attachment #2: Type: application/pgp-signature, Size: 204 bytes --]
next reply other threads:[~2008-10-20 7:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 7:26 Nathaniel W Filardo [this message]
2008-10-20 8:19 ` C H Forsyth
2008-10-20 20:30 ` Nathaniel W Filardo
2008-10-20 20:50 ` Steve Simon
2008-10-20 21:11 ` Charles Forsyth
2008-10-20 21:03 ` Nathaniel W Filardo
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=20081020072645.GJ4216@masters10.cs.jhu.edu \
--to=nwf@cs.jhu.edu \
--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).