1 #ifndef _SYS_PARAM_H 2 #define _SYS_PARAM_H 3 /* 4 ** Distributed under the terms of the OpenBeOS License. 5 */ 6 7 #include <limits.h> 8 9 #define MAXPATHLEN PATH_MAX 10 #define MAXSYMLINKS SYMLOOP_MAX 11 12 #define NOFILE OPEN_MAX 13 14 #ifndef MIN 15 #define MIN(a,b) (((a) < (b)) ? (a) : (b)) 16 #endif 17 #ifndef MAX 18 #define MAX(a,b) (((a) > (b)) ? (a) : (b)) 19 #endif 20 21 /* maximum possible length of this machine's hostname */ 22 #ifndef MAXHOSTNAMELEN 23 #define MAXHOSTNAMELEN 256 24 #endif 25 26 #endif /* _SYS_PARAM_H */ 27