Cygwin: Add new APIs tc[gs]etwinsize()
[newlib-cygwin.git] / newlib / libc / include / sys / resource.h
blobe653d08ee0f3057028cd303edacbae53f18c28f7
1 #ifndef _SYS_RESOURCE_H_
2 #define _SYS_RESOURCE_H_
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <sys/time.h>
10 #define RUSAGE_SELF 0 /* calling process */
11 #define RUSAGE_CHILDREN -1 /* terminated child processes */
12 #if __GNU_VISIBLE
13 #define RUSAGE_THREAD 1
14 #endif
16 struct rusage {
17 struct timeval ru_utime; /* user time used */
18 struct timeval ru_stime; /* system time used */
21 int getrusage (int, struct rusage*);
23 #ifdef __cplusplus
25 #endif
26 #endif /* !_SYS_RESOURCE_H_ */