9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] What's so special about seek() ?
@ 2008-10-20  7:26 Nathaniel W Filardo
  2008-10-20  8:19 ` C H Forsyth
  2008-10-20 21:11 ` Charles Forsyth
  0 siblings, 2 replies; 6+ messages in thread
From: Nathaniel W Filardo @ 2008-10-20  7:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-20 21:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-20  7:26 [9fans] What's so special about seek() ? Nathaniel W Filardo
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

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