X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fconstant.h;h=1d35652f753d61fe38e3cf46ed58022a3bf84b3f;hb=6ecf04f64d17fedf74ea881a4284edcfee87ec97;hp=d3bc8f4a594c2130fc32d87df17240daca0d9427;hpb=9cf3eb20220bf3ecfb0d9e4946105e7ea8cb3bf3;p=lttng-tools.git diff --git a/include/lttng/constant.h b/include/lttng/constant.h index d3bc8f4a5..1d35652f7 100644 --- a/include/lttng/constant.h +++ b/include/lttng/constant.h @@ -20,8 +20,8 @@ #ifndef LTTNG_DEPRECATED #if defined (__GNUC__) \ - && ((__GNUC_MAJOR__ == 4) && (__GNUC_MINOR__ >= 5) \ - || __GNUC_MAJOR__ >= 5) + && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5) \ + || __GNUC__ >= 5) #define LTTNG_DEPRECATED(msg) __attribute__((deprecated(msg))) #else #define LTTNG_DEPRECATED(msg) __attribute__((deprecated)) @@ -56,6 +56,15 @@ #define LTTNG_NAME_MAX 255 -#define LTTNG_HOST_NAME_MAX 64 +/* + * POSIX guarantees that a host name will not exceed 255 characters. + * Moreover, RFC 1035 limits the length of a fully qualified domain name (FQDN) + * to 255 characters. + * + * 256 is used to include a trailing NULL character. + */ +#define LTTNG_HOST_NAME_MAX 256 + +#define LTTNG_PATH_MAX 4096 #endif /* LTTNG_CONSTANT_H */