Home | History | Annotate | Download | only in libcap

Lines Matching defs:result

17     cap_t result;
19 raw_data = malloc( sizeof(__u32) + sizeof(*result) );
28 result = (cap_t) (raw_data + 1);
29 memset(result, 0, sizeof(*result));
31 result->head.version = _LIBCAP_CAPABILITY_VERSION;
32 capget(&result->head, NULL); /* load the kernel-capability version */
34 switch (result->head.version) {
48 cap_free(result);
49 result = NULL;
53 return result;
58 * tag the result as something cap_free can handle.
90 cap_t result;
98 result = cap_init();
99 if (result == NULL) {
104 memcpy(result, cap_d, sizeof(*cap_d));
106 return result;