~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/rusagestub.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * rusagestub.h
 
4
 *        Stubs for getrusage(3).
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL: pgsql/src/include/rusagestub.h,v 1.15 2004-12-31 22:03:19 pgsql Exp $
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef RUSAGESTUB_H
 
15
#define RUSAGESTUB_H
 
16
 
 
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 */
 
22
 
 
23
#define RUSAGE_SELF             0
 
24
#define RUSAGE_CHILDREN -1
 
25
 
 
26
struct rusage
 
27
{
 
28
        struct timeval ru_utime;        /* user time used */
 
29
        struct timeval ru_stime;        /* system time used */
 
30
};
 
31
 
 
32
extern int      getrusage(int who, struct rusage * rusage);
 
33
 
 
34
#endif   /* RUSAGESTUB_H */