mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 05:11:14 +02:00
5c25d60244
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
33 lines
832 B
C
33 lines
832 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* rusagestub.h
|
|
* Stubs for getrusage(3).
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: rusagestub.h,v 1.5 2000/01/26 05:57:46 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef RUSAGESTUB_H
|
|
#define RUSAGESTUB_H
|
|
|
|
#include <sys/time.h> /* for struct timeval */
|
|
#include <sys/times.h> /* for struct tms */
|
|
#include <limits.h> /* for CLK_TCK */
|
|
|
|
#define RUSAGE_SELF 0
|
|
#define RUSAGE_CHILDREN -1
|
|
|
|
struct rusage
|
|
{
|
|
struct timeval ru_utime; /* user time used */
|
|
struct timeval ru_stime; /* system time used */
|
|
};
|
|
|
|
extern int getrusage(int who, struct rusage * rusage);
|
|
|
|
#endif /* RUSAGESTUB_H */
|