~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to getrusage/resource.h

  • Committer: ktietz70
  • Date: 2009-04-26 13:36:56 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:822
Add future feature getrusage. Not sure if we should really support it, as it provides a half
resource.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * resource.h
 
3
 * This file has no copyright assigned and is placed in the Public Domain.
 
4
 * This file is a part of the mingw-runtime package.
 
5
 * No warranty is given; refer to the file DISCLAIMER within the package.
 
6
 *
 
7
 * Based on:
 
8
 * http://www.opengroup.org/onlinepubs/000095399/basedefs/sys/resource.h.html
 
9
 */
 
10
 
 
11
#ifndef _RESOURCE_H_
 
12
#define _RESOURCE_H_
 
13
 
 
14
#include <sys/time.h>
 
15
 
 
16
#define RUSAGE_SELF     (1<<0)
 
17
#define RUSAGE_CHILDREN (1<<1)
 
18
 
 
19
struct rusage {
 
20
    struct timeval ru_utime; ///< User time used.
 
21
    struct timeval ru_stime; ///< System time used.
 
22
};
 
23
 
 
24
int getrusage(int who, struct rusage *r_usage);
 
25
 
 
26
#endif /* Not _RESOURCE_H_ */
 
27