Debian Codegraph @

tools/scmp_api_level.c

raw
1 /**
2 * API Level Detector
3 *
4 * Copyright (c) 2018 Paul Moore <[email protected]>
5 * Author: Paul Moore <[email protected]>
6 */
7
8 /*
9 * This library is free software; you can redistribute it and/or modify it
10 * under the terms of version 2.1 of the GNU Lesser General Public License as
11 * published by the Free Software Foundation.
12 *
13 * This library is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
16 * for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, see <http://www.gnu.org/licenses>.
20 */
21
22 #include <errno.h>
23 #include <stdlib.h>
24 #include <stdio.h>
25
26 #include <seccomp.h>
27
28 /**
29 * main
30 */
31 int main(int argc, char *argv[])
32 {
33 unsigned int level;
34
35 level = seccomp_api_get();
36 printf("%d\n", level);
37
38 return 0;
39 }