Updates to reflect differences in what NetBSD does and what FreeBSD

userland expects.
This commit is contained in:
John Birrell 1998-03-09 05:53:13 +00:00
parent 74712ec974
commit 2bbb0ff141
3 changed files with 25 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $Id$ */
/* $Id: ansi.h,v 1.1 1998/01/10 10:13:13 jb Exp $ */
/* From: NetBSD: ansi.h,v 1.9 1997/11/23 20:20:53 kleink Exp */
/*-
@ -92,4 +92,17 @@ typedef struct {
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* Frequencies of the clock ticks reported by clock() and times(). They
* are the same as stathz for bogus historical reasons. They should be
* 1e6 because clock() and times() are implemented using getrusage() and
* there is no good reason why they should be less accurate. There is
* the bad reason that (broken) programs might not like clock_t or
* CLOCKS_PER_SEC being ``double'' (``unsigned long'' is not large enough
* to hold the required 24 hours worth of ticks if the frequency is
* 1000000ul, and ``unsigned long long'' would be nonstandard).
*/
#define _BSD_CLK_TCK_ 100
#define _BSD_CLOCKS_PER_SEC_ 100
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $Id$ */
/* $Id: param.h,v 1.1 1998/01/10 10:13:15 jb Exp $ */
/* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */
/*
@ -71,6 +71,7 @@
#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
#define NBPG (1 << ALPHA_PGSHIFT) /* bytes/page */
#define PAGE_SIZE NBPG
#define PGOFSET (NBPG-1) /* byte off. into pg */
#define PGSHIFT ALPHA_PGSHIFT /* LOG2(NBPG) */
#define NPTEPG (1 << (PGSHIFT-PTESHIFT)) /* pte's/page */

View File

@ -1,4 +1,4 @@
/* $Id$ */
/* $Id: types.h,v 1.1 1998/01/10 10:13:16 jb Exp $ */
/* From: NetBSD: types.h,v 1.8 1997/04/06 08:47:45 cgd Exp */
/*-
@ -70,4 +70,12 @@ typedef unsigned long u_int64_t;
typedef int64_t register_t;
typedef int32_t ufs_daddr_t;
/* Interrupt mask (spl, xxx_imask, etc) */
typedef u_int32_t intrmask_t;
/* Interrupt handler function type - arg should be "void *" one day */
typedef void inthand2_t(int _unit);
#endif /* _MACHTYPES_H_ */