Back to index

glibc  2.9
param.h
Go to the documentation of this file.
00001 /* Copyright (C) 2000 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #ifndef _SYS_PARAM_H
00020 #define _SYS_PARAM_H 1
00021 
00022 /* This file should contain various parameter macros appropriate for the
00023    machine and operating system.  There is no standard set of macros; this
00024    file is just for compatibility with programs written for Unix that
00025    expect it to define things.  On Unix systems that do not have their own
00026    sysdep version of this file, it is generated at build time by examining
00027    the installed headers on the system.  */
00028 
00029 #include <limits.h>
00030 
00031 #define MAXSYMLINKS  1
00032 #define MAXPATHLEN   256
00033 
00034 /* The pagesize is 4096.  */
00035 #define EXEC_PAGESIZE       4096
00036 
00037 /* maximum number of supplemental groups.  */
00038 #define NGROUPS             32
00039 
00040 /* Macros for min/max.  */
00041 #define MIN(a,b) (((a)<(b))?(a):(b))
00042 #define MAX(a,b) (((a)>(b))?(a):(b))
00043 
00044 
00045 /* Maximum length of hostname.  */
00046 #define MAXHOSTNAMELEN      256
00047 
00048 #endif /* sys/param.h */