Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / mach / hurd / bits / param.h
blobdac789cce6e2104f250f1d807dc2a8ddae1b86e8
1 /* Old-style Unix parameters and limits. Hurd version.
2 Copyright (C) 1993-2014 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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 <http://www.gnu.org/licenses/>. */
19 #ifndef _SYS_PARAM_H
20 # error "Never use <bits/param.h> directly; include <sys/param.h> instead."
21 #endif
23 /* This file is deprecated and is provided only for compatibility with
24 Unix systems. It is unwise to include this file on programs which
25 are intended only for GNU systems.
27 Parts from:
29 * Copyright (c) 1982, 1986, 1989 The Regents of the University of California.
30 * All rights reserved.
32 * Redistribution and use in source and binary forms, with or without
33 * modification, are permitted provided that the following conditions
34 * are met:
35 * 1. Redistributions of source code must retain the above copyright
36 * notice, this list of conditions and the following disclaimer.
37 * 2. Redistributions in binary form must reproduce the above copyright
38 * notice, this list of conditions and the following disclaimer in the
39 * documentation and/or other materials provided with the distribution.
40 * 4. Neither the name of the University nor the names of its contributors
41 * may be used to endorse or promote products derived from this software
42 * without specific prior written permission.
44 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
45 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
48 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
56 * @(#)param.h 7.23 (Berkeley) 5/6/91
60 /* What versions of BSD we are compatible with. */
61 #define BSD 199306 /* System version (year & month). */
62 #define BSD4_3 1
63 #define BSD4_4 1
65 #define GNU 1994100 /* GNU version (year, month, and release). */
68 /* BSD names for some <limits.h> values. We do not define the BSD names
69 for the values which are not statically limited, such as NOFILE. */
72 /* There is nothing quite equivalent in GNU to Unix "mounts", but there is
73 no limit on the number of simultaneously attached filesystems. */
74 #define NMOUNT INT_MAX
77 /* Scale factor for scaled integers used to count %cpu time and load avgs.
79 The number of CPU `tick's that map to a unique `%age' can be expressed
80 by the formula (1 / (2 ^ (FSHIFT - 11))). The maximum load average that
81 can be calculated (assuming 32 bits) can be closely approximated using
82 the formula (2 ^ (2 * (16 - FSHIFT))) for (FSHIFT < 15). */
84 #define FSHIFT 11 /* Bits to right of fixed binary point. */
85 #define FSCALE (1<<FSHIFT)