xref: /haiku/headers/posix/sys/param.h (revision 8bacd281ba5156920f4b8cfa1da7520122beab78)
15e1d6fb2SAxel Dörfler /*
2*8bacd281SAugustin Cavalier  * Copyright 2002-2024, Haiku, Inc. All rights reserved.
35e1d6fb2SAxel Dörfler  * Distributed under the terms of the MIT License.
45e1d6fb2SAxel Dörfler  */
583a74a6bSAxel Dörfler #ifndef _SYS_PARAM_H
683a74a6bSAxel Dörfler #define _SYS_PARAM_H
75e1d6fb2SAxel Dörfler 
883a74a6bSAxel Dörfler 
983a74a6bSAxel Dörfler #include <limits.h>
1083a74a6bSAxel Dörfler 
115e1d6fb2SAxel Dörfler 
12*8bacd281SAugustin Cavalier #define MAXHOSTNAMELEN	(256)		/* maximum possible length of this machine's hostname */
13*8bacd281SAugustin Cavalier 
1483a74a6bSAxel Dörfler #define MAXPATHLEN      PATH_MAX
157b3d36e5SAxel Dörfler #define MAXSYMLINKS		SYMLOOP_MAX
1683a74a6bSAxel Dörfler #define NOFILE          OPEN_MAX
1783a74a6bSAxel Dörfler 
18*8bacd281SAugustin Cavalier 
199fc71646Sbeveloper #ifndef MIN
2083a74a6bSAxel Dörfler #	define MIN(a,b) (((a) < (b)) ? (a) : (b))
219fc71646Sbeveloper #endif
229fc71646Sbeveloper #ifndef MAX
2383a74a6bSAxel Dörfler #	define MAX(a,b) (((a) > (b)) ? (a) : (b))
249fc71646Sbeveloper #endif
2583a74a6bSAxel Dörfler 
265e1d6fb2SAxel Dörfler #define _ALIGNBYTES	(sizeof(long) - 1)
27*8bacd281SAugustin Cavalier #define _ALIGN(p)	(((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
285e1d6fb2SAxel Dörfler 
2983a74a6bSAxel Dörfler 
3083a74a6bSAxel Dörfler #endif	/* _SYS_PARAM_H */
31