Lines Matching refs:HOST_NAME_MAX
448 #ifndef HOST_NAME_MAX
449 #ifdef BENCHMARK_HAS_SYSCTL // BSD/Mac doesn't have HOST_NAME_MAX defined
450 #define HOST_NAME_MAX 64
452 #define HOST_NAME_MAX 64
454 #define HOST_NAME_MAX 154
456 #define HOST_NAME_MAX 256
458 #define HOST_NAME_MAX MAXHOSTNAMELEN
460 #pragma message("HOST_NAME_MAX not defined. using 64")
461 #define HOST_NAME_MAX 64
463 #endif // def HOST_NAME_MAX
464 char hostname[HOST_NAME_MAX];
465 int retVal = gethostname(hostname, HOST_NAME_MAX);