freebsd32_misc.c (329f0aa95244ad1e615e8c2abb50366b5b957bdf) freebsd32_misc.c (fd8d844f7622a08d362994fde083170ec29088ae)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
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

--- 3313 unchanged lines hidden (view full) ---

3322 struct procctl_reaper_pids rp;
3323 struct procctl_reaper_kill rk;
3324 } x;
3325 union {
3326 struct procctl_reaper_pids32 rp;
3327 } x32;
3328 int error, error1, flags, signum;
3329
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
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

--- 3313 unchanged lines hidden (view full) ---

3322 struct procctl_reaper_pids rp;
3323 struct procctl_reaper_kill rk;
3324 } x;
3325 union {
3326 struct procctl_reaper_pids32 rp;
3327 } x32;
3328 int error, error1, flags, signum;
3329
3330 if (uap->com >= PROC_PROCCTL_MD_MIN)
3331 return (cpu_procctl(td, uap->idtype, PAIR32TO64(id_t, uap->id),
3332 uap->com, PTRIN(uap->data)));
3333
3330 switch (uap->com) {
3331 case PROC_ASLR_CTL:
3332 case PROC_SPROTECT:
3333 case PROC_TRACE_CTL:
3334 case PROC_TRAPCAP_CTL:
3335 error = copyin(PTRIN(uap->data), &flags, sizeof(flags));
3336 if (error != 0)
3337 return (error);

--- 140 unchanged lines hidden ---
3334 switch (uap->com) {
3335 case PROC_ASLR_CTL:
3336 case PROC_SPROTECT:
3337 case PROC_TRACE_CTL:
3338 case PROC_TRAPCAP_CTL:
3339 error = copyin(PTRIN(uap->data), &flags, sizeof(flags));
3340 if (error != 0)
3341 return (error);

--- 140 unchanged lines hidden ---