1 /* Old-style Unix parameters and limits.  Hurd version.
2    Copyright (C) 1993-2022 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
4 
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9 
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
14 
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, see
17    <https://www.gnu.org/licenses/>.  */
18 
19 #ifndef _SYS_PARAM_H
20 # error "Never use <bits/param.h> directly; include <sys/param.h> instead."
21 #endif
22 
23 #include <bits/mach/param.h>
24 
25 /* This file is deprecated and is provided only for compatibility with
26    Unix systems.  It is unwise to include this file on programs which
27    are intended only for GNU systems.
28 
29    Parts from:
30 
31  * Copyright (c) 1982, 1986, 1989 The Regents of the University of California.
32  * All rights reserved.
33  *
34  * Redistribution and use in source and binary forms, with or without
35  * modification, are permitted provided that the following conditions
36  * are met:
37  * 1. Redistributions of source code must retain the above copyright
38  *    notice, this list of conditions and the following disclaimer.
39  * 2. Redistributions in binary form must reproduce the above copyright
40  *    notice, this list of conditions and the following disclaimer in the
41  *    documentation and/or other materials provided with the distribution.
42  * 4. Neither the name of the University nor the names of its contributors
43  *    may be used to endorse or promote products derived from this software
44  *    without specific prior written permission.
45  *
46  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
47  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
48  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
49  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
50  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
51  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
52  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
54  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
55  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
56  * SUCH DAMAGE.
57  *
58  *	@(#)param.h	7.23 (Berkeley) 5/6/91
59  */
60 
61 
62 /* What versions of BSD we are compatible with.  */
63 #define	BSD	199306		/* System version (year & month). */
64 #define BSD4_3	1
65 #define BSD4_4	1
66 
67 #define	GNU	1994100		/* GNU version (year, month, and release).  */
68 
69 
70 /* BSD names for some <limits.h> values.  We do not define the BSD names
71    for the values which are not statically limited, such as NOFILE.  */
72 
73 
74 /* There is nothing quite equivalent in GNU to Unix "mounts", but there is
75    no limit on the number of simultaneously attached filesystems.  */
76 #define NMOUNT		INT_MAX
77 
78 
79 /* Scale factor for scaled integers used to count %cpu time and load avgs.
80 
81    The number of CPU `tick's that map to a unique `%age' can be expressed
82    by the formula (1 / (2 ^ (FSHIFT - 11))).  The maximum load average that
83    can be calculated (assuming 32 bits) can be closely approximated using
84    the formula (2 ^ (2 * (16 - FSHIFT))) for (FSHIFT < 15).  */
85 
86 #define	FSHIFT	11		/* Bits to right of fixed binary point.  */
87 #define FSCALE	(1<<FSHIFT)
88