Home
last modified time | relevance | path

Searched refs:cap_header (Results 1 – 2 of 2) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dcapset.c27 struct __user_cap_header_struct cap_header; in capset_0100() local
30 cap_header.pid = getpid(); in capset_0100()
31 cap_header.version = _LINUX_CAPABILITY_VERSION_1; in capset_0100()
33 if (capget(&cap_header, &cap_data) < 0) { in capset_0100()
37 printf("capheader: %x %d\n", cap_header.version, cap_header.pid); in capset_0100()
46 if (capset(&cap_header, &cap_data) < 0) { in capset_0100()
49 printf("%d\n", capget(&cap_header, &cap_data)); in capset_0100()
50 printf("capheader: %x %d\n", cap_header.version, cap_header.pid); in capset_0100()
Dcapget.c28 cap_user_header_t cap_header = &cap_header_data; in capget_0100() local
33 cap_header->pid = getpid(); in capget_0100()
34 cap_header->version = _LINUX_CAPABILITY_VERSION_1; in capget_0100()
36 int result = capget(cap_header, cap_data); in capget_0100()