diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2015-05-20 16:15:11 +0200 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2015-05-20 16:15:11 +0200 |
commit | 958d9505aa8ba19f7f17d0364227d9a1d87ed18f (patch) | |
tree | 440a247ba545ba36d41106a7b542baa198f035f3 /win32 | |
parent | e634f07f1ebf68ccb8284fd83d58eadb77b32ae3 (diff) | |
download | php-git-958d9505aa8ba19f7f17d0364227d9a1d87ed18f.tar.gz |
long > zend_long (Thanks Anatol)
Diffstat (limited to 'win32')
-rw-r--r-- | win32/getrusage.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/win32/getrusage.h b/win32/getrusage.h index dd58d6e8db..5df67acf6f 100644 --- a/win32/getrusage.h +++ b/win32/getrusage.h @@ -19,10 +19,11 @@ #ifndef HAVE_GETRUSAGE_H # define HAVE_GETRUSAGE_H -/* Note, +/* + * Note * * RUSAGE_CHILDREN is not implemented, and the RUSAGE_THREAD will - * instead be used instead. + * therefore instead be used instead to emulate the behavior. */ # define RUSAGE_SELF 0 @@ -67,46 +68,46 @@ struct rusage struct timeval ru_stime; /* Integral max resident set size */ - long ru_maxrss; + zend_long ru_maxrss; /* Integral shared text memory size */ - long ru_ixrss; + zend_long ru_ixrss; /* Integral unshared data size */ - long ru_idrss; + zend_long ru_idrss; /* Integral unshared stack size */ - long ru_isrss; + zend_long ru_isrss; /* Page reclaims */ - long ru_minflt; + zend_long ru_minflt; /* Page faults */ - long ru_majflt; + zend_long ru_majflt; /* Swaps */ - long ru_nswap; + zend_long ru_nswap; /* Block input operations */ - long ru_inblock; + zend_long ru_inblock; /* Block output operations */ - long ru_oublock; + zend_long ru_oublock; /* Messages sent */ - long ru_msgsnd; + zend_long ru_msgsnd; /* Messages received */ - long ru_msgrcv; + zend_long ru_msgrcv; /* Signals received */ - long ru_nsignals; + zend_long ru_nsignals; /* Voluntary context switches */ - long ru_nvcsw; + zend_long ru_nvcsw; /* Involuntary context switches */ - long ru_nivcsw; + zend_long ru_nivcsw; }; PHPAPI int getrusage(int who, struct rusage *usage); |