提交 2b42c8cb 编写于 作者: R Rich Felker

add legacy functions from sysinfo.h duplicating sysconf functionality

上级 380857bf
#include <sys/sysinfo.h>
#include <unistd.h>
int get_nprocs_conf()
{
return sysconf(_SC_NPROCESSORS_CONF);
}
int get_nprocs()
{
return sysconf(_SC_NPROCESSORS_ONLN);
}
long get_phys_pages()
{
return sysconf(_SC_PHYS_PAGES);
}
long get_avphys_pages()
{
return sysconf(_SC_AVPHYS_PAGES);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册