xref: /haiku/headers/posix/sys/param.h (revision fc7456e9b1ec38c941134ed6d01c438cf289381e)
1 /*
2  * Copyright 2002-2024, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _SYS_PARAM_H
6 #define _SYS_PARAM_H
7 
8 
9 #include <limits.h>
10 
11 
12 #define MAXHOSTNAMELEN	(256)		/* maximum possible length of this machine's hostname */
13 
14 #define MAXPATHLEN      PATH_MAX
15 #define MAXSYMLINKS		SYMLOOP_MAX
16 #define NOFILE          OPEN_MAX
17 
18 
19 #ifndef MIN
20 #	define MIN(a,b) (((a) < (b)) ? (a) : (b))
21 #endif
22 #ifndef MAX
23 #	define MAX(a,b) (((a) > (b)) ? (a) : (b))
24 #endif
25 
26 #define _ALIGNBYTES	(sizeof(long) - 1)
27 #define _ALIGN(p)	(((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
28 
29 
30 #endif	/* _SYS_PARAM_H */
31