Home
last modified time | relevance | path

Searched refs:rusage (Results 1 – 5 of 5) sorted by relevance

/haiku/src/libs/bsd/
H A Dwait.c19 pid_t _wait3_base(int *status, int options, struct rusage *rusage);
20 pid_t _wait4_base(pid_t pid, int *status, int options, struct rusage *rusage);
21 pid_t _wait3_current(int *status, int options, struct rusage *rusage);
23 struct rusage *rusage);
27 _wait3_base(int *status, int options, struct rusage *rusage) in _wait3_base() argument
29 return _wait4_base(-1, status, options, rusage); in _wait3_base()
34 _wait4_base(pid_t pid, int *status, int options, struct rusage *rusage) in _wait4_base() argument
38 rusage != NULL ? &info : NULL); in _wait4_base()
39 if (waitPid != -1 && rusage != NULL) { in _wait4_base()
40 rusage->ru_utime.tv_sec = info.user_time / 1000000; in _wait4_base()
[all …]
/haiku/src/system/libroot/posix/sys/
H A Dgetrusage.c16 int _getrusage_base(int who, struct rusage *rusage);
17 int _getrusage_current(int who, struct rusage *rusage);
21 _getrusage_base(int who, struct rusage *rusage) in _getrusage_base() argument
30 rusage->ru_utime.tv_sec = info.user_time / 1000000; in _getrusage_base()
31 rusage->ru_utime.tv_usec = info.user_time % 1000000; in _getrusage_base()
33 rusage->ru_stime.tv_sec = info.kernel_time / 1000000; in _getrusage_base()
34 rusage->ru_stime.tv_usec = info.kernel_time % 1000000; in _getrusage_base()
41 _getrusage_current(int who, struct rusage *rusage) in _getrusage_current() argument
43 int err = _getrusage_base(who, rusage); in _getrusage_current()
45 memset(&rusage->ru_maxrss, 0, sizeof(struct rusage) - in _getrusage_current()
[all …]
/haiku/headers/compatibility/bsd/sys/
H A Dwait.h23 pid_t wait3(int *status, int options, struct rusage *rusage);
25 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage);
/haiku/headers/posix/sys/
H A Dresource.h44 struct rusage { struct
78 extern int getrusage(int who, struct rusage *rusage); argument
/haiku/src/tests/libs/bsd/
H A Dwait4_test.cpp55 struct rusage usage; in main()