source: azure_iot_hub/trunk/musl-1.1.18/src/conf/legacy.c@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-csrc
File size: 298 bytes
Line 
1#include <sys/sysinfo.h>
2#include <unistd.h>
3
4int get_nprocs_conf()
5{
6 return sysconf(_SC_NPROCESSORS_CONF);
7}
8
9int get_nprocs()
10{
11 return sysconf(_SC_NPROCESSORS_ONLN);
12}
13
14long get_phys_pages()
15{
16 return sysconf(_SC_PHYS_PAGES);
17}
18
19long get_avphys_pages()
20{
21 return sysconf(_SC_AVPHYS_PAGES);
22}
Note: See TracBrowser for help on using the repository browser.