help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: io_read() semantics


From: Wolfgang Jährling
Subject: Re: io_read() semantics
Date: Mon, 10 Jun 2002 15:35:54 +0200
User-agent: Mutt/1.0.1i

Hi Ludovic!

Ludovic Courtès <ludovic.courtes@utbm.fr> wrote:
> Therefore, I would not expect io_read() to provide a new buffer with the
> following code, since the buffer size if the same as the requested amount of
> data (*len == size):
> 
>     void* d = data;
> 
>     size = (size > *len)?(*len):size;
>     *len = size;
>     err  = io_read (mbox, (data_t*)&data, len, start + offset, size);
>     assert (data == d);       // this assertion should not fail!
> 
> However, the last assertion does sometimes fail.

See <http://mail.gnu.org/pipermail/help-hurd/2002-April/005673.html>.

Cheers,
GNU/Wolfgang

-- 
Wolfgang Jährling  <wolfgang@pro-linux.de>  \\  http://stdio.cjb.net/
Debian GNU/Hurd user && Debian GNU/Linux user \\  http://www.gnu.org/
The Hurd Hacking Guide: http://www.gnu.org/software/hurd/hacking-guide/
["We're way ahead of you here. The Hurd has always been on the    ]
[ cutting edge of not being good for anything." -- Roland McGrath ]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]