Fix a few errors in comments. Patch by Fujii Masao, plus the one in
[PostgreSQL.git] / src / include / rusagestub.h
blob865df1116ce453207bbddd8aa43120eda319c9a4
1 /*-------------------------------------------------------------------------
3 * rusagestub.h
4 * Stubs for getrusage(3).
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef RUSAGESTUB_H
15 #define RUSAGESTUB_H
17 #include <sys/time.h> /* for struct timeval */
18 #ifndef WIN32
19 #include <sys/times.h> /* for struct tms */
20 #endif
21 #include <limits.h> /* for CLK_TCK */
23 #define RUSAGE_SELF 0
24 #define RUSAGE_CHILDREN (-1)
26 struct rusage
28 struct timeval ru_utime; /* user time used */
29 struct timeval ru_stime; /* system time used */
32 extern int getrusage(int who, struct rusage * rusage);
34 #endif /* RUSAGESTUB_H */