From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Thu, 29 Jul 2010 07:21:55 -0600 From: EBo To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: References: <0522651bfa90c83ddb192a77ddaccb78@swcp.com> Message-ID: <460c4983c43135098e3c1f2b36623833@swcp.com> User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] writing to ctl using fprint and write Topicbox-Message-UUID: 44b2a106-ead6-11e9-9d60-3106f5b1d025 >> 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 for a break and a bowl of tea... As a side note, I now have over 40 regression tests written, and as soon as I soon as I clean up one of the servers to my liking I should have a bunch more. Thanks everyone. EBo --