Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread Skip Tavakkolian
how is ts declared? > I'm working on some regression testing for my GSoC project and am trying > to understand why > > ctl = open(path("ctl"),ORDWR|OAPPEND); > ts = "chatty9p 1"; // or some other message > > n = fprint(ctl, ts); > > succeeds, while > > n = write(ctl,ts,sizeof(ts)); >

[9fans] writing to ctl using fprint and write

2010-07-29 Thread EBo
I'm working on some regression testing for my GSoC project and am trying to understand why ctl = open(path("ctl"),ORDWR|OAPPEND); ts = "chatty9p 1"; // or some other message n = fprint(ctl, ts); succeeds, while n = write(ctl,ts,sizeof(ts)); fails. Can someone explain? EBo --

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread erik quanstrom
> n = fprint(ctl, ts); > > succeeds, while > > n = write(ctl,ts,sizeof(ts)); > > fails. sizeof(ts) == 4 or 8, depending on the arch. you wish strlen(ts). - erik

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread Sape Mullender
> I'm working on some regression testing for my GSoC project and am trying > to understand why > > ctl = open(path("ctl"),ORDWR|OAPPEND); > ts = "chatty9p 1"; // or some other message > > n = fprint(ctl, ts); > > succeeds, while > > n = write(ctl,ts,sizeof(ts)); > > fails. > > Can someon

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread EBo
>> n = fprint(ctl, ts); >> >> succeeds, while >> >> n = write(ctl,ts,sizeof(ts)); >> >> fails. > > sizeof(ts) == 4 or 8, depending on the arch. > you wish strlen(ts). Thanks Erik, Sape, and Skip. That was such a STUPID error, and I thank you all for the extra eyes. I think it is time fo

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread erik quanstrom
> Thanks Erik, Sape, and Skip. That was such a STUPID error, and I thank > you all for the extra eyes. I think it is time for a break and a bowl of > tea... relax. not stupid, subtle. it takes vigilance to keep sizeof, nelem, strlen, and the number of characters straight. - erik

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread David Leimbach
On Thu, Jul 29, 2010 at 8:04 AM, erik quanstrom wrote: > > Thanks Erik, Sape, and Skip. That was such a STUPID error, and I thank > > you all for the extra eyes. I think it is time for a break and a bowl of > > tea... > > relax. not stupid, subtle. it takes vigilance to keep > sizeof, nelem, s

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread Brian L. Stuart
> > Thanks Erik, Sape, and > Skip.  That was such a STUPID error, and I thank > > you all for the extra eyes.  I think it is time > for a break and a bowl of > > tea... > > relax.  not stupid, subtle.  it takes vigilance > to keep > sizeof, nelem, strlen, and the number of characters > straight.

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread EBo
> relax. not stupid, subtle. it takes vigilance to keep > sizeof, nelem, strlen, and the number of characters > straight. I was not offended or anything. I spent WAY to much time missing on that one before asking for another set of eyes. I just felt a bit foolish for missing something that si

Re: [9fans] writing to ctl using fprint and write

2010-07-29 Thread Federico G. Benavento
sorry, but I didn't get the point On Thu, Jul 29, 2010 at 12:11 PM, David Leimbach wrote: > > > On Thu, Jul 29, 2010 at 8:04 AM, erik quanstrom > wrote: >> >> > Thanks Erik, Sape, and Skip.  That was such a STUPID error, and I thank >> > you all for the extra eyes.  I think it is time for a brea

[9fans] Casella

2010-07-29 Thread Bruce Ellis
Thanks for the response to my ad. Why not? I have most of the aussies on payroll but need ... A good limbo dude. A good forth dude. Visas are easy if you want to live in Bondi. 1 year I can do blind folded. 3 years is harder. brucee