* [9fans] libbio questions
@ 2008-11-06 3:51 Pietro Gagliardi
2008-11-06 4:21 ` Russ Cox
0 siblings, 1 reply; 3+ messages in thread
From: Pietro Gagliardi @ 2008-11-06 3:51 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello. Why do we have something like
vlong Boffset(Biobufhdr *r);
instead of
vlong Boffset(Biobuf *r);
and
long Bgetrune(Biobuf *r);
instead of
Rune Bgetrune(Biobuf *r);
Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkkSacAACgkQuv7AVNQDs+xMIACeNsbjeH+E3dAUcPSc76kzzjuy
Q+oAnArcDCCVkxwVSuy2p4fwYRhVgBLG
=bsZB
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] libbio questions
2008-11-06 3:51 [9fans] libbio questions Pietro Gagliardi
@ 2008-11-06 4:21 ` Russ Cox
2008-11-06 4:29 ` Pietro Gagliardi
0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2008-11-06 4:21 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> Hello. Why do we have something like
>
> vlong Boffset(Biobufhdr *r);
>
> instead of
>
> vlong Boffset(Biobuf *r);
Because there is an anonymous Biobufhdr
in the Biobuf, so it doesn't matter. At one point,
it was possible to declare your own buffered
i/o by just embedding a Biobufhdr and filling
it in correctly.
> long Bgetrune(Biobuf *r);
>
> instead of
>
> Rune Bgetrune(Biobuf *r);
Because Bgetrune needs to be able to return -1 on EOF.
Russ
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] libbio questions
2008-11-06 4:21 ` Russ Cox
@ 2008-11-06 4:29 ` Pietro Gagliardi
0 siblings, 0 replies; 3+ messages in thread
From: Pietro Gagliardi @ 2008-11-06 4:29 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Nov 5, 2008, at 11:21 PM, Russ Cox wrote:
> At one point, it was possible to declare your own buffered
> i/o by just embedding a Biobufhdr and filling it in correctly.
Is that still possible/useful?
Thanks for the rest of the info.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkkScpwACgkQuv7AVNQDs+yOFwCfYKCg+Bv7Dev+gbOwz3bE/8id
ccYAoIGxVrw9M6L6qi23eXdFw3SDQK9Z
=gW3h
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-06 4:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 3:51 [9fans] libbio questions Pietro Gagliardi
2008-11-06 4:21 ` Russ Cox
2008-11-06 4:29 ` Pietro Gagliardi
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).