VSF Documented
limits.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_LIMITS_H__
2#define __VSF_LINUX_LIMITS_H__
3
4#include <linux/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#ifndef PATH_MAX
11# define PATH_MAX 260
12#endif
13
14#ifndef HOST_NAME_MAX
15# define HOST_NAME_MAX 64
16#endif
17
18#define NAME_MAX 255
19#define PHYS_ADDR_MAX (~(phys_addr_t)0)
20#ifndef PIPE_BUF
21# define PIPE_BUF 4096
22#endif
23
24#define U8_MAX ((u8)~0U)
25#define S8_MAX ((s8)(U8_MAX >> 1))
26#define S8_MIN ((s8)(-S8_MAX - 1))
27#define U16_MAX ((u16)~0U)
28#define S16_MAX ((s16)(U16_MAX >> 1))
29#define S16_MIN ((s16)(-S16_MAX - 1))
30#define U32_MAX ((u32)~0U)
31#define U32_MIN ((u32)0)
32#define S32_MAX ((s32)(U32_MAX >> 1))
33#define S32_MIN ((s32)(-S32_MAX - 1))
34#define U64_MAX ((u64)~0ULL)
35#define S64_MAX ((s64)(U64_MAX >> 1))
36#define S64_MIN ((s64)(-S64_MAX - 1))
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif