10SN/A/* 2239SN/A * Copyright 2006-2010 Haiku Inc. All Rights Reserved. 30SN/A * Distributed under the terms of the MIT License. 40SN/A */ 50SN/A#ifndef _BSD_SYS_PARAM_H_ 60SN/A#define _BSD_SYS_PARAM_H_ 7157SN/A 80SN/A 9157SN/A#include_next <sys/param.h> 100SN/A#include <features.h> 110SN/A 120SN/A 130SN/A#ifdef _DEFAULT_SOURCE 140SN/A 150SN/A 160SN/A#ifndef _ALIGNBYTES 170SN/A# define _ALIGNBYTES 7 180SN/A#endif 190SN/A#ifndef _ALIGN 200SN/A# define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) 21157SN/A#endif 22157SN/A 23157SN/A#ifndef ALIGNBYTES 240SN/A# define ALIGNBYTES _ALIGNBYTES 250SN/A#endif 260SN/A#ifndef ALIGN 270SN/A# define ALIGN(p) _ALIGN(p) 280SN/A#endif 290SN/A 300SN/A#ifndef howmany 310SN/A# define howmany(x, y) (((x) + ((y) - 1)) / (y)) 320SN/A#endif 330SN/A 340SN/A#ifndef MAXLOGNAME 350SN/A# define MAXLOGNAME 32 360SN/A#endif 370SN/A 380SN/A#define NBBY 8 390SN/A 400SN/A#define nitems(x) (sizeof((x)) / sizeof((x)[0])) 410SN/A 420SN/A 430SN/A#endif 440SN/A 450SN/A 460SN/A#endif /* _BSD_SYS_PARAM_H_ */ 470SN/A