From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Thu, 29 Jul 2010 06:02:42 -0600 From: EBo To: 9Fans-list <9fans@9fans.net> Message-ID: <0522651bfa90c83ddb192a77ddaccb78@swcp.com> User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: [9fans] writing to ctl using fprint and write Topicbox-Message-UUID: 449d63fe-ead6-11e9-9d60-3106f5b1d025 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 --