xref: /titanic_50/usr/src/lib/libc/common/sys/pwritev.s (revision eab227978ccdaa5a7cc9fd92ace768915dae3a2b)
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	"pwritev.s"
17
18/* C library -- pwritev							*/
19/* ssize_t __pwritev(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(__pwritev,pwritev)
26	RET
27	SET_SIZE(__pwritev)
28
29#else
30
31/* C library -- pwrite64 transitional large file API,			*/
32/* ssize_t __pwritev64(int, const struct iovec *, int, off_t, off_t);	*/
33
34	SYSCALL2_RESTART_RVAL1(__pwritev64,pwritev)
35	RET
36	SET_SIZE(__pwritev64)
37
38#endif
39