projects
/
fio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
t/zbd: add test case to check zones in closed condition
[fio.git]
/
lib
/
getrusage.c
1
#include <errno.h>
2
#include "getrusage.h"
3
4
int fio_getrusage(struct rusage *ru)
5
{
6
#ifdef CONFIG_RUSAGE_THREAD
7
if (!getrusage(RUSAGE_THREAD, ru))
8
return 0;
9
if (errno != EINVAL)
10
return -1;
11
/* Fall through to RUSAGE_SELF */
12
#endif
13
return getrusage(RUSAGE_SELF, ru);
14
}