/seL4-refos-master/libs/libutils/src/ |
H A D | zf_log.c | 110 typedef void (*buffer_cb)(zf_log_output_ctx *ctx, char *buf); 116 static void buffer_callback(zf_log_output_ctx *ctx, char *buf); 117 static void output_callback(zf_log_output_ctx *const ctx); 230 static void buffer_callback(zf_log_output_ctx *ctx, char *buf) argument 232 ctx->e = (ctx->p = ctx->buf = buf) + g_buf_sz; 235 static void output_callback(zf_log_output_ctx *const ctx) argument 238 *ctx->p = 0; 239 const char *tag = ctx 273 nprintf_size(zf_log_output_ctx *const ctx) argument 285 put_nprintf(zf_log_output_ctx *const ctx, const int n) argument 293 put_ctx(zf_log_output_ctx *const ctx) argument 314 put_tag(zf_log_output_ctx *const ctx, const char *const tag) argument 341 put_src(zf_log_output_ctx *const ctx, const char *const func, const char *const file, const unsigned line) argument 350 put_msg(zf_log_output_ctx *const ctx, const char *const fmt, va_list va) argument 359 output_mem(zf_log_output_ctx *const ctx, const void *const d, const unsigned d_sz) argument [all...] |
/seL4-refos-master/projects/util_libs/libutils/src/ |
H A D | zf_log.c | 110 typedef void (*buffer_cb)(zf_log_output_ctx *ctx, char *buf); 116 static void buffer_callback(zf_log_output_ctx *ctx, char *buf); 117 static void output_callback(zf_log_output_ctx *const ctx); 230 static void buffer_callback(zf_log_output_ctx *ctx, char *buf) argument 232 ctx->e = (ctx->p = ctx->buf = buf) + g_buf_sz; 235 static void output_callback(zf_log_output_ctx *const ctx) argument 238 *ctx->p = 0; 239 const char *tag = ctx 273 nprintf_size(zf_log_output_ctx *const ctx) argument 285 put_nprintf(zf_log_output_ctx *const ctx, const int n) argument 293 put_ctx(zf_log_output_ctx *const ctx) argument 314 put_tag(zf_log_output_ctx *const ctx, const char *const tag) argument 341 put_src(zf_log_output_ctx *const ctx, const char *const func, const char *const file, const unsigned line) argument 350 put_msg(zf_log_output_ctx *const ctx, const char *const fmt, va_list va) argument 359 output_mem(zf_log_output_ctx *const ctx, const void *const d, const unsigned d_sz) argument [all...] |
/seL4-refos-master/libs/libmuslc/src/network/ |
H A D | if_nameindex.c | 27 struct ifnameindexctx *ctx = pctx; local 52 i = ctx->hash[bucket]; 54 map = &ctx->list[i-1]; 62 if (ctx->num >= ctx->allocated) { 63 size_t a = ctx->allocated ? ctx->allocated * 2 + 1 : 8; 65 map = realloc(ctx->list, a * sizeof *map); 67 ctx->list = map; 68 ctx 85 struct ifnameindexctx _ctx, *ctx = &_ctx; local [all...] |
H A D | netlink.c | 8 int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx) 36 ret = cb(ctx, h); 42 int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx) argument 48 r = __netlink_enumerate(fd, 1, RTM_GETLINK, link_af, cb, ctx); 49 if (!r) r = __netlink_enumerate(fd, 2, RTM_GETADDR, addr_af, cb, ctx); 7 __netlink_enumerate(int fd, unsigned int seq, int type, int af, int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx) argument
|
H A D | dns_parse.c | 3 int __dns_parse(const unsigned char *r, int rlen, int (*callback)(void *, int, const void *, int, const void *), void *ctx) argument 28 if (callback(ctx, p[1], p+10, len, r) < 0) return -1;
|
H A D | getifaddrs.c | 107 struct ifaddrs_ctx *ctx = pctx; local 121 for (ifs0 = ctx->hash[ifa->ifa_index % IFADDRS_HASH_SIZE]; ifs0; ifs0 = ifs0->hash_next) 156 ifs->hash_next = ctx->hash[bucket]; 157 ctx->hash[bucket] = ifs; 198 if (!ctx->first) ctx->first = ifs; 199 if (ctx->last) ctx->last->ifa.ifa_next = &ifs->ifa; 200 ctx->last = ifs; 209 struct ifaddrs_ctx _ctx, *ctx local [all...] |
H A D | lookup_name.c | 113 struct dpc_ctx *ctx = c; local 117 ctx->addrs[ctx->cnt].family = AF_INET; 118 ctx->addrs[ctx->cnt].scopeid = 0; 119 memcpy(ctx->addrs[ctx->cnt++].addr, data, 4); 123 ctx->addrs[ctx->cnt].family = AF_INET6; 124 ctx 143 struct dpc_ctx ctx = { .addrs = buf, .canon = canon }; local [all...] |
H A D | netlink.h | 94 int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx);
|
/seL4-refos-master/libs/libmuslc/src/unistd/ |
H A D | setxid.c | 7 struct ctx { struct 14 struct ctx *c = p; 32 struct ctx c = { .nr = nr, .id = id, .eid = eid, .sid = sid, .err = -1 };
|
H A D | faccessat.c | 8 struct ctx { struct 23 struct ctx *c = p; 46 struct ctx c = { .fd = fd, .filename = filename, .amode = amode };
|
/seL4-refos-master/libs/libmuslc/src/crypt/ |
H A D | crypt_sha256.c | 189 struct sha256 ctx; local 247 sha256_init(&ctx); 248 sha256_update(&ctx, key, klen); 249 sha256_update(&ctx, salt, slen); 250 sha256_update(&ctx, key, klen); 251 sha256_sum(&ctx, md); 254 sha256_init(&ctx); 255 sha256_update(&ctx, key, klen); 256 sha256_update(&ctx, salt, slen); 257 hashmd(&ctx, kle [all...] |
H A D | crypt_sha512.c | 210 struct sha512 ctx; local 269 sha512_init(&ctx); 270 sha512_update(&ctx, key, klen); 271 sha512_update(&ctx, salt, slen); 272 sha512_update(&ctx, key, klen); 273 sha512_sum(&ctx, md); 276 sha512_init(&ctx); 277 sha512_update(&ctx, key, klen); 278 sha512_update(&ctx, salt, slen); 279 hashmd(&ctx, kle [all...] |
H A D | crypt_md5.c | 199 struct md5 ctx; local 218 md5_init(&ctx); 219 md5_update(&ctx, key, klen); 220 md5_update(&ctx, salt, slen); 221 md5_update(&ctx, key, klen); 222 md5_sum(&ctx, md); 225 md5_init(&ctx); 226 md5_update(&ctx, key, klen); 227 md5_update(&ctx, setting, 3 + slen); 229 md5_update(&ctx, m [all...] |
H A D | crypt_blowfish.c | 447 tmp1 = ctx->s.S[3][tmp1]; \ 448 tmp2 = ctx->s.S[2][tmp2]; \ 449 tmp3 = ctx->s.S[1][tmp3]; \ 450 tmp3 += ctx->s.S[0][tmp4]; \ 452 R ^= ctx->s.P[N + 1]; \ 456 static BF_word BF_encrypt(BF_ctx *ctx, argument 464 L ^= ctx->s.P[0]; 490 L = tmp4 ^ ctx->s.P[BF_N + 1]; 606 BF_ctx ctx; member in struct:__anon355 633 BF_set_key(key, data.expanded_key, data.ctx [all...] |
/seL4-refos-master/libs/libmuslc/src/misc/ |
H A D | setrlimit.c | 26 struct ctx { struct 34 struct ctx *c = p; 41 struct ctx c = { .res = resource, .rlim = rlim, .err = -1 };
|
/seL4-refos-master/libs/libmuslc/src/regex/ |
H A D | regcomp.c | 531 static reg_errcode_t parse_bracket_terms(tre_parse_ctx_t *ctx, const char *s, struct literals *ls, struct neg *neg) argument 545 ctx->s = s+1; 606 if (ctx->cflags & REG_ICASE && !class) 613 static reg_errcode_t parse_bracket(tre_parse_ctx_t *ctx, const char *s) argument 623 ls.mem = ctx->mem; 634 err = parse_bracket_terms(ctx, s, &ls, &neg); 652 nc = tre_mem_alloc(ctx->mem, (neg.len+1)*sizeof *neg.a); 679 lit->position = ctx->position; 681 n = tre_ast_new_node(ctx->mem, LITERAL, lit); 682 node = tre_ast_new_union(ctx 743 marksub(tre_parse_ctx_t *ctx, tre_ast_node_t *node, int subid) argument 779 parse_atom(tre_parse_ctx_t *ctx, const char *s) argument 943 tre_parse(tre_parse_ctx_t *ctx) argument [all...] |
/seL4-refos-master/libs/libmuslc/src/thread/ |
H A D | synccall.c | 47 void __synccall(void (*func)(void *), void *ctx) argument 73 context = ctx; 162 func(ctx);
|
H A D | pthread_cancel.c | 51 static void cancel_handler(int sig, siginfo_t *si, void *ctx) argument 54 ucontext_t *uc = ctx;
|
/seL4-refos-master/libs/libmuslc/src/aio/ |
H A D | aio.c | 137 static void cleanup(void *ctx) argument 139 struct aio_thread *at = ctx; 187 static void *io_thread_func(void *ctx) argument 191 struct aio_args *args = ctx;
|
/seL4-refos-master/libs/libmuslc/src/time/ |
H A D | timer_create.c | 37 static void timer_handler(int sig, siginfo_t *si, void *ctx) argument
|
/seL4-refos-master/libs/libutils/include/utils/ |
H A D | zf_log.h | 186 typedef void (*zf_log_output_cb)(zf_log_output_ctx *ctx); 190 * to modify content of the buffers pointed by the ctx, but it's not allowed to
|
/seL4-refos-master/projects/util_libs/libutils/include/utils/ |
H A D | zf_log.h | 186 typedef void (*zf_log_output_cb)(zf_log_output_ctx *ctx); 190 * to modify content of the buffers pointed by the ctx, but it's not allowed to
|
/seL4-refos-master/libs/libmuslc/include/arpa/ |
H A D | nameser.h | 133 void *ctx; member in struct:ns_tcp_tsig_state
|
/seL4-refos-master/libs/libmuslc/ldso/ |
H A D | dynlink.c | 308 void *ctx; local 334 ctx = type==REL_COPY ? head->next : head; 337 : find_sym(ctx, name, type==REL_PLT);
|