xref: /titanic_41/usr/src/lib/libaio/common/llib-laio (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/* LINTLIBRARY */
23/* PROTOLIB1 */
24
25/*
26 * Copyright 2004 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);
56pid_t _libaio_fork(void);
57
58/* ma.c */
59
60/* posix_aio.c */
61int __aio_read(aiocb_t *cb);
62int __aio_write(aiocb_t *cb);
63int __lio_listio(int mode, aiocb_t * const list[],
64			int nent, struct sigevent *sig);
65int __aio_suspend(void **list, int nent, const timespec_t *timo, int lf);
66int __aio_error(aiocb_t *cb);
67ssize_t __aio_return(aiocb_t *cb);
68int __aio_fsync(int op, aiocb_t *aiocbp);
69int __aio_cancel(int fd, aiocb_t *aiocbp);
70int __aio_waitn(void **list, uint_t nent, uint_t *nwait,
71			const struct timespec *timeout, int mode);
72int __aio_read64(aiocb64_t *cb);
73int __aio_write64(aiocb64_t *cb);
74int __lio_listio64(int mode, aiocb64_t *const list[],
75			int nent, struct sigevent *sig);
76int __aio_error64(aiocb64_t *cb);
77ssize_t __aio_return64(aiocb64_t *cb);
78int __aio_fsync64(int op, aiocb64_t *aiocbp);
79int __aio_cancel64(int fd, aiocb64_t *aiocbp);
80
81/* sig.c */
82
83/* subr.c */
84int assfail(char *a, char *f, int l);
85