thr_syscalls.c (174805) | thr_syscalls.c (179434) |
---|---|
1/* 2 * Copyright (C) 2005 David Xu <davidxu@freebsd.org>. 3 * Copyright (c) 2003 Daniel Eischen <deischen@freebsd.org>. 4 * Copyright (C) 2000 Jason Evans <jasone@freebsd.org>. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 26 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 28 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 29 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * | 1/* 2 * Copyright (C) 2005 David Xu <davidxu@freebsd.org>. 3 * Copyright (c) 2003 Daniel Eischen <deischen@freebsd.org>. 4 * Copyright (C) 2000 Jason Evans <jasone@freebsd.org>. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 26 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 28 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 29 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * |
31 * $FreeBSD: head/lib/libthr/thread/thr_syscalls.c 174805 2007-12-20 04:32:28Z davidxu $ | 31 * $FreeBSD: head/lib/libthr/thread/thr_syscalls.c 179434 2008-05-30 14:47:42Z dfr $ |
32 */ 33 34/* 35 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 36 * All rights reserved. 37 * 38 * Redistribution and use in source and binary forms, with or without 39 * modification, are permitted provided that the following conditions --- 87 unchanged lines hidden (view full) --- 127pid_t ___wait(int *); 128pid_t ___waitpid(pid_t, int *, int); 129int __accept(int, struct sockaddr *, socklen_t *); 130int __aio_suspend(const struct aiocb * const iocbs[], int, 131 const struct timespec *); 132int __close(int); 133int __connect(int, const struct sockaddr *, socklen_t); 134int __fcntl(int, int,...); | 32 */ 33 34/* 35 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 36 * All rights reserved. 37 * 38 * Redistribution and use in source and binary forms, with or without 39 * modification, are permitted provided that the following conditions --- 87 unchanged lines hidden (view full) --- 127pid_t ___wait(int *); 128pid_t ___waitpid(pid_t, int *, int); 129int __accept(int, struct sockaddr *, socklen_t *); 130int __aio_suspend(const struct aiocb * const iocbs[], int, 131 const struct timespec *); 132int __close(int); 133int __connect(int, const struct sockaddr *, socklen_t); 134int __fcntl(int, int,...); |
135extern int __fcntl_compat(int, int,...); |
|
135int __fsync(int); 136int __msync(void *, size_t, int); 137int __nanosleep(const struct timespec *, struct timespec *); 138int __open(const char *, int,...); 139int __poll(struct pollfd *, unsigned int, int); 140ssize_t __read(int, void *buf, size_t); 141ssize_t __readv(int, const struct iovec *, int); 142ssize_t __recvfrom(int, void *, size_t, int f, struct sockaddr *, socklen_t *); --- 104 unchanged lines hidden (view full) --- 247 case F_SETFL: 248 ret = __sys_fcntl(fd, cmd, va_arg(ap, int)); 249 break; 250 case F_GETFD: 251 case F_GETFL: 252 ret = __sys_fcntl(fd, cmd); 253 break; 254 default: | 136int __fsync(int); 137int __msync(void *, size_t, int); 138int __nanosleep(const struct timespec *, struct timespec *); 139int __open(const char *, int,...); 140int __poll(struct pollfd *, unsigned int, int); 141ssize_t __read(int, void *buf, size_t); 142ssize_t __readv(int, const struct iovec *, int); 143ssize_t __recvfrom(int, void *, size_t, int f, struct sockaddr *, socklen_t *); --- 104 unchanged lines hidden (view full) --- 248 case F_SETFL: 249 ret = __sys_fcntl(fd, cmd, va_arg(ap, int)); 250 break; 251 case F_GETFD: 252 case F_GETFL: 253 ret = __sys_fcntl(fd, cmd); 254 break; 255 default: |
255 ret = __sys_fcntl(fd, cmd, va_arg(ap, void *)); | 256 ret = __fcntl_compat(fd, cmd, va_arg(ap, void *)); |
256 } 257 va_end(ap); 258 259 _thr_cancel_leave(curthread); 260 261 return (ret); 262} 263 --- 356 unchanged lines hidden --- | 257 } 258 va_end(ap); 259 260 _thr_cancel_leave(curthread); 261 262 return (ret); 263} 264 --- 356 unchanged lines hidden --- |