/external/minijail/ |
D | bpf.c | 45 size_t bpf_load_arg(struct sock_filter *filter, int argidx) in bpf_load_arg() argument 47 set_bpf_stmt(filter, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg() 51 size_t bpf_load_arg(struct sock_filter *filter, int argidx) in bpf_load_arg() argument 54 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg() 56 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in bpf_load_arg() 228 size_t bpf_arg_comp(struct sock_filter **pfilter, int op, int argidx, in bpf_arg_comp() argument 240 curr_block += bpf_load_arg(curr_block, argidx); in bpf_arg_comp()
|
D | bpf.h | 192 size_t bpf_load_arg(struct sock_filter *filter, int argidx); 209 int op, int argidx, unsigned long c, unsigned int label_id);
|
D | syscall_filter_unittest.cc | 220 const int argidx = 1; in TEST() local 221 size_t len = bpf_load_arg(load_arg, argidx); in TEST() 226 EXPECT_EQ_STMT(&load_arg[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST() 228 EXPECT_EQ_STMT(&load_arg[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST() 230 EXPECT_EQ_STMT(&load_arg[2], BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in TEST() 297 const int argidx = 1; in TEST() local 301 size_t len = bpf_arg_comp(&arg_comp, op, argidx, c, label_id); in TEST() 306 EXPECT_EQ_STMT(&arg_comp[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST() 310 EXPECT_EQ_STMT(&arg_comp[0], BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in TEST() 312 EXPECT_EQ_STMT(&arg_comp[2], BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in TEST()
|
D | syscall_filter.c | 230 long int argidx = strtol(argidx_str + 3, &argidx_ptr, 10); in compile_atom() local 270 size_t len = bpf_arg_comp(&comp_block, op, argidx, c, id); in compile_atom()
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 391 Py_ssize_t argidx = *p_argidx; in getnextarg() local 392 if (argidx < arglen) { in getnextarg() 397 return PyTuple_GetItem(args, argidx); in getnextarg() 603 Py_ssize_t arglen, argidx; in _PyBytes_FormatEx() local 627 argidx = 0; in _PyBytes_FormatEx() 631 argidx = -2; in _PyBytes_FormatEx() 721 argidx = -2; in _PyBytes_FormatEx() 738 v = getnextarg(args, arglen, &argidx); in _PyBytes_FormatEx() 778 v = getnextarg(args, arglen, &argidx); in _PyBytes_FormatEx() 822 v = getnextarg(args, arglen, &argidx); in _PyBytes_FormatEx() [all …]
|
D | unicodeobject.c | 14071 Py_ssize_t arglen, argidx; member 14093 Py_ssize_t argidx = ctx->argidx; in unicode_format_getnextarg() local 14095 if (argidx < ctx->arglen) { in unicode_format_getnextarg() 14096 ctx->argidx++; in unicode_format_getnextarg() 14100 return PyTuple_GetItem(ctx->args, argidx); in unicode_format_getnextarg() 14504 ctx->argidx = -2; in unicode_format_arg_parse() 14936 if (ctx->dict && (ctx->argidx < ctx->arglen)) { in unicode_format_arg() 14969 ctx.argidx = 0; in PyUnicode_Format() 14973 ctx.argidx = -2; in PyUnicode_Format() 15008 if (ctx.argidx < ctx.arglen && !ctx.dict) { in PyUnicode_Format()
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 384 Py_ssize_t argidx = *p_argidx; in getnextarg() local 385 if (argidx < arglen) { in getnextarg() 390 return PyTuple_GetItem(args, argidx); in getnextarg() 596 Py_ssize_t arglen, argidx; in _PyBytes_FormatEx() local 620 argidx = 0; in _PyBytes_FormatEx() 624 argidx = -2; in _PyBytes_FormatEx() 717 argidx = -2; in _PyBytes_FormatEx() 734 v = getnextarg(args, arglen, &argidx); in _PyBytes_FormatEx() 774 v = getnextarg(args, arglen, &argidx); in _PyBytes_FormatEx() 818 v = getnextarg(args, arglen, &argidx); in _PyBytes_FormatEx() [all …]
|
D | stringobject.c | 3926 Py_ssize_t argidx = *p_argidx; in getnextarg() local 3927 if (argidx < arglen) { in getnextarg() 3932 return PyTuple_GetItem(args, argidx); in getnextarg() 4246 Py_ssize_t arglen, argidx; in PyString_Format() local 4268 argidx = 0; in PyString_Format() 4272 argidx = -2; in PyString_Format() 4307 Py_ssize_t argidx_start = argidx; in PyString_Format() 4354 argidx = -2; in PyString_Format() 4367 v = getnextarg(args, arglen, &argidx); in PyString_Format() 4405 v = getnextarg(args, arglen, &argidx); in PyString_Format() [all …]
|
D | unicodeobject.c | 8109 Py_ssize_t argidx = *p_argidx; in getnextarg() local 8110 if (argidx < arglen) { in getnextarg() 8115 return PyTuple_GetItem(args, argidx); in getnextarg() 8357 Py_ssize_t fmtcnt, rescnt, reslen, arglen, argidx; in PyUnicode_Format() local 8381 argidx = 0; in PyUnicode_Format() 8385 argidx = -2; in PyUnicode_Format() 8471 argidx = -2; in PyUnicode_Format() 8484 v = getnextarg(args, arglen, &argidx); in PyUnicode_Format() 8521 v = getnextarg(args, arglen, &argidx); in PyUnicode_Format() 8564 v = getnextarg(args, arglen, &argidx); in PyUnicode_Format() [all …]
|