123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- #ifndef HAVE_GETRUSAGE_H
- # define HAVE_GETRUSAGE_H
- # define RUSAGE_SELF 0
- # define RUSAGE_CHILDREN 1
- # define RUSAGE_THREAD RUSAGE_CHILDREN
- struct rusage
- {
-
- struct timeval ru_utime;
-
- struct timeval ru_stime;
-
- zend_long ru_maxrss;
-
- zend_long ru_majflt;
- #if 0
-
- zend_long ru_ixrss;
-
- zend_long ru_idrss;
-
- zend_long ru_isrss;
-
- zend_long ru_minflt;
-
- zend_long ru_nswap;
-
- zend_long ru_inblock;
-
- zend_long ru_oublock;
-
- zend_long ru_msgsnd;
-
- zend_long ru_msgrcv;
-
- zend_long ru_nsignals;
-
- zend_long ru_nvcsw;
-
- zend_long ru_nivcsw;
- #endif
- };
- PHPAPI int getrusage(int who, struct rusage *usage);
- #endif
|