be consistent with whitespace
This commit is contained in:
parent
c40daf0aed
commit
211a59bbed
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: param.h,v 1.123 2001/03/19 00:29:04 chs Exp $ */
|
||||
/* $NetBSD: param.h,v 1.124 2001/03/19 01:10:51 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -41,14 +41,14 @@
|
|||
*/
|
||||
|
||||
#ifndef _SYS_PARAM_H_
|
||||
#define _SYS_PARAM_H_
|
||||
#define _SYS_PARAM_H_
|
||||
|
||||
/*
|
||||
* Historic BSD #defines -- probably will remain untouched for all time.
|
||||
*/
|
||||
#define BSD 199506 /* System version (year & month). */
|
||||
#define BSD4_3 1
|
||||
#define BSD4_4 1
|
||||
#define BSD4_3 1
|
||||
#define BSD4_4 1
|
||||
|
||||
/*
|
||||
* #define __NetBSD_Version__ MMmmrrpp00
|
||||
|
@ -67,7 +67,7 @@
|
|||
* Don't forget to change conf/osrelease.sh too.
|
||||
*/
|
||||
|
||||
#define __NetBSD_Version__ 105190000 /* NetBSD 1.5S */
|
||||
#define __NetBSD_Version__ 105190000 /* NetBSD 1.5S */
|
||||
|
||||
/*
|
||||
* Historical NetBSD #define
|
||||
|
@ -81,7 +81,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define NetBSD 199905 /* NetBSD version (year & month). */
|
||||
#define NetBSD 199905 /* NetBSD version (year & month). */
|
||||
|
||||
#include <sys/null.h>
|
||||
|
||||
|
@ -107,10 +107,10 @@
|
|||
#define NGROUPS NGROUPS_MAX /* max number groups */
|
||||
#define NOFILE OPEN_MAX /* max open files per process */
|
||||
#define NOGROUP 65535 /* marker for empty group set member */
|
||||
#define MAXHOSTNAMELEN 256 /* max hostname size */
|
||||
#define MAXHOSTNAMELEN 256 /* max hostname size */
|
||||
|
||||
#ifndef MAXUPRC /* max simultaneous processes */
|
||||
#define MAXUPRC CHILD_MAX /* POSIX 1003.1-compliant default */
|
||||
#define MAXUPRC CHILD_MAX /* POSIX 1003.1-compliant default */
|
||||
#else
|
||||
#if (MAXUPRC - 0) < CHILD_MAX
|
||||
#error MAXUPRC less than CHILD_MAX. See options(4) for details.
|
||||
|
@ -126,13 +126,13 @@
|
|||
#include <sys/ucred.h>
|
||||
#include <sys/uio.h>
|
||||
#ifndef NPROC
|
||||
#define NPROC (20 + 16 * MAXUSERS)
|
||||
#define NPROC (20 + 16 * MAXUSERS)
|
||||
#endif
|
||||
#ifndef NTEXT
|
||||
#define NTEXT (80 + NPROC / 8) /* actually the object cache */
|
||||
#define NTEXT (80 + NPROC / 8) /* actually the object cache */
|
||||
#endif
|
||||
#ifndef NVNODE
|
||||
#define NVNODE (NPROC + NTEXT + 100)
|
||||
#define NVNODE (NPROC + NTEXT + 100)
|
||||
#define NVNODE_IMPLICIT
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
@ -172,7 +172,7 @@
|
|||
#define NODEV (dev_t)(-1) /* non-existent device */
|
||||
|
||||
#define CBLOCK 64 /* Clist block size, must be a power of 2. */
|
||||
#define CBQSIZE (CBLOCK/NBBY) /* Quote bytes/cblock - can do better. */
|
||||
#define CBQSIZE (CBLOCK/NBBY) /* Quote bytes/cblock - can do better. */
|
||||
/* Data chars/clist. */
|
||||
#define CBSIZE (CBLOCK - sizeof(struct cblock *) - CBQSIZE)
|
||||
#define CROUND (CBLOCK - 1) /* Clist rounding. */
|
||||
|
@ -189,7 +189,7 @@
|
|||
#ifndef MAXBSIZE /* XXX */
|
||||
#define MAXBSIZE MAXPHYS
|
||||
#endif
|
||||
#define MAXFRAG 8
|
||||
#define MAXFRAG 8
|
||||
|
||||
/*
|
||||
* MAXPATHLEN defines the longest permissible path length after expanding
|
||||
|
@ -201,7 +201,7 @@
|
|||
* infinite loops reasonably quickly.
|
||||
*/
|
||||
#define MAXPATHLEN PATH_MAX
|
||||
#define MAXSYMLINKS 32
|
||||
#define MAXSYMLINKS 32
|
||||
|
||||
/* Bit map related macros. */
|
||||
#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
|
||||
|
@ -214,11 +214,11 @@
|
|||
#define howmany(x, y) (((x)+((y)-1))/(y))
|
||||
#endif
|
||||
#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
|
||||
#define powerof2(x) ((((x)-1)&(x))==0)
|
||||
#define powerof2(x) ((((x)-1)&(x))==0)
|
||||
|
||||
/* Macros for min/max. */
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
|
||||
/*
|
||||
* Constants for setting the parameters of the kernel memory allocator.
|
||||
|
@ -235,8 +235,8 @@
|
|||
* Constraints: NBPG <= MAXALLOCSAVE <= 2 ** (MINBUCKET + 14), and
|
||||
* MAXALLOCSIZE must be a power of two.
|
||||
*/
|
||||
#define MINBUCKET 4 /* 4 => min allocation of 16 bytes */
|
||||
#define MAXALLOCSAVE (2 * NBPG)
|
||||
#define MINBUCKET 4 /* 4 => min allocation of 16 bytes */
|
||||
#define MAXALLOCSAVE (2 * NBPG)
|
||||
|
||||
/*
|
||||
* Scale factor for scaled integers used to count %cpu time and load avgs.
|
||||
|
@ -250,17 +250,17 @@
|
|||
* FSHIFT must be at least 11; this gives us a maximum load avg of ~1024.
|
||||
*/
|
||||
#define FSHIFT 11 /* bits to right of fixed binary point */
|
||||
#define FSCALE (1<<FSHIFT)
|
||||
#define FSCALE (1<<FSHIFT)
|
||||
|
||||
/*
|
||||
* Defaults for Unified Buffer Cache parameters.
|
||||
*/
|
||||
|
||||
#ifndef UBC_WINSHIFT
|
||||
#define UBC_WINSHIFT 13
|
||||
#define UBC_WINSHIFT 13
|
||||
#endif
|
||||
#ifndef UBC_NWINS
|
||||
#define UBC_NWINS 1024
|
||||
#define UBC_NWINS 1024
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_PARAM_H_ */
|
||||
|
|
Loading…
Reference in New Issue