diff options
author | Martin Pelikán <mpel@google.com> | 2017-01-25 11:53:58 +1100 |
---|---|---|
committer | Jorge Lucangeli Obes <jorgelo@google.com> | 2017-02-07 16:16:42 -0500 |
commit | ab9eb44bf4d7f17cbeeed4fb7b64f17e7d039f56 (patch) | |
tree | ddfc8604b4cb83d1b42967909d9829b1eeb94003 /util.h | |
parent | e0c5a7699091c0ff201deffa89d506d0d4e6ec2c (diff) | |
download | minijail-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |