freebsd32_misc.c (dabf006a638fdc44cdcf69731de8ac83959db731) | freebsd32_misc.c (ddb3eb4efe55e57c206f3534263c77b837aff1dc) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2002 Doug Rabson 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 --- 72 unchanged lines hidden (view full) --- 81#include <sys/sysent.h> 82#include <sys/sysproto.h> 83#include <sys/systm.h> 84#include <sys/thr.h> 85#include <sys/timerfd.h> 86#include <sys/timex.h> 87#include <sys/unistd.h> 88#include <sys/ucontext.h> | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2002 Doug Rabson 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 --- 72 unchanged lines hidden (view full) --- 81#include <sys/sysent.h> 82#include <sys/sysproto.h> 83#include <sys/systm.h> 84#include <sys/thr.h> 85#include <sys/timerfd.h> 86#include <sys/timex.h> 87#include <sys/unistd.h> 88#include <sys/ucontext.h> |
89#include <sys/ucred.h> |
|
89#include <sys/vnode.h> 90#include <sys/wait.h> 91#include <sys/ipc.h> 92#include <sys/msg.h> 93#include <sys/sem.h> 94#include <sys/shm.h> 95#include <sys/timeffc.h> 96#ifdef KTRACE --- 13 unchanged lines hidden (view full) --- 110 111#include <machine/cpu.h> 112#include <machine/elf.h> 113#ifdef __amd64__ 114#include <machine/md_var.h> 115#endif 116 117#include <security/audit/audit.h> | 90#include <sys/vnode.h> 91#include <sys/wait.h> 92#include <sys/ipc.h> 93#include <sys/msg.h> 94#include <sys/sem.h> 95#include <sys/shm.h> 96#include <sys/timeffc.h> 97#ifdef KTRACE --- 13 unchanged lines hidden (view full) --- 111 112#include <machine/cpu.h> 113#include <machine/elf.h> 114#ifdef __amd64__ 115#include <machine/md_var.h> 116#endif 117 118#include <security/audit/audit.h> |
119#include <security/mac/mac_syscalls.h> |
|
118 119#include <compat/freebsd32/freebsd32_util.h> 120#include <compat/freebsd32/freebsd32.h> 121#include <compat/freebsd32/freebsd32_ipc.h> 122#include <compat/freebsd32/freebsd32_misc.h> 123#include <compat/freebsd32/freebsd32_signal.h> 124#include <compat/freebsd32/freebsd32_proto.h> 125 --- 4043 unchanged lines hidden (view full) --- 4169 int name[] = { CTL_KERN, KERN_HOSTID }; 4170 long hostid; 4171 4172 hostid = uap->hostid; 4173 return (kernel_sysctl(td, name, nitems(name), NULL, NULL, &hostid, 4174 sizeof(hostid), NULL, 0)); 4175} 4176#endif | 120 121#include <compat/freebsd32/freebsd32_util.h> 122#include <compat/freebsd32/freebsd32.h> 123#include <compat/freebsd32/freebsd32_ipc.h> 124#include <compat/freebsd32/freebsd32_misc.h> 125#include <compat/freebsd32/freebsd32_signal.h> 126#include <compat/freebsd32/freebsd32_proto.h> 127 --- 4043 unchanged lines hidden (view full) --- 4171 int name[] = { CTL_KERN, KERN_HOSTID }; 4172 long hostid; 4173 4174 hostid = uap->hostid; 4175 return (kernel_sysctl(td, name, nitems(name), NULL, NULL, &hostid, 4176 sizeof(hostid), NULL, 0)); 4177} 4178#endif |
4179 4180int 4181freebsd32_setcred(struct thread *td, struct freebsd32_setcred_args *uap) 4182{ 4183 /* Last argument is 'is_32bit'. */ 4184 return (user_setcred(td, uap->flags, uap->wcred, uap->size, true)); 4185} |
|