Files
haiku-beta6/headers/posix/sys/param.h
T

34 lines
656 B
C
Raw Normal View History

2007-09-04 21:36:59 +00:00
/*
* Copyright 2002-2007, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
2002-08-20 10:35:02 +00:00
#ifndef _SYS_PARAM_H
#define _SYS_PARAM_H
2007-09-04 21:36:59 +00:00
2002-08-20 10:35:02 +00:00
#include <limits.h>
2007-09-04 21:36:59 +00:00
2002-08-20 10:35:02 +00:00
#define MAXPATHLEN PATH_MAX
#define MAXSYMLINKS SYMLOOP_MAX
2002-08-20 10:35:02 +00:00
#define NOFILE OPEN_MAX
#ifndef MIN
2007-09-04 21:36:59 +00:00
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef MAX
2007-09-04 21:36:59 +00:00
# define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif
2002-08-20 10:35:02 +00:00
2007-09-04 21:36:59 +00:00
#define _ALIGNBYTES (sizeof(long) - 1)
#define _ALIGN(p) \
(((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
2002-08-20 10:35:02 +00:00
/* maximum possible length of this machine's hostname */
#ifndef MAXHOSTNAMELEN
2007-09-04 21:36:59 +00:00
# define MAXHOSTNAMELEN 256
#endif
2002-08-20 10:35:02 +00:00
#endif /* _SYS_PARAM_H */