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 #ifndef _ALIGNBYTES 13 # define _ALIGNBYTES 7 14 #endif 15 #ifndef _ALIGN 16 # define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) 17 #endif 18 19 #ifndef ALIGNBYTES 20 # define ALIGNBYTES _ALIGNBYTES 21 #endif 22 #ifndef ALIGN 23 # define ALIGN(p) _ALIGN(p) 24 #endif 25 26 #ifndef howmany 27 # define howmany(x, y) (((x) + ((y) - 1)) / (y)) 28 #endif 29 30 #ifndef MAXLOGNAME 31 # define MAXLOGNAME 32 32 #endif 33 34 #endif /* _BSD_SYS_PARAM_H_ */ 35