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