What should aio_fsync (O_SYNC, NULL) do?

Mark Brown bmark@us.ibm.com
Wed Jul 26 08:35:00 GMT 2000


At 3:45 PM +0200 7/26/00, Andreas Jaeger wrote:
>Uli,
>
>I'm enhancing rt/tst-aio.c to test also aio_fsync.  My Posix Standard
>mentions (1003.1, 1996 Edition) on page 181 for aio_fsync:
>"If aiocb is NULL, then no status is returned..."
>
>Currently aio_fsync (O_SYNC, NULL) gives a segmentation fault.  The
>current Austin Draft does not mention NULL anymore.  Shall I add the
>test for NULL or not?

Andreas,

Under the rules that will govern the AG book, you may continue to handle
NULL as specified in the 1003.1-1996 book -- which I personally
prefer to a core dump :) All that the omission (if intentional)
means is that implementations can handle NULL as they see fit.

I will try to find out if this is intentional.

Mark Brown

-- 
-------------------------
Mark S. Brown                                                   bmark@us.ibm.com
IBM RS/6000 AIX System Architecture                    512.838.3926  T/L678.3926
IBM Corporation, Austin, Texas


More information about the Libc-hacker mailing list