1*7c478bd9Sstevel@tonic-gate/* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate/* LINTLIBRARY */ 23*7c478bd9Sstevel@tonic-gate/* PROTOLIB1 */ 24*7c478bd9Sstevel@tonic-gate 25*7c478bd9Sstevel@tonic-gate/* 26*7c478bd9Sstevel@tonic-gate * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 27*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 28*7c478bd9Sstevel@tonic-gate */ 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate#pragma ident "%Z%%M% %I% %E% SMI" 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate#include <sys/types.h> 33*7c478bd9Sstevel@tonic-gate#include <sys/stat.h> 34*7c478bd9Sstevel@tonic-gate#include <sys/time.h> 35*7c478bd9Sstevel@tonic-gate#include <signal.h> 36*7c478bd9Sstevel@tonic-gate#include <libaio.h> 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gate/* 39*7c478bd9Sstevel@tonic-gate * usr/src/lib/libaio/common 40*7c478bd9Sstevel@tonic-gate */ 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate/* aio.c */ 43*7c478bd9Sstevel@tonic-gateint aioread(int fd, caddr_t buf, int bufsz, off_t offset, int whence, 44*7c478bd9Sstevel@tonic-gate aio_result_t *resultp); 45*7c478bd9Sstevel@tonic-gateint aiowrite(int fd, caddr_t buf, int bufsz, off_t offset, int whence, 46*7c478bd9Sstevel@tonic-gate aio_result_t *resultp); 47*7c478bd9Sstevel@tonic-gateint aioread64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, 48*7c478bd9Sstevel@tonic-gate aio_result_t *resultp); 49*7c478bd9Sstevel@tonic-gateint aiowrite64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, 50*7c478bd9Sstevel@tonic-gate aio_result_t *resultp); 51*7c478bd9Sstevel@tonic-gateint aiocancel(aio_result_t *resultp); 52*7c478bd9Sstevel@tonic-gateaio_result_t *aiowait(struct timeval *uwait); 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gate/* scalls.c */ 55*7c478bd9Sstevel@tonic-gateint _libaio_close(int fd); 56*7c478bd9Sstevel@tonic-gatepid_t _libaio_fork(void); 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate/* ma.c */ 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gate/* posix_aio.c */ 61*7c478bd9Sstevel@tonic-gateint __aio_read(aiocb_t *cb); 62*7c478bd9Sstevel@tonic-gateint __aio_write(aiocb_t *cb); 63*7c478bd9Sstevel@tonic-gateint __lio_listio(int mode, aiocb_t * const list[], 64*7c478bd9Sstevel@tonic-gate int nent, struct sigevent *sig); 65*7c478bd9Sstevel@tonic-gateint __aio_suspend(void **list, int nent, const timespec_t *timo, int lf); 66*7c478bd9Sstevel@tonic-gateint __aio_error(aiocb_t *cb); 67*7c478bd9Sstevel@tonic-gatessize_t __aio_return(aiocb_t *cb); 68*7c478bd9Sstevel@tonic-gateint __aio_fsync(int op, aiocb_t *aiocbp); 69*7c478bd9Sstevel@tonic-gateint __aio_cancel(int fd, aiocb_t *aiocbp); 70*7c478bd9Sstevel@tonic-gateint __aio_waitn(void **list, uint_t nent, uint_t *nwait, 71*7c478bd9Sstevel@tonic-gate const struct timespec *timeout, int mode); 72*7c478bd9Sstevel@tonic-gateint __aio_read64(aiocb64_t *cb); 73*7c478bd9Sstevel@tonic-gateint __aio_write64(aiocb64_t *cb); 74*7c478bd9Sstevel@tonic-gateint __lio_listio64(int mode, aiocb64_t *const list[], 75*7c478bd9Sstevel@tonic-gate int nent, struct sigevent *sig); 76*7c478bd9Sstevel@tonic-gateint __aio_error64(aiocb64_t *cb); 77*7c478bd9Sstevel@tonic-gatessize_t __aio_return64(aiocb64_t *cb); 78*7c478bd9Sstevel@tonic-gateint __aio_fsync64(int op, aiocb64_t *aiocbp); 79*7c478bd9Sstevel@tonic-gateint __aio_cancel64(int fd, aiocb64_t *aiocbp); 80*7c478bd9Sstevel@tonic-gate 81*7c478bd9Sstevel@tonic-gate/* sig.c */ 82*7c478bd9Sstevel@tonic-gate 83*7c478bd9Sstevel@tonic-gate/* subr.c */ 84*7c478bd9Sstevel@tonic-gateint assfail(char *a, char *f, int l); 85