2014-06-22 17:24:40 +05:30
|
|
|
/* 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"
|
|
|
|
|
2014-11-26 19:47:59 +05:30
|
|
|
#if !defined(bb_arg_max)
|
2014-06-22 17:24:40 +05:30
|
|
|
unsigned FAST_FUNC bb_arg_max(void)
|
|
|
|
{
|
|
|
|
return sysconf(_SC_ARG_MAX);
|
|
|
|
}
|
|
|
|
#endif
|
2014-06-22 17:31:13 +05:30
|
|
|
|
|
|
|
/* Return the number of clock ticks per second. */
|
|
|
|
unsigned FAST_FUNC bb_clk_tck(void)
|
|
|
|
{
|
|
|
|
return sysconf(_SC_CLK_TCK);
|
|
|
|
}
|