haiku/headers/compatibility/bsd/sys/param.h
Axel Dörfler 8f813eeb9d More tweaks to the libbsd.so compatibility library:
* added sigsetmask(), and sigblock()
* added ALIGN(), ALIGNBYTES, and howmany() macros


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-13 16:26:43 +00:00

31 lines
545 B
C

/*
* Copyright 2006, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _BSD_SYS_PARAM_H_
#define _BSD_SYS_PARAM_H_
#include_next <sys/param.h>
#ifndef _ALIGNBYTES
# define _ALIGNBYTES 7
#endif
#ifndef _ALIGN
# define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#endif
#ifndef ALIGNBYTES
# define ALIGNBYTES _ALIGNBYTES
#endif
#ifndef ALIGN
# define ALIGN(p) _ALIGN(p)
#endif
#ifndef howmany
# define howmany(x, y) (((x) + ((y) - 1)) / (y))
#endif
#endif /* _BSD_SYS_PARAM_H_ */