From owner-cvs-all@FreeBSD.ORG Sat Nov 22 09:18:25 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from alona.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 0D2331065673; Sat, 22 Nov 2008 09:18:22 +0000 (UTC) (envelope-from davidxu@freebsd.org) Message-ID: <4927CE5A.7070600@freebsd.org> Date: Sat, 22 Nov 2008 17:18:18 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.16 (X11/20080915) MIME-Version: 1.0 To: John Baldwin References: <200510300212.j9U2CnWl089007@repoman.freebsd.org> <200811211700.11204.jhb@freebsd.org> In-Reply-To: <200811211700.11204.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2008 09:18:25 -0000 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