xref: /illumos-gate/usr/src/lib/libc/common/sys/preadv.S (revision 5d9d9091f564c198a760790b0bfa72c44e17912b)
1/*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source.  A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
10 */
11
12/*
13 * Copyright (c) 2015, Joyent, Inc.  All rights reserved.
14 */
15
16	.file	"preadv.s"
17
18/* C library -- preadv							*/
19/* ssize_t __preadv(int, const struct iovec *, int, off_t, off_t);	*/
20
21#include "SYS.h"
22
23#if !defined(_LARGEFILE_SOURCE)
24
25	SYSCALL2_RESTART_RVAL1(__preadv,preadv)
26	RET
27	SET_SIZE(__preadv)
28
29#else
30
31/* C library -- preadv64 transitional large file API			*/
32/* ssize_t __preadv64(int, void *, size_t, off_t, off_t);		*/
33
34	SYSCALL2_RESTART_RVAL1(__preadv64,preadv)
35	RET
36	SET_SIZE(__preadv64)
37
38#endif
39