File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change 19
19
#ifndef HAVE_GETRUSAGE_H
20
20
# define HAVE_GETRUSAGE_H
21
21
22
- /* Note,
22
+ /*
23
+ * Note
23
24
*
24
25
* RUSAGE_CHILDREN is not implemented, and the RUSAGE_THREAD will
25
- * instead be used instead.
26
+ * therefore instead be used instead to emulate the behavior .
26
27
*/
27
28
28
29
# define RUSAGE_SELF 0
@@ -67,46 +68,46 @@ struct rusage
67
68
struct timeval ru_stime ;
68
69
69
70
/* Integral max resident set size */
70
- long ru_maxrss ;
71
+ zend_long ru_maxrss ;
71
72
72
73
/* Integral shared text memory size */
73
- long ru_ixrss ;
74
+ zend_long ru_ixrss ;
74
75
75
76
/* Integral unshared data size */
76
- long ru_idrss ;
77
+ zend_long ru_idrss ;
77
78
78
79
/* Integral unshared stack size */
79
- long ru_isrss ;
80
+ zend_long ru_isrss ;
80
81
81
82
/* Page reclaims */
82
- long ru_minflt ;
83
+ zend_long ru_minflt ;
83
84
84
85
/* Page faults */
85
- long ru_majflt ;
86
+ zend_long ru_majflt ;
86
87
87
88
/* Swaps */
88
- long ru_nswap ;
89
+ zend_long ru_nswap ;
89
90
90
91
/* Block input operations */
91
- long ru_inblock ;
92
+ zend_long ru_inblock ;
92
93
93
94
/* Block output operations */
94
- long ru_oublock ;
95
+ zend_long ru_oublock ;
95
96
96
97
/* Messages sent */
97
- long ru_msgsnd ;
98
+ zend_long ru_msgsnd ;
98
99
99
100
/* Messages received */
100
- long ru_msgrcv ;
101
+ zend_long ru_msgrcv ;
101
102
102
103
/* Signals received */
103
- long ru_nsignals ;
104
+ zend_long ru_nsignals ;
104
105
105
106
/* Voluntary context switches */
106
- long ru_nvcsw ;
107
+ zend_long ru_nvcsw ;
107
108
108
109
/* Involuntary context switches */
109
- long ru_nivcsw ;
110
+ zend_long ru_nivcsw ;
110
111
};
111
112
112
113
PHPAPI int getrusage (int who , struct rusage * usage );
You can’t perform that action at this time.
0 commit comments