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