summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e23f564)
raw | patch | inline | side by side (parent: e23f564)
author | Yongqin Liu <yongqin.liu@linaro.org> | |
Wed, 29 Oct 2014 06:47:47 +0000 (14:47 +0800) | ||
committer | Yongqin Liu <yongqin.liu@linaro.org> | |
Thu, 30 Oct 2014 02:59:24 +0000 (10:59 +0800) |
according to the rules defined here:
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
add the definition for HOST_NAME_MAX to limits.h file,
and set the default value to _POSIX_HOST_NAME_MAX as 255
Change-Id: Iddd5c6c569f4e0a14994c7a7c54985f3e7809fc4
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
add the definition for HOST_NAME_MAX to limits.h file,
and set the default value to _POSIX_HOST_NAME_MAX as 255
Change-Id: Iddd5c6c569f4e0a14994c7a7c54985f3e7809fc4
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
libc/include/limits.h | patch | blob | history | |
libc/include/machine/posix_limits.h | patch | blob | history |
diff --git a/libc/include/limits.h b/libc/include/limits.h
index 69df082ed5f1af17a14327590c34e3c9fc51c239..6ae629be71f76589de08349de6843e45dbc25d2b 100644 (file)
--- a/libc/include/limits.h
+++ b/libc/include/limits.h
/* POSIX says these belong in <unistd.h> but BSD has some in <limits.h>. */
#include <machine/posix_limits.h>
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
#endif /* !_LIMITS_H_ */
index f906e3b0c13b21006c59b42b4d168bd61d71e6d5..f092731229bfac09681d515844b43faf43eb7e32 100644 (file)
#define _POSIX_CHOWN_RESTRICTED 1 /* yes, chown requires appropriate privileges */
#define _POSIX_FSYNC 1 /* fdatasync() supported */
#define _POSIX_JOB_CONTROL 1 /* job control is a Linux feature */
+#define _POSIX_HOST_NAME_MAX 255
#define _POSIX_LINK_MAX 8
#define _POSIX_LOGIN_NAME_MAX 9 /* includes trailing NUL */
#define _POSIX_MAPPED_FILES 1 /* mmap-ed files supported */