diff options
author | jhb <jhb@FreeBSD.org> | 2008-12-10 19:45:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-12-10 19:45:58 +0000 |
commit | b771657b300c491b2b1a2b18ddbcdbb4984b90c9 (patch) | |
tree | e11843c4aae8352cc007f752009ba807c822e270 /sys | |
parent | ca4d4f349489a6d5a1a76fe9b0dc076495afa554 (diff) | |
download | FreeBSD-src-b771657b300c491b2b1a2b18ddbcdbb4984b90c9.zip FreeBSD-src-b771657b300c491b2b1a2b18ddbcdbb4984b90c9.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/aio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/aio.h b/sys/sys/aio.h index 581bdf2..a474b8d 100644 --- a/sys/sys/aio.h +++ b/sys/sys/aio.h @@ -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; |