]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/aio.h
xnu-792.10.96.tar.gz
[apple/xnu.git] / bsd / sys / aio.h
index f2d41b32c11d01295cfcb74390a4d6e19875a922..a8a149866d0521462ca89d73b65eefc2bbeab64f 100644 (file)
@@ -47,24 +47,16 @@ struct aiocb {
 // LP64todo - should this move?
 #ifdef KERNEL
 
-#if __DARWIN_ALIGN_NATURAL
-#pragma options align=natural
-#endif
-
 struct user_aiocb {
        int                                     aio_fildes;             /* File descriptor */
        off_t                           aio_offset;             /* File offset */
-       user_addr_t                     aio_buf;                /* Location of buffer */
+       user_addr_t                     aio_buf __attribute((aligned(8)));              /* Location of buffer */
        user_size_t                     aio_nbytes;             /* Length of transfer */
        int                                     aio_reqprio;    /* Request priority offset */
-       struct user_sigevent aio_sigevent;      /* Signal number and value */
+       struct user_sigevent aio_sigevent __attribute((aligned(8)));    /* Signal number and value */
        int                                     aio_lio_opcode; /* Operation to be performed */
 };
 
-#if __DARWIN_ALIGN_NATURAL
-#pragma options align=reset
-#endif
-
 #endif // KERNEL
 
 /*