xref: /haiku/headers/compatibility/bsd/sys/param.h (revision 830f67ef991407f287dbc1238aa5f5906d90c991)
1 /*
2  * Copyright 2006-2010 Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _BSD_SYS_PARAM_H_
6 #define _BSD_SYS_PARAM_H_
7 
8 
9 #include_next <sys/param.h>
10 #include <features.h>
11 
12 
13 #ifdef _DEFAULT_SOURCE
14 
15 
16 #ifndef _ALIGNBYTES
17 #	define _ALIGNBYTES 7
18 #endif
19 #ifndef _ALIGN
20 #	define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
21 #endif
22 
23 #ifndef ALIGNBYTES
24 #	define ALIGNBYTES _ALIGNBYTES
25 #endif
26 #ifndef ALIGN
27 #	define ALIGN(p) _ALIGN(p)
28 #endif
29 
30 #ifndef howmany
31 #	define howmany(x, y) (((x) + ((y) - 1)) / (y))
32 #endif
33 
34 #ifndef MAXLOGNAME
35 #	define MAXLOGNAME 32
36 #endif
37 
38 #define NBBY 8
39 
40 
41 #endif
42 
43 
44 #endif	/* _BSD_SYS_PARAM_H_ */
45