diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-29 14:03:24 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-29 14:03:24 +0000 |
commit | 731c61d3891a754692137a9d0ed1c26fd42be9b8 (patch) | |
tree | 5c698a184a56b35ac1f887a2de8d1cf2e2f6104d /m68k-unknown-amigaos/recipes/patches/clib2 | |
parent | 8968dbd172e394c39eb45dde7785a9b7232b5605 (diff) | |
download | toolchains-731c61d3891a754692137a9d0ed1c26fd42be9b8.tar.gz toolchains-731c61d3891a754692137a9d0ed1c26fd42be9b8.tar.bz2 |
Add getrusage support, and a stub implementation
svn path=/toolchains/; revision=11132
Diffstat (limited to 'm68k-unknown-amigaos/recipes/patches/clib2')
-rw-r--r-- | m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p b/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p new file mode 100644 index 0000000..0c95664 --- /dev/null +++ b/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p @@ -0,0 +1,37 @@ +--- include/sys/resource.h.old 2010-12-29 03:18:01.000000000 +0000 ++++ include/sys/resource.h 2010-12-29 03:20:10.000000000 +0000 +@@ -47,6 +47,10 @@ + #include <sys/types.h> /* For the definition of rlim_t */ + #endif /* _SYS_TYPES_H */ + ++#ifndef _SYS_TIME_H ++#include <sys/time.h> ++#endif ++ + /****************************************************************************/ + + #ifdef __cplusplus +@@ -90,6 +94,23 @@ + + /****************************************************************************/ + ++#define RUSAGE_SELF 0 ++#define RUSAGE_CHILDREN 1 ++ ++/****************************************************************************/ ++ ++struct rusage ++{ ++ struct timeval ru_utime; ++ struct timeval ru_stime; ++}; ++ ++/****************************************************************************/ ++ ++extern int getrusage(int who, struct rusage *usage); ++ ++/****************************************************************************/ ++ + #ifdef __cplusplus + } + #endif /* __cplusplus */ |