Just one extra syscall that I can see.
freebsd_13_2=1320
AC_DEFINE([FREEBSD_13_3], 1330, [FREEBSD_VERS value for FreeBSD 13.3])
freebsd_13_3=1330
- AC_DEFINE([FREEBSD_14], 1400, [FREEBSD_VERS value for FreeBSD 14.x])
+ AC_DEFINE([FREEBSD_14], 1400, [FREEBSD_VERS value for FreeBSD 14.0])
freebsd_14=1400
+ AC_DEFINE([FREEBSD_14_1], 1410, [FREEBSD_VERS value for FreeBSD 14.1])
+ freebsd_14_1=1410
AC_DEFINE([FREEBSD_15], 1500, [FREEBSD_VERS value for FreeBSD 15.x])
freebsd_15=1500
esac
;;
14.*)
- AC_MSG_RESULT([FreeBSD 14.x (${kernel})])
- AC_DEFINE([FREEBSD_VERS], FREEBSD_14, [FreeBSD version])
- freebsd_vers=$freebsd_14
+ case "${kernel}" in
+ 14.0-*)
+ AC_MSG_RESULT([FreeBSD 14.0 (${kernel})])
+ AC_DEFINE([FREEBSD_VERS], FREEBSD_14_0, [FreeBSD version])
+ freebsd_vers=$freebsd_14_0
+ ;;
+ 14.1-*)
+ AC_MSG_RESULT([FreeBSD 14.1 (${kernel})])
+ AC_DEFINE([FREEBSD_VERS], FREEBSD_14_1, [FreeBSD version])
+ freebsd_vers=$freebsd_14_1
+ ;;
+ *)
+ AC_MSG_RESULT([unsupported (${kernel})])
+ AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 15.x])
+ ;;
+ esac
;;
15.*)
AC_MSG_RESULT([FreeBSD 15.x (${kernel})])
DECL_TEMPLATE(freebsd, sys_membarrier) // 584
#endif
-#if (FREEBSD_VERS >= FREEBSD_15)
+#if (FREEBSD_VERS >= FREEBSD_14)
DECL_TEMPLATE(freebsd, sys_timerfd_create) // 585
DECL_TEMPLATE(freebsd, sys_timerfd_gettime) // 586
DECL_TEMPLATE(freebsd, sys_timerfd_settime) // 587
+#if (FREEBSD_VERS >= FREEBSD_14_1)
DECL_TEMPLATE(freebsd, sys_kcmp) // 588
#endif
+#endif
DECL_TEMPLATE(freebsd, sys_fake_sigreturn)
#endif
-#if (FREEBSD_VERS >= FREEBSD_15)
+#if (FREEBSD_VERS >= FREEBSD_14)
// SYS_timerfd_create 585
// int timerfd_create(int clockid, int flags);
}
}
+#if (FREEBSD_VERS >= FREEBSD_14_1)
+
// SYS_kcmp 588
// int kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
PRE(sys_kcmp)
}
}
+#endif // FREEBSD_14_1
-#endif
+
+#endif // FREEBSD_14
#undef PRE
#undef POST
BSDXY(__NR_kqueuex, sys_kqueuex), // 583
BSDX_(__NR_membarrier, sys_membarrier), // 584
#endif
-#if (FREEBSD_VERS >= FREEBSD_15)
+#if (FREEBSD_VERS >= FREEBSD_14)
BSDXY(__NR_timerfd_create, sys_timerfd_create), // 585
BSDXY(__NR_timerfd_settime, sys_timerfd_settime), // 586
BSDXY(__NR_timerfd_gettime, sys_timerfd_gettime), // 587
+#if (FREEBSD_VERS >= FREEBSD_14_1)
BSDX_(__NR_kcmp, sys_kcmp), // 588
#endif
+#endif
BSDX_(__NR_fake_sigreturn, sys_fake_sigreturn), // 1000, fake sigreturn
#endif
-#if (FREEBSD_VERS >= FREEBSD_15)
+#if (FREEBSD_VERS >= FREEBSD_14)
#define __NR_timerfd_create 585
#define __NR_timerfd_gettime 586
#define __NR_timerfd_settime 587
+#if (FREEBSD_VERS >= FREEBSD_14_1)
#define __NR_kcmp 588
+#endif
#endif