aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMartin Pelikán <mpel@google.com>2017-01-25 11:53:58 +1100
committerJorge Lucangeli Obes <jorgelo@google.com>2017-02-07 16:16:42 -0500
commitab9eb44bf4d7f17cbeeed4fb7b64f17e7d039f56 (patch)
treeddfc8604b4cb83d1b42967909d9829b1eeb94003 /util.h
parente0c5a7699091c0ff201deffa89d506d0d4e6ec2c (diff)
downloadminijail-ab9eb44bf4d7f17cbeeed4fb7b64f17e7d039f56.tar.gz
allow specifying larger /tmp tmpfs mounts
Extract the size string-parsing and overflow-checking wrapper into util.c. Test: New unit tests. Change-Id: I31ba2f1a77217a2f13cda078e5e6a80104fbcd32 Signed-off-by: Martin Pelikán <mpel@google.com>
Diffstat (limited to 'util.h')
-rw-r--r--util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.h b/util.h
index f019f00..f835f17 100644
--- a/util.h
+++ b/util.h
@@ -58,6 +58,7 @@ int lookup_syscall(const char *name);
const char *lookup_syscall_name(int nr);
long int parse_constant(char *constant_str, char **endptr);
+int parse_size(size_t *size, const char *sizespec);
char *strip(char *s);
char *tokenize(char **stringp, const char *delim);