Re: [9fans] ftpfs shows empty /n/ftp after login
What version of 9vx are you using? I'm using version 0.12, from here: https://swtch.com/9vx/ This is a pretty old version (2009), which have known issues. Later, Yiyus and Ron Minnich made a lot of improvements. I would recommend you to use this repository: https://github.com/0intro/vx32 -- David du Colombier
Re: [9fans] ftpfs shows empty /n/ftp after login
On 2015-06-26T12:00:36+0200, David du Colombier wrote: This was my first choice but, unfortunately, 9vx crashes on my machine as soon as I try to do something interesting, e.g. compile a program with 8c. What version of 9vx are you using? I'm using version 0.12, from here: https://swtch.com/9vx/ -- Nils M Holm n m h @ t 3 x . o r g www.t3x.org
Re: [9fans] Basic limbo programming help
On 27 June 2015 at 05:58, Roswell Grey orangecal...@gmail.com wrote: So, if there are any limbo programmers out there, would you mind giving me a hand? I'll have a look at your example. The online doc was tested at the time, but perhaps something else changed after that. There's a dedicated Google group for Inferno/Limbo https://groups.google.com/forum/#!forum/inferno-os
Re: [9fans] Basic limbo programming help
On 27 June 2015 at 11:35, Charles Forsyth charles.fors...@gmail.com wrote: The online doc was tested at the time, but perhaps something else changed after that. Use the examples in /doc/descent/descent.pdf (/doc/descent/descent.ms), which was updated to reflect language and window system changes. The html version online wasn't updated for some reason, but I'll see to that.
Re: [9fans] thank you
Hi, The First Unix port was made in 1977 by Richard Miller in the Computing Science Department at the University of Wollongong. http://www.uow.edu.au/content/groups/public/@web/@inf/@scsse/documents/doc/uow103747.pdf https://www.usenix.org/legacy/publications/library/proceedings/usenix98/invited_talks/miller.ps I think that he is the same Richard Miller who did the Plan9 port to Raspberry Pi, right or am I wrong? Antonio
Re: [9fans] Trying to override 'cd' command
From the manual: -l If -l is given or the first character of argument zero is -, rc reads commands from $home/lib/profile, if it exists, before reading its normal input. Does this help you?
Re: [9fans] Trying to override 'cd' command
I think so... So, in order to get my cd command, I enter '-' at the rc prompt? Is there some way for that to happen automatically? On June 27, 2015 8:34:24 AM CDT, Neven Sajko nsa...@gmail.com wrote: From the manual: -l If -l is given or the first character of argument zero is -, rc reads commands from $home/lib/profile, if it exists, before reading its normal input. Does this help you? -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [9fans] ftpfs shows empty /n/ftp after login
On 2015-06-27T11:54:58+0200, David du Colombier wrote: I'm using version 0.12, from here: https://swtch.com/9vx/ This is a pretty old version (2009), which have known issues. Later, Yiyus and Ron Minnich made a lot of improvements. I would recommend you to use this repository: https://github.com/0intro/vx32 Will give it a try, thanks! -- Nils M Holm n m h @ t 3 x . o r g www.t3x.org
Re: [9fans] Help with interrupting fgetc()
On 27 June 2015 at 21:30, Nils M Holm n...@t3x.org wrote: if (!strcmp(s, interrupt)) { A minor stylistic point: Plan 9 code almost invariably uses if(strcmp(...) == 0), and for pointers if(p == nil) instead of if(!p). if(!!...) is never used.
Re: [9fans] Help with interrupting fgetc()
On 2015-06-27T22:12:09+0100, Charles Forsyth wrote: On 27 June 2015 at 21:30, Nils M Holm n...@t3x.org wrote: if (!strcmp(s, interrupt)) { A minor stylistic point: Plan 9 code almost invariably uses if(strcmp(...) == 0), and for pointers if(p == nil) instead of if(!p). if(!!...) is never used. Thanks, appreciated! -- Nils M Holm n m h @ t 3 x . o r g www.t3x.org
Re: [9fans] thank you
2015-06-27 12:41 GMT+02:00 Antonio Barrones antonio@gmail.com: The First Unix port was made in 1977 by Richard Miller in the Computing Science Department at the University of Wollongong. http://www.uow.edu.au/content/groups/public/@web/@inf/@scsse/documents/doc/uow103747.pdf https://www.usenix.org/legacy/publications/library/proceedings/usenix98/invited_talks/miller.ps I think that he is the same Richard Miller who did the Plan9 port to Raspberry Pi, right or am I wrong? Right. Andrés
Re: [9fans] Trying to override 'cd' command
On Sat, Jun 27, 2015 at 11:55:32AM -0500, Ryan Gonzalez wrote: I think so... So, in order to get my cd command, I enter '-' at the rc prompt? Is there some way for that to happen automatically? On June 27, 2015 8:34:24 AM CDT, Neven Sajko nsa...@gmail.com wrote: From the manual: -l If -l is given or the first character of argument zero is -, rc reads commands from $home/lib/profile, if it exists, before reading its normal input. Does this help you? Good evening, no. You have to source the file $home/lib/profile by hand or invoke rc from a link called -rc, as rc -l or whatever. -- Teodoro Santoni Something is wrong. I don't wanna compile 20 KB of Go code to list files.
Re: [9fans] Help with interrupting fgetc()
On 27 June 2015 at 21:30, Nils M Holm n...@t3x.org wrote: It should keep echoing after printing oopsie, but it just exits instead. What am I missing? if interrupted, fgetc returns EOF because the underlying read system call returns -1 (with error string interrupted). System calls are interrupted by a note (see notify(2)). Your loop will therefore stop and exit. Also, see /sys/doc/comp.ms for some other details of the Plan 9 C environment. For instance, main is void main(int, char**); and you need an explicit call to exits [sic] at the end of main, not a return 0 (or you'll get an error status main returned to the shell).
Re: [9fans] Help with interrupting fgetc()
two additional points. I the style for note matching is strstr matching because the exact string can't be counted on. for example details may be added. also the bio(2) library and peint(2) areusually used instead of stdio. - erik On Jun 27, 2015 1:30 PM, Nils M Holm n...@t3x.org wrote: I'm trying to get the DEL key to cause an error in an interpreter I'm writing. On Unix, I just catch SIGINT and set an error flag that causes the interpreter to return to the REPL. On Plan9, fgetc() seems to return EOF after catching an interrupted note. To make a long story short, I expected the following code to echo characters typed and print oopsie when DEL is pressed. It should keep echoing after printing oopsie, but it just exits instead. What am I missing? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #include u.h #include libc.h #include stdio.h void n(void *x, char *s) { if (!strcmp(s, interrupt)) { print(oopsie!\n); noted(NCONT); } else { noted(NDFLT); } } main() { int c; notify(n); c = fgetc(stdin); while (c != EOF) { fputc(c, stdout); c = fgetc(stdin); } return 0; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- Nils M Holm n m h @ t 3 x . o r g www.t3x.org
[9fans] Help with interrupting fgetc()
I'm trying to get the DEL key to cause an error in an interpreter I'm writing. On Unix, I just catch SIGINT and set an error flag that causes the interpreter to return to the REPL. On Plan9, fgetc() seems to return EOF after catching an interrupted note. To make a long story short, I expected the following code to echo characters typed and print oopsie when DEL is pressed. It should keep echoing after printing oopsie, but it just exits instead. What am I missing? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #include u.h #include libc.h #include stdio.h void n(void *x, char *s) { if (!strcmp(s, interrupt)) { print(oopsie!\n); noted(NCONT); } else { noted(NDFLT); } } main() { int c; notify(n); c = fgetc(stdin); while (c != EOF) { fputc(c, stdout); c = fgetc(stdin); } return 0; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- Nils M Holm n m h @ t 3 x . o r g www.t3x.org