freebsd32_misc.c (337046) | freebsd32_misc.c (337427) |
---|---|
1/*- 2 * Copyright (c) 2002 Doug Rabson 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Doug Rabson 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: stable/11/sys/compat/freebsd32/freebsd32_misc.c 337046 2018-08-01 17:40:17Z jhb $"); | 28__FBSDID("$FreeBSD: stable/11/sys/compat/freebsd32/freebsd32_misc.c 337427 2018-08-07 17:44:13Z kib $"); |
29 30#include "opt_compat.h" 31#include "opt_inet.h" 32#include "opt_inet6.h" 33#include "opt_ktrace.h" 34 35#define __ELF_WORD_SIZE 32 36 --- 3133 unchanged lines hidden (view full) --- 3170 if (error != 0) 3171 return (error); 3172 ssp = &set; 3173 } else 3174 ssp = NULL; 3175 3176 return (kern_poll(td, uap->fds, uap->nfds, tsp, ssp)); 3177} | 29 30#include "opt_compat.h" 31#include "opt_inet.h" 32#include "opt_inet6.h" 33#include "opt_ktrace.h" 34 35#define __ELF_WORD_SIZE 32 36 --- 3133 unchanged lines hidden (view full) --- 3170 if (error != 0) 3171 return (error); 3172 ssp = &set; 3173 } else 3174 ssp = NULL; 3175 3176 return (kern_poll(td, uap->fds, uap->nfds, tsp, ssp)); 3177} |
3178 3179int 3180freebsd32_sched_rr_get_interval(struct thread *td, 3181 struct freebsd32_sched_rr_get_interval_args *uap) 3182{ 3183 struct timespec ts; 3184 struct timespec32 ts32; 3185 int error; 3186 3187 error = kern_sched_rr_get_interval(td, uap->pid, &ts); 3188 if (error == 0) { 3189 CP(ts, ts32, tv_sec); 3190 CP(ts, ts32, tv_nsec); 3191 error = copyout(&ts32, uap->interval, sizeof(ts32)); 3192 } 3193 return (error); 3194} |
|