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
|
2006-06-21 17:49:16 +04:00
|
|
|
#define MAXSYMLINKS SYMLOOP_MAX
|
2002-08-20 14:35:02 +04:00
|
|
|
|
|
|
|
#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 */
|