freebsd32_misc.c (ab3ccb758329e439a888884da7a6c4d065963936) | freebsd32_misc.c (ad58266704513b89140501ade9e48793a67cc1f1) |
---|---|
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 --- 306 unchanged lines hidden (view full) --- 315 free(buf, M_STATFS); 316 } 317 if (error == 0) 318 td->td_retval[0] = count; 319 return (error); 320} 321#endif 322 | 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 --- 306 unchanged lines hidden (view full) --- 315 free(buf, M_STATFS); 316 } 317 if (error == 0) 318 td->td_retval[0] = count; 319 return (error); 320} 321#endif 322 |
323#ifdef COMPAT_FREEBSD10 | |
324int | 323int |
325freebsd10_freebsd32_pipe(struct thread *td, 326 struct freebsd10_freebsd32_pipe_args *uap) { 327 return (freebsd10_pipe(td, (struct freebsd10_pipe_args*)uap)); 328} 329#endif 330 331int | |
332freebsd32_sigaltstack(struct thread *td, 333 struct freebsd32_sigaltstack_args *uap) 334{ 335 struct sigaltstack32 s32; 336 struct sigaltstack ss, oss, *ssp; 337 int error; 338 339 if (uap->ss != NULL) { --- 2395 unchanged lines hidden (view full) --- 2735 int error; 2736 2737 OSIG2SIG(uap->mask, set); 2738 error = kern_sigprocmask(td, uap->how, &set, &oset, SIGPROCMASK_OLD); 2739 SIG2OSIG(oset, td->td_retval[0]); 2740 return (error); 2741} 2742 | 324freebsd32_sigaltstack(struct thread *td, 325 struct freebsd32_sigaltstack_args *uap) 326{ 327 struct sigaltstack32 s32; 328 struct sigaltstack ss, oss, *ssp; 329 int error; 330 331 if (uap->ss != NULL) { --- 2395 unchanged lines hidden (view full) --- 2727 int error; 2728 2729 OSIG2SIG(uap->mask, set); 2730 error = kern_sigprocmask(td, uap->how, &set, &oset, SIGPROCMASK_OLD); 2731 SIG2OSIG(oset, td->td_retval[0]); 2732 return (error); 2733} 2734 |
2743int 2744ofreebsd32_sigpending(struct thread *td, 2745 struct ofreebsd32_sigpending_args *uap) 2746{ 2747 struct proc *p = td->td_proc; 2748 sigset_t siglist; 2749 2750 PROC_LOCK(p); 2751 siglist = p->p_siglist; 2752 SIGSETOR(siglist, td->td_siglist); 2753 PROC_UNLOCK(p); 2754 SIG2OSIG(siglist, td->td_retval[0]); 2755 return (0); 2756} 2757 | |
2758struct sigvec32 { 2759 u_int32_t sv_handler; 2760 int sv_mask; 2761 int sv_flags; 2762}; 2763 2764int 2765ofreebsd32_sigvec(struct thread *td, --- 1125 unchanged lines hidden --- | 2735struct sigvec32 { 2736 u_int32_t sv_handler; 2737 int sv_mask; 2738 int sv_flags; 2739}; 2740 2741int 2742ofreebsd32_sigvec(struct thread *td, --- 1125 unchanged lines hidden --- |