Re: [9fans] endianess and 3rd party libraries

2015-01-29 Thread Quintile
perfect, Thanks Erik, you'r a star. -Steve > On 29 Jan 2015, at 16:17, erik quanstrom wrote: > >> On Thu Jan 29 07:47:49 PST 2015, st...@quintile.net wrote: >> I have some very un-plan9 3rd party libraries which rely on a >> #define to do byte swapping for endianess. >> >> Anyone have a n

Re: [9fans] endianess and 3rd party libraries

2015-01-29 Thread erik quanstrom
On Thu Jan 29 07:47:49 PST 2015, st...@quintile.net wrote: > I have some very un-plan9 3rd party libraries which rely on a > #define to do byte swapping for endianess. > > Anyone have a neet recipie for mk to d3etect the > current machines endianess? ; for(i in /*/include/u.h)echo -n $i ' ' && <

[9fans] endianess and 3rd party libraries

2015-01-29 Thread Steve Simon
I have some very un-plan9 3rd party libraries which rely on a #define to do byte swapping for endianess. Anyone have a neet recipie for mk to d3etect the current machines endianess? I know, I feel dirty just asking but what can I do, there is too much code to rewrite them properly. off to get my

Re: [9fans] A few questions about 9p

2015-01-29 Thread Giacomo Tesio
Actually I wasn't able to understand when the afid was supposed to be clunk reading attach 5. I was in doubt that the afid had to be the last fid clunked. Giacomo Il 29/Gen/2015 15:56 ha scritto: > size[4] Tattach tag[2] fid[4] afid[4] uname[s] aname[s] > size[4] Rattach tag

Re: [9fans] A few questions about 9p

2015-01-29 Thread erik quanstrom
> >> I can't find details on the file execution permission: looks like a > malicious client could just ignore it on files and execute anything that it > can read (obviously I'm just talking about single files, not directory). > > > > It's not malicious, just incorrect. Obviously you can't exec

Re: [9fans] A few questions about 9p

2015-01-29 Thread cinap_lenrek
size[4] Tattach tag[2] fid[4] afid[4] uname[s] aname[s] size[4] Rattach tag[2] qid[13] you have to provide the afid in the Tattach, so clunking it before attach makes no sense. you can pass NOFID to Tattach when when the fileserver doesnt support authentification. you can also

Re: [9fans] A few questions about 9p

2015-01-29 Thread Giacomo Tesio
Il 29/Gen/2015 11:12 "Charles Forsyth" ha scritto: > > > On 29 January 2015 at 09:04, Giacomo Tesio wrote: >> >> What's the meaning of qids? I see that responses often include them but request messages do not. > > see intro(5) or intro(9P) depending on system. They identify a file on a server

Re: [9fans] 9atom boot problem

2015-01-29 Thread Pavel Klinkovský
> > If I choose to install plan9, I get a result shown in the attached > a.png (and it does not proceed any further). > > If I choose to just boot (not install), it gets stuck after > init: starting /bin/rc > and shows the same 'spurious interrupt 39'. > Try to play with AHCI settings in BIOS. IIR

Re: [9fans] A few questions about 9p

2015-01-29 Thread erik quanstrom
> > What's the proper message sequence to delete a file? And to delete a non > > empty directly? > > > You point a fid at the file, then remove it:Twalk* ... Tremove > A non-empty directory can't be removed. > Tremove implies Tclunk the current on-disk file servers do follow this r

Re: [9fans] 9atom boot problem

2015-01-29 Thread erik quanstrom
> I tried 9atom from 2014-06-27, but it doesn't (now I add 'always'; sometimes > it does get through) boot. > > If I choose to install plan9, I get a result shown in the attached > a.png (and it does not proceed any further). > > If I choose to just boot (not install), it gets stuck after > init:

Re: [9fans] A few questions about 9p

2015-01-29 Thread Charles Forsyth
On 29 January 2015 at 09:04, Giacomo Tesio wrote: > What's the meaning of qids? I see that responses often include them but > request messages do not. > see intro(5) or intro(9P) depending on system. They identify a file on a server; they are a value provided by the server to the client,

[9fans] A few questions about 9p

2015-01-29 Thread Giacomo Tesio
Hi, I'm coding a small .NET library to connect 9p2000 services and I have a few questions about things that the manual doesn't explain (or I was not able to find). What's the meaning of qids? I see that responses often include them but request messages do not. What's the proper message sequence t

Re: [9fans] protection against resource exhaustion

2015-01-29 Thread arisawa
Hi, erik, Thanks a lot! > 2015/01/29 15:42、erik quanstrom のメール: > > i hope i haven't overplayed my argument. i am for real solutions to this > issue. > i'm not for the current solution, or more complicanted variants.