repo.or.cz
/
netsniff-ng.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
keypair: Add routines to generate and verify a keypair
[netsniff-ng.git]
/
cpus.h
blob
d672daa48f0ffe1e60e3d59d26ecfeb388bbbbff
1
#ifndef CPUS_H
2
#define CPUS_H
3
4
#include <unistd.h>
5
6
static
inline
int
get_number_cpus
(
void
)
7
{
8
return
sysconf
(
_SC_NPROCESSORS_CONF
);
9
}
10
11
static
inline
int
get_number_cpus_online
(
void
)
12
{
13
return
sysconf
(
_SC_NPROCESSORS_ONLN
);
14
}
15
16
#endif
/* CPUS_H */