Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2008 17:18:18 +0800
From:      David Xu <davidxu@freebsd.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/sys aio.h signal.h signalvar.h src/sys/kern syscalls.master vfs_aio.c
Message-ID:  <4927CE5A.7070600@freebsd.org>
In-Reply-To: <200811211700.11204.jhb@freebsd.org>
References:  <200510300212.j9U2CnWl089007@repoman.freebsd.org> <200811211700.11204.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
> On Saturday 29 October 2005 10:12:49 pm David Xu wrote:
>   
>> davidxu     2005-10-30 02:12:49 UTC
>>
>>   FreeBSD src repository
>>
>>   Modified files:
>>     sys/sys              signal.h signalvar.h aio.h 
>>     sys/kern             syscalls.master vfs_aio.c 
>>   Log:
>>   Fix sigevent's POSIX incompatible problem by adding member fields
>>   sigev_notify_function and sigev_notify_attributes. AIO syscalls
>>   use sigevent, so they have to be adjusted.
>>   
>>   Reviewed by:    alc
>>     
>
> I'm looking at doing 32-bit compat for AIO, and the __spare__ thing in 'struct 
> aiocb' strikes me as rather odd.  For one, why not use 'struct osigevent 
> __spare__;' instead of the explicit sizeof()'s?  The sizeof's make 
> assumptions about padding for example. 
If you have patch, please commit it.

>  Secondly, since you bumped the 
> syscalls for the new structure, you didn't need the __spare__ hack at all.
>
>   
I had put spare fields, I didn't know if people will need spare fields 
in future
without breaking binary compatibility, so I just reused the old fields.


Regards,
David Xu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4927CE5A.7070600>