Home
last modified time | relevance | path

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

12345678910>>...46

/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/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/strace/tests/
Dnet-yy-unix.c42 main(int ac, const char **av) in main() argument
47 unsigned int sun_path_len = strlen(av[1]); in main()
49 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
53 *len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
64 (void) unlink(av[1]); in main()
68 ", %u) = 0\n", listen_fd, listen_inode, av[1], (unsigned) *len); in main()
73 listen_fd, listen_inode, av[1]); in main()
81 listen_fd, listen_inode, av[1], *optval, (unsigned) *len); in main()
89 av[1], av[1], (int) sizeof(addr), (int) *len); in main()
102 connect_fd, connect_inode, av[1], (unsigned) *len); in main()
[all …]
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()
Dnet-y-unix.c42 main(int ac, const char **av) in main() argument
47 unsigned int sun_path_len = strlen(av[1]); in main()
49 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
53 *len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
64 (void) unlink(av[1]); in main()
68 ", %u) = 0\n", listen_fd, listen_inode, av[1], (unsigned) *len); in main()
88 av[1], (int) sizeof(addr), (int) *len); in main()
101 connect_fd, connect_inode, av[1], (unsigned) *len); in main()
122 av[1], (int) sizeof(addr), (int) *len); in main()
166 listen_fd, listen_inode, av[1], in main()
[all …]
/external/strace/tests-mx32/
Dnet-yy-unix.c42 main(int ac, const char **av) in main() argument
47 unsigned int sun_path_len = strlen(av[1]); in main()
49 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
53 *len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
64 (void) unlink(av[1]); in main()
68 ", %u) = 0\n", listen_fd, listen_inode, av[1], (unsigned) *len); in main()
73 listen_fd, listen_inode, av[1]); in main()
81 listen_fd, listen_inode, av[1], *optval, (unsigned) *len); in main()
89 av[1], av[1], (int) sizeof(addr), (int) *len); in main()
102 connect_fd, connect_inode, av[1], (unsigned) *len); in main()
[all …]
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()
Dnet-y-unix.c42 main(int ac, const char **av) in main() argument
47 unsigned int sun_path_len = strlen(av[1]); in main()
49 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
53 *len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
64 (void) unlink(av[1]); in main()
68 ", %u) = 0\n", listen_fd, listen_inode, av[1], (unsigned) *len); in main()
88 av[1], (int) sizeof(addr), (int) *len); in main()
101 connect_fd, connect_inode, av[1], (unsigned) *len); in main()
122 av[1], (int) sizeof(addr), (int) *len); in main()
166 listen_fd, listen_inode, av[1], in main()
[all …]
/external/strace/tests-m32/
Dnet-yy-unix.c42 main(int ac, const char **av) in main() argument
47 unsigned int sun_path_len = strlen(av[1]); in main()
49 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
53 *len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
64 (void) unlink(av[1]); in main()
68 ", %u) = 0\n", listen_fd, listen_inode, av[1], (unsigned) *len); in main()
73 listen_fd, listen_inode, av[1]); in main()
81 listen_fd, listen_inode, av[1], *optval, (unsigned) *len); in main()
89 av[1], av[1], (int) sizeof(addr), (int) *len); in main()
102 connect_fd, connect_inode, av[1], (unsigned) *len); in main()
[all …]
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()
Dnet-y-unix.c42 main(int ac, const char **av) in main() argument
47 unsigned int sun_path_len = strlen(av[1]); in main()
49 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
53 *len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
64 (void) unlink(av[1]); in main()
68 ", %u) = 0\n", listen_fd, listen_inode, av[1], (unsigned) *len); in main()
88 av[1], (int) sizeof(addr), (int) *len); in main()
101 connect_fd, connect_inode, av[1], (unsigned) *len); in main()
122 av[1], (int) sizeof(addr), (int) *len); in main()
166 listen_fd, listen_inode, av[1], in main()
[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/libedit/examples/
Dtc1.c185 const char **av; in main() local
206 ncontinuation = tok_line(tok, li, &ac, &av, &cc, &co); in main()
242 (void) fprintf(stderr, "`%s'\n", av[i]); in main()
245 co, av[i], av[i] + co); in main()
249 if (strcmp(av[0], "history") == 0) { in main()
261 if (strcmp(av[1], "clear") == 0) in main()
268 if (strcmp(av[1], "load") == 0) in main()
269 history(hist, &ev, H_LOAD, av[2]); in main()
270 else if (strcmp(av[1], "save") == 0) in main()
271 history(hist, &ev, H_SAVE, av[2]); in main()
[all …]
/external/selinux/libselinux/src/
Dstringrep.c252 access_vector_t av) in security_av_perm_to_string() argument
257 av = unmap_perm(tclass, av); in security_av_perm_to_string()
261 if (av && node) in security_av_perm_to_string()
263 if ((1<<i) & av) in security_av_perm_to_string()
269 int security_av_string(security_class_t tclass, access_vector_t av, char **res) in security_av_string() argument
273 access_vector_t tmp = av; in security_av_string()
281 str = security_av_perm_to_string(tclass, av & (1<<i)); in security_av_string()
302 tmp = av; in security_av_string()
305 if (!av) { in security_av_string()
314 tclass, av & (1<<i))); in security_av_string()
[all …]
/external/selinux/python/sepolgen/tests/
Dtest_interfaces.py38 av = access.AccessVector(['foo', 'bar', 'file', 'read'])
40 ret = interfaces.av_extract_params(av, params)
44 av.src_type = "$1"
45 ret = interfaces.av_extract_params(av, params)
53 av.tgt_type = "$1"
54 av.obj_class = "process"
55 ret = interfaces.av_extract_params(av, params)
63 av.tgt_type = "$1"
64 av.obj_class = "dir"
65 ret = interfaces.av_extract_params(av, params)
[all …]
/external/llvm/test/CodeGen/X86/
Dfma-scalar-memfold.ll25 %av = insertelement <4 x float> %av2, float 0.000000e+00, i32 3
33 %vr = call <4 x float> @llvm.x86.fma.vfmadd.ss(<4 x float> %av, <4 x float> %av, <4 x float> %bv)
50 %av = insertelement <4 x float> %av2, float 0.000000e+00, i32 3
58 %vr = call <4 x float> @llvm.x86.fma.vfmadd.ss(<4 x float> %av, <4 x float> %bv, <4 x float> %av)
75 %av = insertelement <4 x float> %av2, float 0.000000e+00, i32 3
83 %vr = call <4 x float> @llvm.x86.fma.vfmsub.ss(<4 x float> %av, <4 x float> %av, <4 x float> %bv)
100 %av = insertelement <4 x float> %av2, float 0.000000e+00, i32 3
108 %vr = call <4 x float> @llvm.x86.fma.vfmsub.ss(<4 x float> %av, <4 x float> %bv, <4 x float> %av)
125 %av = insertelement <4 x float> %av2, float 0.000000e+00, i32 3
133 %vr = call <4 x float> @llvm.x86.fma.vfnmadd.ss(<4 x float> %av, <4 x float> %av, <4 x float> %bv)
[all …]

12345678910>>...46