#define _GNU_SOURCE
#endif
-#include <unistd.h>
+#include <common/error.hpp>
+#include <common/pipe.hpp>
+
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
-
-#include <common/pipe.hpp>
-#include <common/error.hpp>
+#include <unistd.h>
int lttng_opt_verbose;
int lttng_opt_mi;
int lttng_opt_quiet;
+namespace {
#ifdef __linux__
/*
* Return the default pipe buffer size or a negative error.
*/
-static
-int get_pipe_size(void)
+int get_pipe_size()
{
int ret;
/*
return ret;
}
#elif defined(__FreeBSD__)
-static
int get_pipe_size(void)
{
return 65536;
#else
#error "Implement get_pipe_size() for your platform."
#endif
+} /* namespace */
-int main(void)
+int main()
{
int ret;
return EXIT_FAILURE;
}
- /* Print the pipe buffer size to stdout */
+ /* Print the pipe buffer size to stdout. */
printf("%d\n", ret);
- return EXIT_SUCCESS;
+ return EXIT_SUCCESS;
}