PostgreSQL Source Code
git master
resource.h
Go to the documentation of this file.
1
/*
2
* Replacement for <sys/resource.h> for Windows.
3
*/
4
#ifndef WIN32_SYS_RESOURCE_H
5
#define WIN32_SYS_RESOURCE_H
6
7
#include <
sys/time.h
>
/* for struct timeval */
8
9
#define RUSAGE_SELF 0
10
#define RUSAGE_CHILDREN (-1)
11
12
struct
rusage
13
{
14
struct
timeval
ru_utime
;
/* user time used */
15
struct
timeval
ru_stime
;
/* system time used */
16
};
17
18
extern
int
getrusage
(
int
who,
struct
rusage
*
rusage
);
19
20
#endif
/* WIN32_SYS_RESOURCE_H */
getrusage
int getrusage(int who, struct rusage *rusage)
Definition:
win32getrusage.c:21
rusage
Definition:
resource.h:13
rusage::ru_utime
struct timeval ru_utime
Definition:
resource.h:14
rusage::ru_stime
struct timeval ru_stime
Definition:
resource.h:15
time.h
src
include
port
win32
sys
resource.h
Generated on Fri Dec 6 2024 12:13:25 for PostgreSQL Source Code by
1.9.1