diff options
author | assar <assar@cvs.openbsd.org> | 2000-01-02 06:31:29 +0000 |
---|---|---|
committer | assar <assar@cvs.openbsd.org> | 2000-01-02 06:31:29 +0000 |
commit | 7e84cb54b1bc5b159084752a62fe87731926c7f4 (patch) | |
tree | 3c95bfe6382bc1178e6a5ee2e927d5b8ac5a9aa7 /sys | |
parent | 621921f9f840e147101514c8b57435b618c3c5da (diff) |
(sy_call_t): define a type for the functions in sysent
PR 1032
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/systm.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 75eb54d85c5..9b89af4d2b4 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: systm.h,v 1.36 1999/12/02 00:23:35 deraadt Exp $ */ +/* $OpenBSD: systm.h,v 1.37 2000/01/02 06:31:28 assar Exp $ */ /* $NetBSD: systm.h,v 1.50 1996/06/09 04:55:09 briggs Exp $ */ /*- @@ -102,11 +102,13 @@ extern dev_t swapdev; /* swapping device */ extern struct vnode *swapdev_vp;/* vnode equivalent to above */ struct proc; + +typedef int sy_call_t __P((struct proc *, void *, register_t *)); + extern struct sysent { /* system call table */ short sy_narg; /* number of args */ short sy_argsize; /* total size of arguments */ - /* implementing function */ - int (*sy_call) __P((struct proc *, void *, register_t *)); + sy_call_t *sy_call; /* implementing function */ } sysent[]; #define SCARG(p,k) ((p)->k.datum) /* get arg from args pointer */ |