diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-01-23 14:15:33 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-08-05 23:42:40 +0200 |
commit | 18af37f89cda98ba12521cbf0dd15e4537402134 (patch) | |
tree | 538e8a597e752ba3f7151844e0eca1cf563e1577 /include/sys | |
parent | 8faa445d364dda147146e2036f6460a5347736f0 (diff) |
sysconf: implement _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN
perusing the config parser
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/sysinfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h index 489f56b3b..508e4e308 100644 --- a/include/sys/sysinfo.h +++ b/include/sys/sysinfo.h @@ -48,14 +48,14 @@ __BEGIN_DECLS /* Returns information on overall system statistics. */ extern int sysinfo (struct sysinfo *__info) __THROW; -#if 0 /* Return number of configured processors. */ -extern int get_nprocs_conf (void) __THROW; +#define get_nprocs_conf() (sysconf(_SC_NPROCESSORS_CONF)) /* Return number of available processors. */ -extern int get_nprocs (void) __THROW; +#define get_nprocs() (sysconf(_SC_NPROCESSORS_ONLN)) +#if 0 /* Return number of physical pages of memory in the system. */ extern long int get_phys_pages (void) __THROW; |