From 0f36ff5075fbfbd8f98dbb444e32549f9e6b9400 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Tue, 15 May 2007 16:20:55 +0000 Subject: [PATCH] making 'adjust_lim' global function --- lib/planetlab.c | 2 +- lib/planetlab.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/planetlab.c b/lib/planetlab.c index e8d8120..90a97ea 100644 --- a/lib/planetlab.c +++ b/lib/planetlab.c @@ -303,7 +303,7 @@ pl_get_limits(char *context, struct sliver_resources *slr) free(conf); } -static inline int +int adjust_lim(struct vc_rlimit *vcr, struct rlimit *lim) { int adjusted = 0; diff --git a/lib/planetlab.h b/lib/planetlab.h index 7a232db..ed248a2 100644 --- a/lib/planetlab.h +++ b/lib/planetlab.h @@ -46,6 +46,8 @@ struct sliver_resources { unsigned long long vs_whitelisted; }; +int adjust_lim(struct vc_rlimit *vcr, struct rlimit *lim); + int pl_chcontext(xid_t ctx, uint32_t flags, uint64_t bcaps, struct sliver_resources *slr); -- 2.43.0