]> granicus.if.org Git - strace/blob - tests/caps.c
Use printnum_int64 instead of print_loff_t
[strace] / tests / caps.c
1 #include <errno.h>
2
3 extern int capget(int *, int *);
4 extern int capset(int *, const int *);
5
6 int
7 main(void)
8 {
9         int unused[6];
10         const int data[] = { 2, 4, 0, 8, 16, 0 };
11         const int v3 = 0x20080522;
12         int head[] = { v3, 0 };
13
14         if (capget(head, unused) || head[0] != v3 ||
15             capset(head, data) == 0 || errno != EPERM)
16                 return 77;
17
18         return 0;
19 }