aboutsummaryrefslogtreecommitdiff
path: root/libbb/sysconf.c
blob: cfad9cdc08a0aaa4ede4ec6a8b0ad8bab144abe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* vi: set sw=4 ts=4: */
/*
 * Various system configuration helpers.
 *
 * Copyright (C) 2014 Bartosz Golaszewski <bartekgola@gmail.com>
 *
 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
 */
#include "libbb.h"

#if !defined(bb_arg_max)
unsigned FAST_FUNC bb_arg_max(void)
{
	return sysconf(_SC_ARG_MAX);
}
#endif

/* Return the number of clock ticks per second. */
unsigned FAST_FUNC bb_clk_tck(void)
{
	return sysconf(_SC_CLK_TCK);
}