summaryrefslogtreecommitdiff
path: root/rlimit.h
diff options
context:
space:
mode:
authortim <tim>1997-05-14 15:30:41 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:00 +0100
commit53cf1b1c1c3f0c2b5067afccc2976b99a574a089 (patch)
treea31f167c3779362e29ab377d662052b6257253a8 /rlimit.h
parentb87bfedf65c289bf0ee5338c9e10492b70b1e8e0 (diff)
Initial revision
Diffstat (limited to 'rlimit.h')
-rw-r--r--rlimit.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/rlimit.h b/rlimit.h
deleted file mode 100644
index f6e179b..0000000
--- a/rlimit.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* What a mess. This file attempts to straighten everything out. */
-
-#if HAVE_SETRLIMIT
-
-#if HAVE_SYS_RESOURCE_H
-# include <sys/time.h>
-# if RLIMIT_NEEDS_KERNEL
-# define _KERNEL
-# endif
-# include <sys/resource.h>
-# if RLIMIT_NEEDS_KERNEL
-# undef _KERNEL
-# endif
-#else
-# include <sys/times.h>
-#endif
-
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
-#ifndef HAVE_RLIM_T
-# if RLIM_T_IS_QUAD_T
-typedef quad_t rlim_t;
-# else
-typedef long rlim_t;
-# endif
-#endif
-
-#if HAVE_QUAD_T
-# define RLIM_CONV quad_t
-# define RLIM_FMT "%s \t%qd%s\n"
-#else
-# define RLIM_CONV long
-# define RLIM_FMT "%s \t%ld%s\n"
-#endif
-
-#if defined(RLIMIT_OFILE) && !defined (RLIMIT_NOFILE)
-# define RLIMIT_NOFILE RLIMIT_OFILE
-#endif
-
-#endif /* HAVE_SETRLIMIT */