Merge branch 'master' of ssh://git.onelab.eu/git/sliver-openvswitch
[sliver-openvswitch.git] / include / windows / sys / resource.h
1 /*
2  * Copyright (c) 2014 Nicira, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef SYS_RESOURCE_H
18 #define SYS_RESOURCE_H 1
19
20 struct rusage {
21     struct timeval ru_utime; /* user CPU time used */
22     struct timeval ru_stime; /* system CPU time used */
23     long   ru_maxrss;        /* maximum resident set size */
24     long   ru_ixrss;         /* integral shared memory size */
25     long   ru_idrss;         /* integral unshared data size */
26     long   ru_isrss;         /* integral unshared stack size */
27     long   ru_minflt;        /* page reclaims (soft page faults) */
28     long   ru_majflt;        /* page faults (hard page faults) */
29     long   ru_nswap;         /* swaps */
30     long   ru_inblock;       /* block input operations */
31     long   ru_oublock;       /* block output operations */
32     long   ru_msgsnd;        /* IPC messages sent */
33     long   ru_msgrcv;        /* IPC messages received */
34     long   ru_nsignals;      /* signals received */
35     long   ru_nvcsw;         /* voluntary context switches */
36     long   ru_nivcsw;        /* involuntary context switches */
37 };
38
39 #ifndef RUSAGE_SELF
40 #define RUSAGE_SELF 1
41 #endif
42
43 #ifndef RUSAGE_CHILDREN
44 #define RUSAGE_CHILDREN 2
45 #endif
46
47 #ifndef RUSAGE_THREAD
48 #define RUSAGE_THREAD 3
49 #endif
50
51 #endif /* sys/resource.h */