haiku/headers/compatibility/bsd/sys/param.h
Axel Dörfler e6b30aee0f Minor improvements for the BSD compatibility library:
* Added {get|set|end}usershell() functions.
* Define MAXLOGNAME, and L_SET, L_INCR, and L_XTND.
* The pidfile stuff in libutil.h is now included, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-02-02 17:38:09 +00:00

35 lines
600 B
C

/*
* Copyright 2006-2008, 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
#ifndef MAXLOGNAME
# define MAXLOGNAME 32
#endif
#endif /* _BSD_SYS_PARAM_H_ */