01dc1ea4cf
Change-Id: I56b677b382d17a27d243b615de19bec10f3a2810 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7426 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
47 lines
721 B
C
47 lines
721 B
C
/*
|
|
* Copyright 2006-2010 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>
|
|
#include <features.h>
|
|
|
|
|
|
#ifdef _DEFAULT_SOURCE
|
|
|
|
|
|
#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
|
|
|
|
#ifndef MAXLOGNAME
|
|
# define MAXLOGNAME 32
|
|
#endif
|
|
|
|
#define NBBY 8
|
|
|
|
#define nitems(x) (sizeof((x)) / sizeof((x)[0]))
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _BSD_SYS_PARAM_H_ */
|