kern_umtx.c (205014) | kern_umtx.c (209390) |
---|---|
1/*- 2 * Copyright (c) 2004, David Xu <davidxu@freebsd.org> 3 * Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004, David Xu <davidxu@freebsd.org> 3 * Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/kern/kern_umtx.c 205014 2010-03-11 14:49:06Z nwhitehorn $"); | 29__FBSDID("$FreeBSD: head/sys/kern/kern_umtx.c 209390 2010-06-21 09:55:56Z ed $"); |
30 31#include "opt_compat.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/limits.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/mutex.h> --- 3242 unchanged lines hidden (view full) --- 3280int 3281freebsd32_umtx_unlock(struct thread *td, struct freebsd32_umtx_unlock_args *uap) 3282 /* struct umtx *umtx */ 3283{ 3284 return (do_unlock_umtx32(td, (uint32_t *)uap->umtx, td->td_tid)); 3285} 3286 3287struct timespec32 { | 30 31#include "opt_compat.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/limits.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/mutex.h> --- 3242 unchanged lines hidden (view full) --- 3280int 3281freebsd32_umtx_unlock(struct thread *td, struct freebsd32_umtx_unlock_args *uap) 3282 /* struct umtx *umtx */ 3283{ 3284 return (do_unlock_umtx32(td, (uint32_t *)uap->umtx, td->td_tid)); 3285} 3286 3287struct timespec32 { |
3288 u_int32_t tv_sec; 3289 u_int32_t tv_nsec; | 3288 uint32_t tv_sec; 3289 uint32_t tv_nsec; |
3290}; 3291 3292static inline int 3293copyin_timeout32(void *addr, struct timespec *tsp) 3294{ 3295 struct timespec32 ts32; 3296 int error; 3297 --- 312 unchanged lines hidden --- | 3290}; 3291 3292static inline int 3293copyin_timeout32(void *addr, struct timespec *tsp) 3294{ 3295 struct timespec32 ts32; 3296 int error; 3297 --- 312 unchanged lines hidden --- |