8f813eeb9d
* 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
31 lines
545 B
C
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_ */
|