2007-09-05 01:36:59 +04:00
|
|
|
/*
|
2012-07-19 22:11:40 +04:00
|
|
|
* Copyright 2002-2012 Haiku, Inc. All Rights Reserved.
|
2007-09-05 01:36:59 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2002-08-20 14:35:02 +04:00
|
|
|
#ifndef _SYS_PARAM_H
|
|
|
|
#define _SYS_PARAM_H
|
2007-09-05 01:36:59 +04:00
|
|
|
|
2002-08-20 14:35:02 +04:00
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
|
2007-09-05 01:36:59 +04:00
|
|
|
|
2002-08-20 14:35:02 +04:00
|
|
|
#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
|
2007-09-05 01:36:59 +04:00
|
|
|
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
|
2002-10-24 00:13:17 +04:00
|
|
|
#endif
|
|
|
|
#ifndef MAX
|
2007-09-05 01:36:59 +04:00
|
|
|
# define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
2002-10-24 00:13:17 +04:00
|
|
|
#endif
|
2002-08-20 14:35:02 +04:00
|
|
|
|
2007-09-05 01:36:59 +04:00
|
|
|
#define _ALIGNBYTES (sizeof(long) - 1)
|
|
|
|
#define _ALIGN(p) \
|
|
|
|
(((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
|
|
|
|
|
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
|
2007-09-05 01:36:59 +04:00
|
|
|
# define MAXHOSTNAMELEN 256
|
2002-10-24 00:13:17 +04:00
|
|
|
#endif
|
2002-08-20 14:35:02 +04:00
|
|
|
|
|
|
|
#endif /* _SYS_PARAM_H */
|