Re: [wmii] libixp adding 24 trailing NUL bytes to Rread?

From: Suraj N. Kurapati <snk_AT_gna.org>
Date: Wed, 30 Jan 2008 11:47:35 -0800 (PST)

Kris Maglione wrote:
> When I try to read the content of a directory,
> the Rread fcall I get from wmii has 24 extra NUL
> bytes at the end.
>
> Is the size field specifying the extra bytes?

Yes, the extra NUL bytes are accounted for in the size
field of the Rread fcall.

> Are they coming through?

Yes, they are certainly coming through on the socket.
(I'm using a blocking read).

> Does the size count of the data field specify
> that it holds them?

Yes.

> If you happen to have Inferno, the output of styxmon

> would help. If not, I'm sure you can write
> an Fcall pretty-printer pretty quickly.

I reverted back to the old 2007 snap, but I can
produce a pretty-print dump for you when I go home tonight.
Received on Wed Jan 30 2008 - 20:50:03 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:35:29 UTC