1f7ed9937SMatthew Dillon /*
2f7ed9937SMatthew Dillon * Copyright (c) 1992, 1993
3f7ed9937SMatthew Dillon * The Regents of the University of California. All rights reserved.
4f7ed9937SMatthew Dillon *
5f7ed9937SMatthew Dillon * Redistribution and use in source and binary forms, with or without
6f7ed9937SMatthew Dillon * modification, are permitted provided that the following conditions
7f7ed9937SMatthew Dillon * are met:
8f7ed9937SMatthew Dillon * 1. Redistributions of source code must retain the above copyright
9f7ed9937SMatthew Dillon * notice, this list of conditions and the following disclaimer.
10f7ed9937SMatthew Dillon * 2. Redistributions in binary form must reproduce the above copyright
11f7ed9937SMatthew Dillon * notice, this list of conditions and the following disclaimer in the
12f7ed9937SMatthew Dillon * documentation and/or other materials provided with the distribution.
13*0f0f9bbdSzrj * 3. Neither the name of the University nor the names of its contributors
14f7ed9937SMatthew Dillon * may be used to endorse or promote products derived from this software
15f7ed9937SMatthew Dillon * without specific prior written permission.
16f7ed9937SMatthew Dillon *
17f7ed9937SMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18f7ed9937SMatthew Dillon * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19f7ed9937SMatthew Dillon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20f7ed9937SMatthew Dillon * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21f7ed9937SMatthew Dillon * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22f7ed9937SMatthew Dillon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23f7ed9937SMatthew Dillon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24f7ed9937SMatthew Dillon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25f7ed9937SMatthew Dillon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26f7ed9937SMatthew Dillon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27f7ed9937SMatthew Dillon * SUCH DAMAGE.
28f7ed9937SMatthew Dillon *
29f7ed9937SMatthew Dillon * @(#)mmap.c 8.1 (Berkeley) 6/17/93
30b09fd398SMatthew Dillon * $DragonFly: src/lib/libc/sys/pwritev.c,v 1.2 2007/01/08 21:41:51 dillon Exp $
31f7ed9937SMatthew Dillon */
32f7ed9937SMatthew Dillon
33f7ed9937SMatthew Dillon #include <sys/types.h>
34f7ed9937SMatthew Dillon #include <sys/syscall.h>
35f7ed9937SMatthew Dillon #include <sys/uio.h>
36f7ed9937SMatthew Dillon #include <unistd.h>
37f7ed9937SMatthew Dillon
38f7ed9937SMatthew Dillon /*
39b09fd398SMatthew Dillon * The kernel extpwritev includes a flags argument that allows the blocking
40f7ed9937SMatthew Dillon * and append mode(s) to be overridden.
41f7ed9937SMatthew Dillon */
42f7ed9937SMatthew Dillon ssize_t
pwritev(int fd,const struct iovec * iovp,int iovcnt,off_t offset)43f7ed9937SMatthew Dillon pwritev(int fd, const struct iovec *iovp, int iovcnt, off_t offset)
44f7ed9937SMatthew Dillon {
45b09fd398SMatthew Dillon return (extpwritev(fd, iovp, iovcnt, 0, offset));
46f7ed9937SMatthew Dillon }
47