xref: /haiku/headers/compatibility/bsd/sys/param.h (revision 95c9effd68127df2dce202d5e254a7c86560010a)
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 
11 
12 #ifdef _BSD_SOURCE
13 
14 
15 #ifndef _ALIGNBYTES
16 #	define _ALIGNBYTES 7
17 #endif
18 #ifndef _ALIGN
19 #	define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
20 #endif
21 
22 #ifndef ALIGNBYTES
23 #	define ALIGNBYTES _ALIGNBYTES
24 #endif
25 #ifndef ALIGN
26 #	define ALIGN(p) _ALIGN(p)
27 #endif
28 
29 #ifndef howmany
30 #	define howmany(x, y) (((x) + ((y) - 1)) / (y))
31 #endif
32 
33 #ifndef MAXLOGNAME
34 #	define MAXLOGNAME 32
35 #endif
36 
37 
38 #endif
39 
40 
41 #endif	/* _BSD_SYS_PARAM_H_ */
42