Source-Changes-HG archive

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

[src/trunk]: src/sys/sys add a typedef `sy_call_t' for the function type used...



details:   https://anonhg.NetBSD.org/src/rev/afb84d4badbb
branches:  trunk
changeset: 479981:afb84d4badbb
user:      assar <assar%NetBSD.org@localhost>
date:      Tue Dec 28 23:16:49 1999 +0000

description:
add a typedef `sy_call_t' for the function type used in `struct
sysent'

diffstat:

 sys/sys/systm.h |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 723ff9de3429 -r afb84d4badbb sys/sys/systm.h
--- a/sys/sys/systm.h   Tue Dec 28 19:26:26 1999 +0000
+++ b/sys/sys/systm.h   Tue Dec 28 23:16:49 1999 +0000
@@ -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 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



Home | Main Index | Thread Index | Old Index