Hi!
> aio_read/8-1.c "fills in an aiocb with a NULL aio_buf" and then expect 
> that the operation is not succesfully queued.
> It fails that aio_read() always return 0. And I checked the posix spec 
> and didn't find that an aiocb with NULL aio_buf will cause enqueue fails.
> So is this case valid?

The testcase passes here. However looking at the sources it tries to
read zero bytes to NULL buffer, which is wrong as the behavior in such
case is undefied by POSIX. I guess this is just another case where the
testcase was coded with "It works so it must be right" attitude.

And out of curiosity, which libc library makes the testcase fail?

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to