blob: 9bb4552fb66c76aa8907afe9c7f2610971c85126 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef _SYS_PARAM_H
#define _SYS_PARAM_H
#include <endian.h>
#include <limits.h>
#define NBBY CHAR_BIT
#define NGROUPS NGROUPS_MAX
// Report the same value as Linux here.
#define MAXNAMLEN 255
#define MAXPATHLEN 4096
#define HOST_NAME_MAX 64
#define MAXSYMLINKS 20
#define MAXHOSTNAMELEN HOST_NAME_MAX
#ifdef __cplusplus
extern "C" {
#endif
#undef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#undef MAX
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#define howmany(x, y) (((x) + ((y) - 1)) / (y))
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
#ifdef __cplusplus
}
#endif
#endif // _SYS_PARAM_H
|