add a typedef `sy_call_t' for the function type used in `struct
sysent'
This commit is contained in:
parent
1e9bb239a3
commit
c2de858715
|
@ -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
|
* Copyright (c) 1982, 1988, 1991, 1993
|
||||||
|
@ -119,11 +119,12 @@ struct proc;
|
||||||
struct tty;
|
struct tty;
|
||||||
struct uio;
|
struct uio;
|
||||||
|
|
||||||
|
typedef int sy_call_t __P((struct proc *, void *, register_t *));
|
||||||
|
|
||||||
extern struct sysent { /* system call table */
|
extern struct sysent { /* system call table */
|
||||||
short sy_narg; /* number of args */
|
short sy_narg; /* number of args */
|
||||||
short sy_argsize; /* total size of arguments */
|
short sy_argsize; /* total size of arguments */
|
||||||
/* implementing function */
|
sy_call_t *sy_call; /* implementing function */
|
||||||
int (*sy_call) __P((struct proc *, void *, register_t *));
|
|
||||||
} sysent[];
|
} sysent[];
|
||||||
extern int nsysent;
|
extern int nsysent;
|
||||||
#if BYTE_ORDER == BIG_ENDIAN
|
#if BYTE_ORDER == BIG_ENDIAN
|
||||||
|
|
Loading…
Reference in New Issue