Blame sysdeps/mach/hurd/bits/param.h

Packit 6c4009
/* Old-style Unix parameters and limits.  Hurd version.
Packit 6c4009
   Copyright (C) 1993-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef _SYS_PARAM_H
Packit 6c4009
# error "Never use <bits/param.h> directly; include <sys/param.h> instead."
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#include <bits/mach/param.h>
Packit 6c4009
Packit 6c4009
/* This file is deprecated and is provided only for compatibility with
Packit 6c4009
   Unix systems.  It is unwise to include this file on programs which
Packit 6c4009
   are intended only for GNU systems.
Packit 6c4009
Packit 6c4009
   Parts from:
Packit 6c4009
Packit 6c4009
 * Copyright (c) 1982, 1986, 1989 The Regents of the University of California.
Packit 6c4009
 * All rights reserved.
Packit 6c4009
 *
Packit 6c4009
 * Redistribution and use in source and binary forms, with or without
Packit 6c4009
 * modification, are permitted provided that the following conditions
Packit 6c4009
 * are met:
Packit 6c4009
 * 1. Redistributions of source code must retain the above copyright
Packit 6c4009
 *    notice, this list of conditions and the following disclaimer.
Packit 6c4009
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 6c4009
 *    notice, this list of conditions and the following disclaimer in the
Packit 6c4009
 *    documentation and/or other materials provided with the distribution.
Packit 6c4009
 * 4. Neither the name of the University nor the names of its contributors
Packit 6c4009
 *    may be used to endorse or promote products derived from this software
Packit 6c4009
 *    without specific prior written permission.
Packit 6c4009
 *
Packit 6c4009
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
Packit 6c4009
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit 6c4009
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit 6c4009
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
Packit 6c4009
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit 6c4009
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
Packit 6c4009
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Packit 6c4009
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
Packit 6c4009
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
Packit 6c4009
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
Packit 6c4009
 * SUCH DAMAGE.
Packit 6c4009
 *
Packit 6c4009
 *	@(#)param.h	7.23 (Berkeley) 5/6/91
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* What versions of BSD we are compatible with.  */
Packit 6c4009
#define	BSD	199306		/* System version (year & month). */
Packit 6c4009
#define BSD4_3	1
Packit 6c4009
#define BSD4_4	1
Packit 6c4009
Packit 6c4009
#define	GNU	1994100		/* GNU version (year, month, and release).  */
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* BSD names for some <limits.h> values.  We do not define the BSD names
Packit 6c4009
   for the values which are not statically limited, such as NOFILE.  */
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* There is nothing quite equivalent in GNU to Unix "mounts", but there is
Packit 6c4009
   no limit on the number of simultaneously attached filesystems.  */
Packit 6c4009
#define NMOUNT		INT_MAX
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Scale factor for scaled integers used to count %cpu time and load avgs.
Packit 6c4009
Packit 6c4009
   The number of CPU `tick's that map to a unique `%age' can be expressed
Packit 6c4009
   by the formula (1 / (2 ^ (FSHIFT - 11))).  The maximum load average that
Packit 6c4009
   can be calculated (assuming 32 bits) can be closely approximated using
Packit 6c4009
   the formula (2 ^ (2 * (16 - FSHIFT))) for (FSHIFT < 15).  */
Packit 6c4009
Packit 6c4009
#define	FSHIFT	11		/* Bits to right of fixed binary point.  */
Packit 6c4009
#define FSCALE	(1<