summaryrefslogtreecommitdiffstats
path: root/src/shared/seccomp-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-01 00:46:06 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-18 23:04:19 +0100
commit22eadc289bd534b723457557b16469a2a81d6be8 (patch)
tree49ca7f8b8a8cea55c264365c9d6c2350249f6502 /src/shared/seccomp-util.h
parentfuzzers: move several fuzzers (diff)
downloadsystemd-22eadc289bd534b723457557b16469a2a81d6be8.tar.xz
systemd-22eadc289bd534b723457557b16469a2a81d6be8.zip
util: move parse_syscall_and_errno() to seccomp-util.c
This makes parse-util.c independent of seccomp-util.c, which is located in src/shared.
Diffstat (limited to 'src/shared/seccomp-util.h')
-rw-r--r--src/shared/seccomp-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/seccomp-util.h b/src/shared/seccomp-util.h
index 53b74bdc34..ee6f7b878b 100644
--- a/src/shared/seccomp-util.h
+++ b/src/shared/seccomp-util.h
@@ -148,3 +148,5 @@ static inline const char *seccomp_errno_or_action_to_string(int num) {
return "kill";
return errno_to_name(num);
}
+
+int parse_syscall_and_errno(const char *in, char **name, int *error);