2002-08-20 14:35:02 +04:00
|
|
|
#ifndef _SYS_PARAM_H
|
|
|
|
#define _SYS_PARAM_H
|
2002-08-20 15:10:51 +04:00
|
|
|
/*
|
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
2002-08-20 14:35:02 +04:00
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
|
|
|
|
#define MAXPATHLEN PATH_MAX
|
|
|
|
#define MAXSYMLINKS SYMLINKS_MAX
|
|
|
|
|
|
|
|
#define NOFILE OPEN_MAX
|
|
|
|
|
2002-10-24 00:13:17 +04:00
|
|
|
#ifndef MIN
|
|
|
|
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
#ifndef MAX
|
|
|
|
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
#endif
|
2002-08-20 14:35:02 +04:00
|
|
|
|
|
|
|
/* maximum possible length of this machine's hostname */
|
2002-10-24 00:13:17 +04:00
|
|
|
#ifndef MAXHOSTNAMELEN
|
|
|
|
#define MAXHOSTNAMELEN 256
|
|
|
|
#endif
|
2002-08-20 14:35:02 +04:00
|
|
|
|
|
|
|
#endif /* _SYS_PARAM_H */
|