Home
last modified time | relevance | path

Searched refs:av (Results 1 – 25 of 1072) sorted by relevance

12345678910>>...43

/external/ltp/testcases/kernel/syscalls/execve/
Dexecve05.c60 char *av[6]; variable
69 int main(int ac, char **av) in main() argument
77 tst_parse_opts(ac, av, NULL, NULL); in main()
88 prog = av[0]; in main()
89 iterations = atoi(av[1]); in main()
90 fname1 = av[2]; in main()
91 fname2 = av[3]; in main()
92 count = atoi(av[4]); in main()
106 av[0] = fname1; in main()
107 av[1] = iter; in main()
[all …]
/external/python/cpython2/Lib/test/
Dtest_codeop.py60 av = self.assertValid
71 av("")
72 av("\n")
74 av("a = 1")
75 av("\na = 1")
76 av("a = 1\n")
77 av("a = 1\n\n")
78 av("\n\na = 1\n\n")
80 av("def x():\n pass\n")
81 av("if 1:\n pass\n")
[all …]
/external/python/cpython2/Lib/
Dsre_compile.py78 for op, av in pattern:
81 lo = _sre.getlower(av, flags)
97 emit(av)
107 _compile_charset(av, flags, code, fixup, fixes)
119 emit(av[0])
120 emit(av[1])
121 _compile(code, av[2], flags)
124 elif _simple(av) and op is not REPEAT:
130 emit(av[0])
131 emit(av[1])
[all …]
/external/Microsoft-GSL/tests/
Dmulti_span_tests.cpp686 auto av = as_multi_span(a); in SUITE() local
687 fn(av.bounds()); in SUITE()
688 auto av2 = as_multi_span(av, dim<60>()); in SUITE()
711 multi_span<int, 5> av = arr; in SUITE() local
712 CHECK((av.first<2>().bounds() == static_bounds<2>())); in SUITE()
713 CHECK(av.first<2>().length() == 2); in SUITE()
714 CHECK(av.first(2).length() == 2); in SUITE()
718 multi_span<int, 5> av = arr; in SUITE() local
719 CHECK((av.first<0>().bounds() == static_bounds<0>())); in SUITE()
720 CHECK(av.first<0>().length() == 0); in SUITE()
[all …]
Dstrided_span_tests.cpp42 auto av = as_multi_span(a); in SUITE() local
43 auto sub = av.section({15, 0, 0}, gsl::index<3>{2, 2, 2}); in SUITE()
52 const multi_span<int, 5, 10> av = as_multi_span(multi_span<int>{data}, dim<5>(), dim<10>()); in SUITE() local
54 strided_span<int, 2> av_section_1 = av.section({ 1, 2 }, { 3, 4 }); in SUITE()
186 const multi_span<int, 2> av(arr, 2); in SUITE() local
187 multi_span<const int, 2> av2{ av }; in SUITE()
320 multi_span<int> av(arr); in SUITE() local
325 CHECK_THROW(av.section(0, 0)[0], fail_fast); in SUITE()
326 CHECK_THROW(av.section(1, 0)[0], fail_fast); in SUITE()
327 CHECK_THROW(av.section(1, 1)[1], fail_fast); in SUITE()
[all …]
Dspan_tests.cpp633 span<int, 5> av = arr; in SUITE() local
634 CHECK(av.first<2>().length() == 2); in SUITE()
635 CHECK(av.first(2).length() == 2); in SUITE()
639 span<int, 5> av = arr; in SUITE() local
640 CHECK(av.first<0>().length() == 0); in SUITE()
641 CHECK(av.first(0).length() == 0); in SUITE()
645 span<int, 5> av = arr; in SUITE() local
646 CHECK(av.first<5>().length() == 5); in SUITE()
647 CHECK(av.first(5).length() == 5); in SUITE()
651 span<int, 5> av = arr; in SUITE() local
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Dpolicygen.py157 for av in avs:
158 rule = refpolicy.AVRule(av)
163 rule.comment = str(refpolicy.Comment(explain_access(av, verbosity=self.explain)))
164 if av.type == audit2why.ALLOW:
166 if av.type == audit2why.DONTAUDIT:
169 if av.type == audit2why.BOOLEAN:
170 if len(av.data) > 1:
171 …avc can be allowed using one of the these booleans:\n# %s" % ", ".join([x[0] for x in av.data])
173 … rule.comment += "\n#!!!! This avc can be allowed using the boolean '%s'" % av.data[0][0]
175 if av.type == audit2why.CONSTRAINT:
[all …]
Dinterfaces.py62 def __param_insert(name, type, av, params): argument
76 if av:
77 avobjs = [av.obj_class]
100 if av:
101 p.obj_classes.add(av.obj_class)
106 def av_extract_params(av, params): argument
144 if access.is_idparam(av.src_type):
145 if __param_insert(av.src_type, refpolicy.SRC_TYPE, av, params) == 1:
148 if access.is_idparam(av.tgt_type):
149 if __param_insert(av.tgt_type, refpolicy.TGT_TYPE, av, params) == 1:
[all …]
Daccess.py208 for av in objs.values():
209 yield av
243 for av in self:
244 l.append(av.to_list())
257 for av in l:
258 self.add_av(AccessVector(av))
281 def add_av(self, av, audit_msg=None): argument
283 self.add(av.src_type, av.tgt_type, av.obj_class, av.perms)
288 for av in avs:
289 types.add(av.src_type)
[all …]
/external/syslinux/gpxe/src/net/infiniband/
Dib_pathrec.c50 struct ib_address_vector *av __unused ) { in ib_path_complete()
52 struct ib_gid *dgid = &path->av.gid; in ib_path_complete()
68 path->av.lid = ntohs ( pathrec->dlid ); in ib_path_complete()
69 path->av.sl = ( pathrec->reserved__sl & 0x0f ); in ib_path_complete()
70 path->av.rate = ( pathrec->rate_selector__rate & 0x3f ); in ib_path_complete()
74 htonl ( dgid->u.dwords[3] ), path->av.lid, path->av.sl, in ib_path_complete()
75 path->av.rate ); in ib_path_complete()
83 path->op->complete ( ibdev, path, rc, &path->av ); in ib_path_complete()
100 ib_create_path ( struct ib_device *ibdev, struct ib_address_vector *av, in ib_create_path() argument
111 memcpy ( &path->av, av, sizeof ( path->av ) ); in ib_create_path()
[all …]
Dib_packet.c48 const struct ib_address_vector *av ) { in ib_push() argument
61 ibdev, ibdev->lid, qp->ext_qpn, av->lid, av->qpn, av->qkey ); in ib_push()
73 grh = ( av->gid_present ? in ib_push()
82 lrh->sl__lnh = ( ( av->sl << 4 ) | lnh ); in ib_push()
83 lrh->dlid = htons ( av->lid ); in ib_push()
95 memcpy ( &grh->dgid, &av->gid, sizeof ( grh->dgid ) ); in ib_push()
102 bth->dest_qp = htonl ( av->qpn ); in ib_push()
106 deth->qkey = htonl ( av->qkey ); in ib_push()
126 struct ib_address_vector *av ) { in ib_pull() argument
142 memset ( av, 0, sizeof ( *av ) ); in ib_pull()
[all …]
Dib_cm.c54 struct ib_address_vector *av ) { in ib_cm_send_rtu() argument
68 if ( ( rc = ib_mi_send ( ibdev, mi, &mad, av ) ) != 0 ){ in ib_cm_send_rtu()
93 struct ib_address_vector *av ) { in ib_cm_connect_rep() argument
104 if ( ( rc = ib_cm_send_rtu ( ibdev, mi, conn, av ) ) != 0 ) { in ib_cm_connect_rep()
158 struct ib_address_vector *av ) { in ib_cm_req_complete() argument
186 qp->av.qpn = ( ntohl ( connect_rep->local_qpn ) >> 8 ); in ib_cm_req_complete()
191 conn, qp->av.qpn, qp->send.psn ); in ib_cm_req_complete()
201 if ( ( rc = ib_cm_send_rtu ( ibdev, mi, conn, av ) ) != 0 ) { in ib_cm_req_complete()
251 struct ib_address_vector *av ) { in ib_cm_path_complete() argument
268 memcpy ( &qp->av, av, sizeof ( qp->av ) ); in ib_cm_path_complete()
[all …]
/external/ipsec-tools/src/racoon/
Dracoonctl.c255 main(ac, av) in main() argument
257 char **av;
262 pname = *av;
278 while ((c = getopt(ac, av, "lds:")) != -1) {
299 av += optind;
301 combuf = get_combuf(ac, av);
368 get_combuf(ac, av) in get_combuf() argument
370 char **av;
381 if (strcmp(*av, cp->str) == 0) {
386 printf("Invalid command [%s]\n", *av);
[all …]
/external/ltp/tools/pounder21/src/memxfer5b/
Dmemxfer5b.c62 int main(int ac, char *av[]) in main() argument
79 progname = av[0]; in main()
84 if (equal(av[1], "-f")) { in main()
87 av++; in main()
88 } else if (equal(av[1], "-w")) { in main()
91 av++; in main()
92 } else if (equal(av[1], "-s")) { in main()
95 av++; in main()
96 } else if (equal(av[1], "-p")) { in main()
99 av++; in main()
[all …]
/external/libgsm/tst/
Dlin2txt.c66 main P2((ac, av), int ac, char ** av)
74 if (!(pname = av[0])) pname = "inp2txt";
76 while ((opt = getopt(ac, av, "v")) != EOF) switch (opt) {
82 av += optind;
85 else for (; *av; av++) {
86 if (!(f = fopen(*av, "r"))) perror(*av);
88 process(f, *av);
Dlin2cod.c75 main P2((ac, av), int ac, char ** av)
83 if (!(pname = av[0])) pname = "inp2cod";
85 while ((opt = getopt(ac, av, "vwF")) != EOF) switch (opt) {
93 av += optind;
96 else for (; *av; av++) {
97 if (!(f = fopen(*av, "r"))) perror(*av);
99 process(f, *av);
Dcod2lin.c74 main P2((ac, av), int ac, char ** av)
82 if (!(pname = av[0])) pname = "cod2out";
84 while ((opt = getopt(ac, av, "vwF")) != EOF) switch (opt) {
92 av += optind;
95 else for (; *av; av++) {
96 if (!(f = fopen(*av, "r"))) perror(*av);
98 process(f, *av);
Dcod2txt.c71 main P2((ac, av), int ac, char ** av)
79 if (!(pname = av[0])) pname = "cod2txt";
82 av++;
85 else for (; *av; av++) {
86 if (!(f = fopen(*av, "r"))) perror(*av);
88 process(f, *av);
Dgsm2cod.c70 main P2((ac, av), int ac, char ** av)
78 if (!(pname = av[0])) pname = "gsm2cod";
81 av++;
84 else for (; *av; av++) {
85 if (!(f = fopen(*av, "r"))) perror(*av);
87 process(f, *av);
/external/strace/tests/
Dblock_reset_raise_run.c36 main(int ac, char **av) in main() argument
43 const int signo = atoi(av[1]); in main()
45 perror_msg_and_fail("sigaddset: %s", av[1]); in main()
49 perror_msg_and_fail("signal: %s", av[1]); in main()
51 perror_msg_and_fail("raise: %s", av[1]); in main()
53 execvp(av[2], av + 2); in main()
54 perror_msg_and_fail("execvp: %s", av[2]); in main()
Dunix-pair-sendto-recvfrom.c50 main(int ac, char **av) in main() argument
53 const int len = strlen(av[1]); in main()
69 transpose(av[1], len); in main()
70 assert(sendto(0, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main()
71 assert(recvfrom(0, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main()
79 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main()
80 transpose(av[1], len); in main()
81 assert(sendto(1, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main()
82 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == 0); in main()
/external/strace/tests-mx32/
Dblock_reset_raise_run.c36 main(int ac, char **av) in main() argument
43 const int signo = atoi(av[1]); in main()
45 perror_msg_and_fail("sigaddset: %s", av[1]); in main()
49 perror_msg_and_fail("signal: %s", av[1]); in main()
51 perror_msg_and_fail("raise: %s", av[1]); in main()
53 execvp(av[2], av + 2); in main()
54 perror_msg_and_fail("execvp: %s", av[2]); in main()
Dunix-pair-sendto-recvfrom.c50 main(int ac, char **av) in main() argument
53 const int len = strlen(av[1]); in main()
69 transpose(av[1], len); in main()
70 assert(sendto(0, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main()
71 assert(recvfrom(0, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main()
79 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main()
80 transpose(av[1], len); in main()
81 assert(sendto(1, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main()
82 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == 0); in main()
/external/strace/tests-m32/
Dblock_reset_raise_run.c36 main(int ac, char **av) in main() argument
43 const int signo = atoi(av[1]); in main()
45 perror_msg_and_fail("sigaddset: %s", av[1]); in main()
49 perror_msg_and_fail("signal: %s", av[1]); in main()
51 perror_msg_and_fail("raise: %s", av[1]); in main()
53 execvp(av[2], av + 2); in main()
54 perror_msg_and_fail("execvp: %s", av[2]); in main()
Dunix-pair-sendto-recvfrom.c50 main(int ac, char **av) in main() argument
53 const int len = strlen(av[1]); in main()
69 transpose(av[1], len); in main()
70 assert(sendto(0, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main()
71 assert(recvfrom(0, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main()
79 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main()
80 transpose(av[1], len); in main()
81 assert(sendto(1, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main()
82 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == 0); in main()

12345678910>>...43