summaryrefslogtreecommitdiff
path: root/resource.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-02-25 02:24:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-02-25 02:24:03 +0100
commited720fda5d515f1359fcd3242223e553d1216789 (patch)
treedf52110c250932724fe0fae65e9eeda96a710580 /resource.c
parentd2a660f534d98169f60d50706cbb2ec15fa13cf8 (diff)
downloadstrace-ed720fda5d515f1359fcd3242223e553d1216789.tar.gz
strace-ed720fda5d515f1359fcd3242223e553d1216789.tar.bz2
strace-ed720fda5d515f1359fcd3242223e553d1216789.tar.xz
Automated removal of non-Linux code
This change is generated by running every source through the following command: unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'resource.c')
-rw-r--r--resource.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/resource.c b/resource.c
index f83ced0..b340ccd 100644
--- a/resource.c
+++ b/resource.c
@@ -33,14 +33,8 @@
#include "defs.h"
#include <sys/resource.h>
-#ifdef LINUX
#include <sys/times.h>
#include <linux/kernel.h>
-#endif /* LINUX */
-#if defined(SVR4) || defined(FREEBSD)
-#include <sys/times.h>
-#include <sys/time.h>
-#endif
#if HAVE_LONG_LONG_RLIM_T
/*
@@ -255,7 +249,6 @@ sys_setrlimit64(struct tcb *tcp)
}
#endif /* _LFS64_LARGEFILES || HAVE_LONG_LONG_RLIM_T */
-#ifndef SVR4
static const struct xlat usagewho[] = {
{ RUSAGE_SELF, "RUSAGE_SELF" },
@@ -385,9 +378,7 @@ sys_osf_getrusage(struct tcb *tcp)
}
#endif /* ALPHA */
-#endif /* !SVR4 */
-#ifdef LINUX
int
sys_sysinfo(struct tcb *tcp)
@@ -415,7 +406,6 @@ sys_sysinfo(struct tcb *tcp)
return 0;
}
-#endif /* LINUX */
static const struct xlat priorities[] = {
{ PRIO_PROCESS, "PRIO_PROCESS" },
@@ -452,7 +442,6 @@ sys_nice(struct tcb *tcp)
return 0;
}
-#ifndef SUNOS4
int
sys_times(struct tcb *tcp)
@@ -476,4 +465,3 @@ sys_times(struct tcb *tcp)
return 0;
}
-#endif /* !SUNOS4 */