On 10 August 2015 at 21:17, Giacomo Tesio wrote:
> Zero can either mean EOF or "I'm alive but boring".
>
>
I can't see how a reliable communication (a cpu connection for example) can
> survive this mismatch.
> I'm probably missing something.
>
A specialised reader and writer can always agree tha
2015-08-10 16:54 GMT+02:00 Charles Forsyth :
> Zero conventionally means end-of-file, but record boundaries are preserved
> on capable streams, so if a writer writes zero, the reader reads zero.
>
However this two requirements do not seem reconcilable.
Zero can either mean EOF or "I'm alive but
Quoting Ryan Gonzalez :
I saw "GitHub" and "Plan 9" together and immediately heard angels singing. :)
A funeral dirge?
khm
As a further historical note, originally 9P required a stream that preseved
record boundaries, and the reliable datagram protocol IL/IP and pipes did
that. Once TCP/IP was used, there was some fussing needed to work out where
the records were, so the revision 9P2000 added a size and the stream didn
Zero conventionally means end-of-file, but record boundaries are preserved
on capable streams, so if a writer writes zero, the reader reads zero.
Having said that, I think the comment is wrong, and read9pmsg returning
zero should be interpreted as the end of the (9p) stream.
In most cases, the wri
2015-08-10 16:22 GMT+02:00 erik quanstrom :
> on plan 9 systems 0 writes are not discarded.
>
Interesting! Is this "by design"?
And what is the intended usage of 0 writes?
BTW, so fcall(2) is misleading, a 0 read can not be used to identify an
EOF, right?
Giacomo
on plan 9 systems 0 writes are not discarded.
- erik
On Aug 10, 2015 7:11 AM, Giacomo Tesio wrote:Hi, I've a probably naive question that I can't figure out.I've just noticed that fcall(2) statesRead9pmsg calls read(2) multiple times, if necessary, to
read an entire 9P message into buf. The ret
Hi, I've a probably naive question that I can't figure out.
I've just noticed that fcall(2) states
> Read9pmsg calls read(2) multiple times, if necessary, to
> read an entire 9P message into buf. The return value is 0
> for end of file, or -1 for error; it does not return partial
> messages.
>
>
Actually the command is no rocket science. You can simply use hget, sed and
htmlfmt to reach similar things. The 'github' command is a kind of shortcut to
blobs from github repositories.
The --raw mode is the opposite of --blob. I changed the code that *.md files
are automatically read blob fi
I saw "GitHub" and "Plan 9" together and immediately heard angels singing. :)
Question what does the --raw option do?
On August 10, 2015 5:04:54 AM CDT, Ingo Krabbe wrote:
>Hi Plan9ers,
>
>I wrote a little rc script for my personal use. I want to share it with
>you, as it look quite usefull to m
Hi Plan9ers,
I wrote a little rc script for my personal use. I want to share it with you, as
it look quite usefull to me (why would I have wrote it otherwise).
https://github.com/ikrabbe/github.rc
Check it out and tell me your thoughts.
Regards,
ingo
11 matches
Mail list logo