diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2025-09-15 00:55:17 -0300 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2025-09-15 00:57:23 -0300 |
commit | a56ee6dec5da9d9ef99a4a1ea563d697fbae5614 (patch) | |
tree | 1be9b5f992ea7a42fa7f9a8145faa85b7314b7ae /devel/compdbgen/files/extra-patch-mainloop.c | |
parent | net/sniffnet: update to 1.4.1 (diff) |
devel/compdbgen: Update to g20250914
This update pulls in an upstream fix for FreeBSD 13.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'devel/compdbgen/files/extra-patch-mainloop.c')
-rw-r--r-- | devel/compdbgen/files/extra-patch-mainloop.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/devel/compdbgen/files/extra-patch-mainloop.c b/devel/compdbgen/files/extra-patch-mainloop.c deleted file mode 100644 index 33a01eecebac..000000000000 --- a/devel/compdbgen/files/extra-patch-mainloop.c +++ /dev/null @@ -1,35 +0,0 @@ ---- mainloop.c.orig 2025-09-11 04:56:11 UTC -+++ mainloop.c -@@ -433,20 +433,32 @@ static void enter_syscall(struct glbctx *info, struct - static int json_item_cnt = 0; - struct syscall *sc; - u_int i, narg; -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1400000 -+ register_t *args; -+#else - syscallarg_t *args; -+#endif - - /* ignore other syscall except execve */ - if (pl->pl_syscall_code != SYS_execve) { - return; - } - -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1400000 -+ args = calloc(pl->pl_syscall_narg, sizeof(register_t)); -+#else - args = calloc(pl->pl_syscall_narg, sizeof(syscallarg_t)); -+#endif - if (args == NULL) { - err(1, "malloc syscall args failed\n"); - } - - if (ptrace(PT_GET_SC_ARGS, t->tid, (caddr_t)args, -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1400000 -+ sizeof(register_t) * pl->pl_syscall_narg) != 0) { -+#else - sizeof(syscallarg_t) * pl->pl_syscall_narg) != 0) { -+#endif - goto _EXIT; - } - |