Home
last modified time | relevance | path

Searched refs:ans (Results 1 - 25 of 36) sorted by relevance

12

/third_party/selinux/checkpolicy/
H A Dcheckpolicy.c391 char ans[80 + 1], *path, *fstype; in main() local
751 FGETS(ans, sizeof(ans), stdin); in main()
752 switch (ans[0]) { in main()
755 FGETS(ans, sizeof(ans), stdin); in main()
756 ssid = atoi(ans); in main()
759 FGETS(ans, sizeof(ans), stdin); in main()
760 tsid = atoi(ans); in main()
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_editmenu.py40 for tag, ans in ('', 'onetwo\n'), ('sel', 'two\n'):
41 with self.subTest(tag=tag, ans=ans):
45 self.assertEqual(text.get('1.0', 'end'), ans)
52 for end, ans in (0, 'onetwo'), ('end', 'two'):
53 with self.subTest(entry=entry, end=end, ans=ans):
58 self.assertEqual(entry.get(), ans)
64 for end, ans in (0, 'onetwo'), ('end', 'two'):
65 with self.subTest(end=end, ans
[all...]
/third_party/python/Lib/
H A D_pydecimal.py252 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
253 return ans._fix_nan(context)
903 ans = self._compare_check_nans(other, context)
904 if ans:
912 ans = self._compare_check_nans(other, context)
913 if ans:
921 ans = self._compare_check_nans(other, context)
922 if ans:
930 ans = self._compare_check_nans(other, context)
931 if ans
[all...]
/third_party/selinux/checkpolicy/test/
H A Ddispol.c397 char ans[81], OutfileName[121]; in main() local
451 if (fgets(ans, sizeof(ans), stdin) == NULL) { in main()
456 switch (ans[0]) { in main()
482 if (fgets(ans, sizeof(ans), stdin) == NULL) { in main()
487 ans[strlen(ans) - 1] = 0; in main()
489 name = strdup(ans); in main()
496 if (fgets(ans, sizeo in main()
[all...]
/third_party/python/Modules/_decimal/tests/
H A Dbignum.py30 ans = hash_ if sign == 1 else -hash_
31 return -2 if ans == -1 else ans
/third_party/lwip/src/apps/mdns/
H A Dmdns.c1621 struct mdns_answer ans; in mdns_handle_question() local
1625 res = mdns_read_answer(pkt, &ans); in mdns_handle_question()
1632 mdns_domain_debug_print(&ans.info.domain); in mdns_handle_question()
1633 LWIP_DEBUGF(MDNS_DEBUG, (" type %d class %d\n", ans.info.type, ans.info.klass)); in mdns_handle_question()
1636 if (ans.info.type == DNS_RRTYPE_ANY || ans.info.klass == DNS_RRCLASS_ANY) { in mdns_handle_question()
1642 match = reply.host_replies & check_host(pkt->netif, &ans.info, &rev_v6); in mdns_handle_question()
1643 if (match && (ans.ttl > (mdns->dns_ttl / 2))) { in mdns_handle_question()
1648 if (ans in mdns_handle_question()
1800 struct mdns_answer ans; mdns_handle_response() local
[all...]
/third_party/alsa-lib/aserver/
H A Daserver.c729 snd_client_open_answer_t ans; in snd_client_open() local
731 memset(&ans, 0, sizeof(ans)); in snd_client_open()
738 ans.result = -EINVAL; in snd_client_open()
748 ans.result = -EINVAL; in snd_client_open()
755 ans.result = -EINVAL; in snd_client_open()
766 ans.result = -EINVAL; in snd_client_open()
771 ans.result = -EINVAL; in snd_client_open()
779 ans.result = -ENOMEM; in snd_client_open()
786 err = client->ops->open(client, &ans in snd_client_open()
[all...]
/third_party/python/Lib/test/
H A Dtest_itertools.py884 ans = [0,2,4]
887 self.assertEqual(list(copy.copy(c)), ans)
889 self.assertEqual(list(copy.deepcopy(c)), ans)
892 self.assertEqual(list(pickle.loads(pickle.dumps(c, proto))), ans)
894 self.assertEqual(list(pickle.loads(pickle.dumps(c, proto))), ans[1:])
914 ans = [(x,y) for x, y in zip('abc',count())]
915 self.assertEqual(ans, [('a', 0), ('b', 1), ('c', 2)])
936 ans = [(x,y) for x, y in copy.copy(zip('abc',count()))]
937 self.assertEqual(ans, [('a', 0), ('b', 1), ('c', 2)])
939 ans
[all...]
H A Dtest_decimal.py356 ans = L[0]
411 ans = FixQuotes(ans)
462 self.assertEqual(result, ans,
2331 ans = str(x.compare(Decimal('Nan891287828'), context=None))
2332 self.assertEqual(ans, 'NaN1287828')
2337 ans = str(x.compare_signal(8224, context=None))
2338 self.assertEqual(ans, '-1')
2343 ans = str(x.logical_and(101, context=None))
2344 self.assertEqual(ans, '10
[all...]
/third_party/ltp/testcases/kernel/controllers/cgroup/
H A Dcgroup_regression_getdelays.c171 } ans; in get_family_id() local
182 rep_len = recv(sd, &ans, sizeof(ans), 0); in get_family_id()
183 if (ans.n.nlmsg_type == NLMSG_ERROR || in get_family_id()
184 (rep_len < 0) || !NLMSG_OK((&ans.n), rep_len)) in get_family_id()
187 na = (struct nlattr *)GENLMSG_DATA(&ans); in get_family_id()
/third_party/python/Doc/includes/
H A Demail-read-alternative.py39 ans = input("View full message?") variable
40 if ans.lower()[0] == 'n':
/third_party/skia/third_party/externals/libpng/contrib/tools/
H A Dchkfmt50 read ans 0>&3
51 test -n "$ans" || return 1
/third_party/nghttp2/src/
H A Dshrpx_downstream_test.cc56 auto ans = in test_downstream_field_store_append_last_header() local
60 CU_ASSERT(ans == fs.headers()); in test_downstream_field_store_append_last_header()
117 HeaderRefs ans = { in test_downstream_crumble_request_cookie() local
124 CU_ASSERT(ans == cookies); in test_downstream_crumble_request_cookie()
H A Dhttp2_test.cc175 auto ans = std::vector<int>{0, 1, 4, 5, 6, 7, 12}; in test_http2_copy_headers_to_nva() local
181 for (size_t i = 0; i < ans.size(); ++i) { in test_http2_copy_headers_to_nva()
182 check_nv(headers[ans[i]], &nva[i]); in test_http2_copy_headers_to_nva()
184 if (ans[i] == 0) { in test_http2_copy_headers_to_nva()
196 for (size_t i = 0; i < ans.size(); ++i) { in test_http2_copy_headers_to_nva()
197 check_nv(headers[ans[i]], &nva[i]); in test_http2_copy_headers_to_nva()
199 if (ans[i] == 0) { in test_http2_copy_headers_to_nva()
/third_party/ltp/testcases/network/stress/ns-tools/
H A Dns-common.c295 * ans : ifreq structure to store the information
304 void get_ifinfo(struct ifreq *ans, int sock_fd, const char *ifname, int query) in get_ifinfo() argument
306 memset(ans, '\0', sizeof(struct ifreq)); in get_ifinfo()
307 strncpy(ans->ifr_name, ifname, (IFNAMSIZ - 1)); in get_ifinfo()
309 if (ioctl(sock_fd, query, ans) < 0) in get_ifinfo()
/third_party/lwip/src/core/
H A Ddns.c1269 struct dns_answer ans; in dns_recv() local
1388 if (pbuf_copy_partial(p, &ans, SIZEOF_DNS_ANSWER, res_idx) != SIZEOF_DNS_ANSWER) { in dns_recv()
1396 if (ans.cls == PP_HTONS(DNS_RRCLASS_IN)) { in dns_recv()
1398 if ((ans.type == PP_HTONS(DNS_RRTYPE_A)) && (ans.len == PP_HTONS(sizeof(ip4_addr_t)))) { in dns_recv()
1411 dns_correct_response(i, lwip_ntohl(ans.ttl)); in dns_recv()
1417 if ((ans.type == PP_HTONS(DNS_RRTYPE_AAAA)) && (ans.len == PP_HTONS(sizeof(ip6_addr_p_t)))) { in dns_recv()
1431 dns_correct_response(i, lwip_ntohl(ans.ttl)); in dns_recv()
1438 if ((int)(res_idx + lwip_htons(ans in dns_recv()
[all...]
/third_party/alsa-lib/src/control/
H A Dcontrol_shm.c439 snd_client_open_answer_t ans; in snd_ctl_shm_open() local
475 err = read(sock, &ans, sizeof(ans)); in snd_ctl_shm_open()
481 if (err != sizeof(ans)) { in snd_ctl_shm_open()
486 result = ans.result; in snd_ctl_shm_open()
490 ctrl = shmat(ans.cookie, 0, 0); in snd_ctl_shm_open()
/third_party/ltp/
H A DIDcheck.sh56 read ans
57 case "$ans" in
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
H A Dduration.cc265 Duration ans; in ScaleDouble() local
266 if (!SafeAddRepHi(hi_int, lo_int, &ans)) return ans; in ScaleDouble()
267 int64_t hi64 = time_internal::GetRepHi(ans); in ScaleDouble()
268 if (!SafeAddRepHi(hi64, lo64 / kTicksPerSecond, &ans)) return ans; in ScaleDouble()
269 hi64 = time_internal::GetRepHi(ans); in ScaleDouble()
H A Dformat_test.cc31 const std::string& fmt, const std::string& ans) { in TestFormatSpecifier()
32 EXPECT_EQ(ans, absl::FormatTime(fmt, t, tz)); in TestFormatSpecifier()
33 EXPECT_EQ("xxx " + ans, absl::FormatTime("xxx " + fmt, t, tz)); in TestFormatSpecifier()
34 EXPECT_EQ(ans + " yyy", absl::FormatTime(fmt + " yyy", t, tz)); in TestFormatSpecifier()
35 EXPECT_EQ("xxx " + ans + " yyy", in TestFormatSpecifier()
30 TestFormatSpecifier(absl::Time t, absl::TimeZone tz, const std::string& fmt, const std::string& ans) TestFormatSpecifier() argument
/third_party/alsa-lib/src/pcm/
H A Dpcm_shm.c678 snd_client_open_answer_t ans; in snd_pcm_shm_open() local
714 err = read(sock, &ans, sizeof(ans)); in snd_pcm_shm_open()
720 if (err != sizeof(ans)) { in snd_pcm_shm_open()
725 result = ans.result; in snd_pcm_shm_open()
729 ctrl = shmat(ans.cookie, 0, 0); in snd_pcm_shm_open()
/third_party/icu/icu4c/source/test/intltest/
H A Ditrbnf.cpp903 llong ans = *answers[i*VALUE_WIDTH + j];
907 LLAssert((n *= rhs) == ans);
908 LLAssert(n == ans);
911 LLAssert((n * rhs) == ans);
937 const llong* tuples[] = { // lhs, rhs, ans
975 const llong ans = *tuples[i*TUPLE_WIDTH+2];
978 if (!((n /= rhs) == ans)) {
979 errln("fail: (n /= rhs) == ans");
981 LLAssert(n == ans);
984 LLAssert((n / rhs) == ans);
[all...]
/third_party/nghttp2/tests/
H A Dnghttp2_pq_test.c149 int ans[] = {-8, -6, -4, -2, 0, 1, 3, 5, 7, 9}; in test_nghttp2_pq_update() local
163 CU_ASSERT(ans[i] == nd->key); in test_nghttp2_pq_update()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl17.c436 int ans; in main() local
604 if ((ans = parent_wait()) != EDEADLK) { in main()
606 "returned: %d", ans); in main()
/third_party/f2fs-tools/fsck/
H A Dmain.c1227 char ans[255] = {0}; in main() local
1230 ret2 = scanf("%s", ans); in main()
1232 if (!strcasecmp(ans, "y")) in main()
1234 else if (!strcasecmp(ans, "n")) in main()

Completed in 28 milliseconds

12