thr_writev.c (54701) | thr_writev.c (55838) |
---|---|
1/* 2 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/lib/libkse/thread/thr_writev.c 54701 1999-12-16 22:35:40Z jasone $ | 32 * $FreeBSD: head/lib/libkse/thread/thr_writev.c 55838 2000-01-12 09:28:58Z jasone $ |
33 * 34 */ 35#include <sys/types.h> 36#include <sys/fcntl.h> 37#include <sys/uio.h> 38#include <errno.h> 39#include <stdlib.h> 40#include <string.h> 41#include <unistd.h> 42#ifdef _THREAD_SAFE 43#include <pthread.h> 44#include "pthread_private.h" 45 46ssize_t | 33 * 34 */ 35#include <sys/types.h> 36#include <sys/fcntl.h> 37#include <sys/uio.h> 38#include <errno.h> 39#include <stdlib.h> 40#include <string.h> 41#include <unistd.h> 42#ifdef _THREAD_SAFE 43#include <pthread.h> 44#include "pthread_private.h" 45 46ssize_t |
47writev(int fd, const struct iovec * iov, int iovcnt) | 47_libc_writev(int fd, const struct iovec * iov, int iovcnt) |
48{ 49 int blocking; 50 int idx = 0; 51 int type; 52 ssize_t cnt; 53 ssize_t n; 54 ssize_t num = 0; 55 ssize_t ret; --- 139 unchanged lines hidden (view full) --- 195 } 196 197 /* If memory was allocated for the array, free it: */ 198 if (p_iov != liov) 199 free(p_iov); 200 201 return (ret); 202} | 48{ 49 int blocking; 50 int idx = 0; 51 int type; 52 ssize_t cnt; 53 ssize_t n; 54 ssize_t num = 0; 55 ssize_t ret; --- 139 unchanged lines hidden (view full) --- 195 } 196 197 /* If memory was allocated for the array, free it: */ 198 if (p_iov != liov) 199 free(p_iov); 200 201 return (ret); 202} |
203 204__weak_reference(_libc_writev, writev); |
|
203#endif | 205#endif |