com php-src: long > zend_long (Thanks Anatol): wi n32/getrusage.h
| From: | Kalle Sommer Nielsen | Date: | Wed, 20 May 2015 14:15:11 +0000 |
| Subject: | com php-src: long > zend_long (Thanks Anatol): wi n32/getrusage.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86821@lists.php.net to get a copy of this message | ||
Commit: 958d9505aa8ba19f7f17d0364227d9a1d87ed18f
Author: Kalle Sommer Nielsen <kalle@php.net> Wed, 20 May 2015 16:15:11 +0200
Parents: e634f07f1ebf68ccb8284fd83d58eadb77b32ae3
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=958d9505aa8ba19f7f17d0364227d9a1d87ed18f
Log:
long > zend_long (Thanks Anatol)
Changed paths:
M win32/getrusage.h
Diff:
diff --git a/win32/getrusage.h b/win32/getrusage.h
index dd58d6e..5df67ac 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);