Changeset View
Changeset View
Standalone View
Standalone View
include/limits.h
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
#define NL_ARGMAX 65536 /* max # of position args for printf */ | #define NL_ARGMAX 65536 /* max # of position args for printf */ | ||||
#define NL_MSGMAX 32767 | #define NL_MSGMAX 32767 | ||||
#define NL_SETMAX 255 | #define NL_SETMAX 255 | ||||
#define NL_TEXTMAX 2048 | #define NL_TEXTMAX 2048 | ||||
#endif | #endif | ||||
#if __XSI_VISIBLE | #if __XSI_VISIBLE | ||||
#define _XOPEN_IOV_MAX 16 | #define _XOPEN_IOV_MAX 16 | ||||
#define _XOPEN_NAME_MAX 255 | #define _XOPEN_NAME_MAX 1023 | ||||
#define _XOPEN_PATH_MAX 1024 | #define _XOPEN_PATH_MAX 4096 | ||||
ed: These should not be modified. POSIX requires them to be exactly 255/1024.
http://pubs. | |||||
Not Done Inline ActionsOk. I think this change was solely to support this test code, which (mis)uses _XOPEN_PATH_MAX in place of PATH_MAX: https://svnweb.freebsd.org/base?view=revision&revision=318210 cem: Ok. I think this change was solely to support this test code, which (mis)uses _XOPEN_PATH_MAX… | |||||
Not Done Inline Actionsmaybe ngie (who works for Isilon) can weigh in on this? julian: maybe ngie (who works for Isilon) can weigh in on this? | |||||
Not Done Inline ActionsNgie has moved on to another employer. cem: Ngie has moved on to another employer. | |||||
#define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */ | #define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */ | ||||
#define NL_LANGMAX 31 /* max LANG name length */ | #define NL_LANGMAX 31 /* max LANG name length */ | ||||
#define NL_NMAX 1 | #define NL_NMAX 1 | ||||
#endif | #endif | ||||
#define MB_LEN_MAX 6 /* 31-bit UTF-8 */ | #define MB_LEN_MAX 6 /* 31-bit UTF-8 */ | ||||
#include <sys/limits.h> | #include <sys/limits.h> | ||||
#if __POSIX_VISIBLE | #if __POSIX_VISIBLE | ||||
#include <sys/syslimits.h> | #include <sys/syslimits.h> | ||||
#endif | #endif | ||||
#endif /* !_LIMITS_H_ */ | #endif /* !_LIMITS_H_ */ |
These should not be modified. POSIX requires them to be exactly 255/1024.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html