From c2de8587158cb32c923f0f06bac21711746f2e37 Mon Sep 17 00:00:00 2001 From: assar Date: Tue, 28 Dec 1999 23:16:49 +0000 Subject: [PATCH] add a typedef `sy_call_t' for the function type used in `struct sysent' --- sys/sys/systm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 9bdb984fd3a6..8e6595d382a3 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -1,4 +1,4 @@ -/* $NetBSD: systm.h,v 1.99 1999/11/22 18:05:41 jdolecek Exp $ */ +/* $NetBSD: systm.h,v 1.100 1999/12/28 23:16:49 assar Exp $ */ /*- * Copyright (c) 1982, 1988, 1991, 1993 @@ -119,11 +119,12 @@ struct proc; struct tty; struct uio; +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[]; extern int nsysent; #if BYTE_ORDER == BIG_ENDIAN