summaryrefslogtreecommitdiff
path: root/rlimit.h
diff options
context:
space:
mode:
authortjg <tjg>2001-11-23 16:03:22 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:21 +0100
commitbf61b6f19e8292742ed3dedcf58457ff3607173a (patch)
tree95563a7ca8ee5029efc289755a659bff081b81e4 /rlimit.h
parentc09b7f1b7658ff06291ec6f9360db73b67a6ed82 (diff)
Bug: parselimit() was broken in various ways (thanks Chris
Siebenmann).
Diffstat (limited to 'rlimit.h')
-rw-r--r--rlimit.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/rlimit.h b/rlimit.h
index f3c2e3d..a3dbe8d 100644
--- a/rlimit.h
+++ b/rlimit.h
@@ -39,4 +39,15 @@ typedef long rlim_t;
#define RLIMIT_NOFILE RLIMIT_OFILE
#endif
+struct Suffix {
+ const struct Suffix *next;
+ long amount;
+ char *name;
+};
+
+struct Limit {
+ char *name;
+ int flag;
+ const struct Suffix *suffix;
+};
#endif /* HAVE_SETRLIMIT */