Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add prototypes for exec hooks.



details:   https://anonhg.NetBSD.org/src/rev/cb202aba5082
branches:  trunk
changeset: 481225:cb202aba5082
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Jan 25 01:15:29 2000 +0000

description:
Add prototypes for exec hooks.

diffstat:

 sys/sys/systm.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 8568551bd259 -r cb202aba5082 sys/sys/systm.h
--- a/sys/sys/systm.h   Tue Jan 25 01:15:14 2000 +0000
+++ b/sys/sys/systm.h   Tue Jan 25 01:15:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.100 1999/12/28 23:16:49 assar Exp $        */
+/*     $NetBSD: systm.h,v 1.101 2000/01/25 01:15:29 fvdl Exp $ */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -276,6 +276,14 @@
 void   mountroothook_destroy __P((void));
 void   domountroothook __P((void));
 
+/*
+ * Exec hooks. Subsystems may want to do cleanup when a process
+ * execs.
+ */
+void   *exechook_establish __P((void (*)(struct proc *, void *), void *));
+void   exechook_disestablish __P((void *));
+void   doexechooks __P((struct proc *));
+
 int    uiomove __P((void *, int, struct uio *));
 
 #ifdef _KERNEL



Home | Main Index | Thread Index | Old Index