diff options
Diffstat (limited to 'lib/libc/sys/pwritev.c')
-rw-r--r-- | lib/libc/sys/pwritev.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/sys/pwritev.c b/lib/libc/sys/pwritev.c index 31192152376..345d3831965 100644 --- a/lib/libc/sys/pwritev.c +++ b/lib/libc/sys/pwritev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwritev.c,v 1.8 2005/08/08 08:05:37 espie Exp $ */ +/* $OpenBSD: pwritev.c,v 1.9 2011/10/16 06:29:56 guenther Exp $ */ /* * Copyright (c) 1992, 1993 @@ -33,15 +33,22 @@ #include <sys/syscall.h> #include <sys/uio.h> #include <unistd.h> +#include "thread_private.h" register_t __syscall(quad_t, ...); +/* pwritev is weak to support libpthread cancellation */ + +STUB_PROTOTYPE(pwritev); + +STUB_ALIAS(pwritev); + /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. */ ssize_t -pwritev(int fd, const struct iovec *iovp, int iovcnt, off_t offset) +STUB_NAME(pwritev)(int fd, const struct iovec *iovp, int iovcnt, off_t offset) { return (__syscall((quad_t)SYS_pwritev, fd, iovp, iovcnt, 0, offset)); |