Module Name: src Committed By: riastradh Date: Wed Oct 26 23:21:06 UTC 2022
Modified Files: src/sys/kern: kern_hook.c Log Message: kern/kern_hook.c: Get exec_lock from sys/exec.h. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/kern/kern_hook.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_hook.c diff -u src/sys/kern/kern_hook.c:1.13 src/sys/kern/kern_hook.c:1.14 --- src/sys/kern/kern_hook.c:1.13 Tue May 31 08:43:16 2022 +++ src/sys/kern/kern_hook.c Wed Oct 26 23:21:06 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_hook.c,v 1.13 2022/05/31 08:43:16 andvar Exp $ */ +/* $NetBSD: kern_hook.c,v 1.14 2022/10/26 23:21:06 riastradh Exp $ */ /*- * Copyright (c) 1997, 1998, 1999, 2002, 2007, 2008 The NetBSD Foundation, Inc. @@ -31,12 +31,14 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_hook.c,v 1.13 2022/05/31 08:43:16 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_hook.c,v 1.14 2022/10/26 23:21:06 riastradh Exp $"); #include <sys/param.h> + #include <sys/condvar.h> #include <sys/cpu.h> #include <sys/device.h> +#include <sys/exec.h> #include <sys/hook.h> #include <sys/kmem.h> #include <sys/malloc.h> @@ -245,7 +247,6 @@ doexechooks(struct proc *p) } static hook_list_t exithook_list = LIST_HEAD_INITIALIZER(exithook_list); -extern krwlock_t exec_lock; void * exithook_establish(void (*fn)(struct proc *, void *), void *arg)