Home
last modified time | relevance | path

Searched refs:parse_syscall_and_errno (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/test/
Dtest-seccomp.c49 TEST(parse_syscall_and_errno) { in TEST() argument
53 assert_se(parse_syscall_and_errno("uname:EILSEQ", &n, &e) >= 0); in TEST()
58 assert_se(parse_syscall_and_errno("uname:EINVAL", &n, &e) >= 0); in TEST()
63 assert_se(parse_syscall_and_errno("@sync:4095", &n, &e) >= 0); in TEST()
69 assert_se(parse_syscall_and_errno("mount", &n, &e) >= 0); in TEST()
75 assert_se(parse_syscall_and_errno("hoge:255", &n, &e) >= 0); in TEST()
81 assert_se(parse_syscall_and_errno("hoge:0", &n, &e) >= 0); in TEST()
86 assert_se(parse_syscall_and_errno("hoge:kill", &n, &e) >= 0); in TEST()
92 assert_se(parse_syscall_and_errno("", &n, &e) == -EINVAL); in TEST()
93 assert_se(parse_syscall_and_errno(":255", &n, &e) == -EINVAL); in TEST()
[all …]
/systemd-251/src/shared/
Dseccomp-util.h154 int parse_syscall_and_errno(const char *in, char **name, int *error);
Dseccomp-util.c2187 int parse_syscall_and_errno(const char *in, char **name, int *error) { in parse_syscall_and_errno() function
/systemd-251/src/core/
Ddbus-execute.c2448 r = parse_syscall_and_errno(*s, &n, &e); in bus_exec_context_set_transient_property()
Dload-fragment.c3372 r = parse_syscall_and_errno(word, &name, &num); in config_parse_syscall_filter()