Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2008 19:45:58 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185874 - head/sys/sys
Message-ID:  <200812101945.mBAJjwn2040853@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Dec 10 19:45:58 2008
New Revision: 185874
URL: http://svn.freebsd.org/changeset/base/185874

Log:
  Rather than using a char array with explicit assumptions about the layout
  of 'struct osigevent' in 'struct aiocb', use int and void pointer spare
  members that are identical to 'struct osigevent'.
  
  MFC after:	1 month

Modified:
  head/sys/sys/aio.h

Modified: head/sys/sys/aio.h
==============================================================================
--- head/sys/sys/aio.h	Wed Dec 10 19:33:10 2008	(r185873)
+++ head/sys/sys/aio.h	Wed Dec 10 19:45:58 2008	(r185874)
@@ -69,7 +69,8 @@ typedef struct aiocb {
 	off_t	aio_offset;		/* File offset for I/O */
 	volatile void *aio_buf;         /* I/O buffer in process space */
 	size_t	aio_nbytes;		/* Number of bytes for I/O */
-	char 	__spare__[sizeof(int) * 2 + sizeof(void *)]; /* osigevent. */
+	int	__spare__[2];
+	void	*__spare2__;
 	int	aio_lio_opcode;		/* LIO opcode */
 	int	aio_reqprio;		/* Request priority -- ignored */
 	struct	__aiocb_private	_aiocb_private;



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