Skip to content

Commit 958d950

Browse files
committed
long > zend_long (Thanks Anatol)
1 parent e634f07 commit 958d950

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

win32/getrusage.h

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
#ifndef HAVE_GETRUSAGE_H
2020
# define HAVE_GETRUSAGE_H
2121

22-
/* Note,
22+
/*
23+
* Note
2324
*
2425
* 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.
2627
*/
2728

2829
# define RUSAGE_SELF 0
@@ -67,46 +68,46 @@ struct rusage
6768
struct timeval ru_stime;
6869

6970
/* Integral max resident set size */
70-
long ru_maxrss;
71+
zend_long ru_maxrss;
7172

7273
/* Integral shared text memory size */
73-
long ru_ixrss;
74+
zend_long ru_ixrss;
7475

7576
/* Integral unshared data size */
76-
long ru_idrss;
77+
zend_long ru_idrss;
7778

7879
/* Integral unshared stack size */
79-
long ru_isrss;
80+
zend_long ru_isrss;
8081

8182
/* Page reclaims */
82-
long ru_minflt;
83+
zend_long ru_minflt;
8384

8485
/* Page faults */
85-
long ru_majflt;
86+
zend_long ru_majflt;
8687

8788
/* Swaps */
88-
long ru_nswap;
89+
zend_long ru_nswap;
8990

9091
/* Block input operations */
91-
long ru_inblock;
92+
zend_long ru_inblock;
9293

9394
/* Block output operations */
94-
long ru_oublock;
95+
zend_long ru_oublock;
9596

9697
/* Messages sent */
97-
long ru_msgsnd;
98+
zend_long ru_msgsnd;
9899

99100
/* Messages received */
100-
long ru_msgrcv;
101+
zend_long ru_msgrcv;
101102

102103
/* Signals received */
103-
long ru_nsignals;
104+
zend_long ru_nsignals;
104105

105106
/* Voluntary context switches */
106-
long ru_nvcsw;
107+
zend_long ru_nvcsw;
107108

108109
/* Involuntary context switches */
109-
long ru_nivcsw;
110+
zend_long ru_nivcsw;
110111
};
111112

112113
PHPAPI int getrusage(int who, struct rusage *usage);

0 commit comments

Comments
 (0)