From: Paul Floyd Date: Wed, 13 Apr 2022 21:32:55 +0000 (+0200) Subject: Missing defines for FreeBSD 14 swapoff X-Git-Tag: VALGRIND_3_20_0~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60dd674e71a1db6b87fab2f8d759ae66b2b35ef4;p=thirdparty%2Fvalgrind.git Missing defines for FreeBSD 14 swapoff +1 typo --- diff --git a/coregrind/m_syswrap/priv_syswrap-freebsd.h b/coregrind/m_syswrap/priv_syswrap-freebsd.h index 6297033e14..36a48ac1ff 100644 --- a/coregrind/m_syswrap/priv_syswrap-freebsd.h +++ b/coregrind/m_syswrap/priv_syswrap-freebsd.h @@ -556,7 +556,7 @@ DECL_TEMPLATE(freebsd, sys___specialfd) // 577 // unimpl __NR_fspacectl 580 // unimpl __NR_sched_getcpu 581 -DECL_TEMPLATE(freebsd, __NR_swapoff) // 582 +DECL_TEMPLATE(freebsd, sys_swapoff) // 582 #endif DECL_TEMPLATE(freebsd, sys_fake_sigreturn) diff --git a/include/vki/vki-scnums-freebsd.h b/include/vki/vki-scnums-freebsd.h index cd806dcb94..d1df3d4dd8 100644 --- a/include/vki/vki-scnums-freebsd.h +++ b/include/vki/vki-scnums-freebsd.h @@ -459,7 +459,7 @@ #define __NR_setcontext 422 #define __NR_swapcontext 423 #if (FREEBSD_VERS >= FREEBSD_14) -#define __NR_freebsd14_swapoff 424 +#define __NR_freebsd13_swapoff 424 #else #define __NR_swapoff 424 #endif @@ -653,6 +653,14 @@ #endif +#if (FREEBSD_VERS >= FREEBSD_14) + +#define __NR_fspacectl 580 +#define __NR_sched_getcpu 581 +#define __NR_swapoff 582 + +#endif + #define __NR_fake_sigreturn 1000 #endif /* VKI_UNISTD_FREEBSD_H */