2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7 #ifndef _BABELTRACE_LIMITS_H
8 #define _BABELTRACE_LIMITS_H
14 #define BABELTRACE_HOST_NAME_MAX HOST_NAME_MAX
16 #elif defined(__FreeBSD__)
18 #include <sys/param.h>
20 #define BABELTRACE_HOST_NAME_MAX MAXHOSTNAMELEN
22 #elif defined(_POSIX_HOST_NAME_MAX)
24 #define BABELTRACE_HOST_NAME_MAX _POSIX_HOST_NAME_MAX
28 #define BABELTRACE_HOST_NAME_MAX 256
30 #endif /* __linux__, __FreeBSD__, _POSIX_HOST_NAME_MAX */
32 /* GNU Hurd has no PATH_MAX, use a sensible default */
37 #endif /* _BABELTRACE_LIMITS_H */
This page took 0.030233 seconds and 5 git commands to generate.