libaio-oracle.h | libaio-oracle.h | |||
---|---|---|---|---|
skipping to change at line 13 | skipping to change at line 13 | |||
* libaio-oracle.h - User header for libaio-oracle | * libaio-oracle.h - User header for libaio-oracle | |||
* | * | |||
* AUTHOR | * AUTHOR | |||
* Joel Becker <joel.becker@oracle.com> | * Joel Becker <joel.becker@oracle.com> | |||
* | * | |||
* DESCRIPTION | * DESCRIPTION | |||
* This is the header for users of libaio-oracle. It defines | * This is the header for users of libaio-oracle. It defines | |||
* the interface to asynchronous I/O operations. | * the interface to asynchronous I/O operations. | |||
* | * | |||
* MODIFIED (YYYY/MM/DD) | * MODIFIED (YYYY/MM/DD) | |||
* 2003/06/19 - Joel Becker <joel.becker@oracle.com> | ||||
* Added aio_poll() bits. | ||||
* 2002/09/13 - Joel Becker <joel.becker@oracle.com> | * 2002/09/13 - Joel Becker <joel.becker@oracle.com> | |||
* Added aio_cancel() bits. | * Added aio_cancel() bits. | |||
* 2002/08/07 - Joel Becker <joel.becker@oracle.com> | * 2002/08/07 - Joel Becker <joel.becker@oracle.com> | |||
* Modified for public release. | * Modified for public release. | |||
* 2002/01/29 - Joel Becker <joel.becker@oracle.com> | * 2002/01/29 - Joel Becker <joel.becker@oracle.com> | |||
* Renamed to skgaio.h | * Renamed to skgaio.h | |||
* 2002/01/25 - Joel Becker <joel.becker@oracle.com> | * 2002/01/25 - Joel Becker <joel.becker@oracle.com> | |||
* Initial header description. | * Initial header description. | |||
* | * | |||
* Copyright (c) 2002 Oracle Corporation. All rights reserved. | * Copyright (c) 2002,2003 Oracle Corporation. All rights reserved. | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License, version 2 as published by the Free Software Foundation. | |||
* version 2 of the License, or (at your option) any later version. | ||||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Library General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have recieved a copy of the GNU Library General Public | * You should have recieved a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the | * License along with this library; if not, write to the | |||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |||
* Boston, MA 021110-1307, USA. | * Boston, MA 021110-1307, USA. | |||
*/ | */ | |||
#ifndef _SKGAIO_H | #ifndef _SKGAIO_H | |||
#define _SKGAIO_H | #define _SKGAIO_H | |||
#define IOCB_CMD_READ 0 | #define IOCB_CMD_READ 0 | |||
#define IOCB_CMD_WRITE 1 | #define IOCB_CMD_WRITE 1 | |||
skipping to change at line 94 | skipping to change at line 95 | |||
#define dbg_printf(fmt,arg...)\ | #define dbg_printf(fmt,arg...)\ | |||
printf(fmt, ##arg) | printf(fmt, ##arg) | |||
#else | #else | |||
#define dbg_printf(fmt,arg...)\ | #define dbg_printf(fmt,arg...)\ | |||
do { } while(0); | do { } while(0); | |||
#endif | #endif | |||
#define aiocb aiocb64 | #define aiocb aiocb64 | |||
#define aio_read aio_read64 | #define aio_read aio_read64 | |||
#define aio_write aio_write64 | #define aio_write aio_write64 | |||
#define aio_poll aio_poll64 | ||||
#define aio_error aio_error64 | #define aio_error aio_error64 | |||
#define aio_return aio_return64 | #define aio_return aio_return64 | |||
#define aio_cancel aio_cancel64 | #define aio_cancel aio_cancel64 | |||
#define aio_suspend aio_suspend64 | #define aio_suspend aio_suspend64 | |||
#define lio_listio lio_listio64 | #define lio_listio lio_listio64 | |||
#define aio_reap aio_reap64 | #define aio_reap aio_reap64 | |||
/* Initialize async i/o with the given maximum number of requests */ | /* Initialize async i/o with the given maximum number of requests */ | |||
int aio_init(int max_requests); | int aio_init(int max_requests); | |||
/* Enqueue read request for given number of bytes and the given priority. */ | /* Enqueue read request for given number of bytes and the given priority. */ | |||
int aio_read64(struct aiocb64 *aiocbp); | int aio_read64(struct aiocb64 *aiocbp); | |||
/* Enqueue write request for given number of bytes and the given priority. */ | /* Enqueue write request for given number of bytes and the given priority. */ | |||
int aio_write64(struct aiocb64 *aiocbp); | int aio_write64(struct aiocb64 *aiocbp); | |||
/* Enqueue a poll request for a given fd. */ | ||||
int aio_poll64(struct aiocb64 *aiocbp); | ||||
/* | /* | |||
* Returns the status of the aiocb. | * Returns the status of the aiocb. | |||
* If the operation is incomplete, the return value is undefined | * If the operation is incomplete, the return value is undefined | |||
* < -1 is -errno for the call. | * < -1 is -errno for the call. | |||
* >= -1 is the return code of the completed operation | * >= -1 is the return code of the completed operation | |||
*/ | */ | |||
ssize_t aio_return64(struct aiocb64 *aiocbp); | ssize_t aio_return64(struct aiocb64 *aiocbp); | |||
/* | /* | |||
* Returns the error status of the aiocb. | * Returns the error status of the aiocb. | |||
skipping to change at line 158 | skipping to change at line 163 | |||
int lio_listio64(int mode, struct aiocb64 * const list[], int nent, | int lio_listio64(int mode, struct aiocb64 * const list[], int nent, | |||
struct sigevent *__restrict __sig); | struct sigevent *__restrict __sig); | |||
/* Operation codes for `aio_lio_opcode'. */ | /* Operation codes for `aio_lio_opcode'. */ | |||
enum | enum | |||
{ | { | |||
LIO_READ, | LIO_READ, | |||
#define LIO_READ LIO_READ | #define LIO_READ LIO_READ | |||
LIO_WRITE, | LIO_WRITE, | |||
#define LIO_WRITE LIO_WRITE | #define LIO_WRITE LIO_WRITE | |||
LIO_NOP | LIO_NOP, | |||
#define LIO_NOP LIO_NOP | #define LIO_NOP LIO_NOP | |||
LIO_POLL, | ||||
#define LIO_POLL LIO_POLL | ||||
}; | }; | |||
/* Return values of cancelation function. */ | /* Return values of cancelation function. */ | |||
enum | enum | |||
{ | { | |||
AIO_CANCELED, | AIO_CANCELED, | |||
#define AIO_CANCELED AIO_CANCELED | #define AIO_CANCELED AIO_CANCELED | |||
AIO_NOTCANCELED, | AIO_NOTCANCELED, | |||
#define AIO_NOTCANCELED AIO_NOTCANCELED | #define AIO_NOTCANCELED AIO_NOTCANCELED | |||
AIO_ALLDONE | AIO_ALLDONE | |||
End of changes. 9 change blocks. | ||||
6 lines changed or deleted | 13 lines changed or added | |||