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

12

/freebsd-11-stable/contrib/netbsd-tests/rump/rumpkern/
H A Dt_modcmd.c65 struct sysctlnode q, ans[256]; local
73 alen = sizeof(ans);
78 if (rump_sys___sysctl(mib, 2, ans, &alen, &q, sizeof(q)) == -1)
81 for (i = 0; i < __arraycount(ans); i++)
82 if (strcmp("module", ans[i].sysctl_name) == 0)
84 if (i == __arraycount(ans)) {
89 mib[1] = ans[i].sysctl_num;
92 if (rump_sys___sysctl(mib, 3, ans, &alen, &q, sizeof(q)) == -1)
95 for (i = 0; i < __arraycount(ans); i++)
96 if (strcmp("autoload", ans[
[all...]
/freebsd-11-stable/usr.sbin/rpc.lockd/
H A Dkern.c206 struct lockd_ans ans; local
208 ans.la_msg_ident = msg.lm_msg_ident;
209 ans.la_errno = EHOSTUNREACH;
211 if (nfslockdans(LOCKD_ANS_VERSION, &ans)) {
462 struct lockd_ans ans; local
464 if (netcookie->n_len != sizeof(ans.la_msg_ident)) {
469 ans.la_msg_ident.pid = pid;
470 ans.la_msg_ident.msg_seq = -1;
472 memcpy(&ans.la_msg_ident, netcookie->n_bytes,
473 sizeof(ans
[all...]
/freebsd-11-stable/usr.sbin/vigr/
H A Dvigr.sh85 read ans
86 case $ans in
/freebsd-11-stable/contrib/netbsd-tests/net/if_loop/
H A Dt_pr.c118 struct sysctlnode q, ans[256]; local
127 alen = sizeof(ans);
132 if (rump_sys___sysctl(mib, 4, ans, &alen, &q, sizeof(q)) == -1)
135 for (i = 0; i < __arraycount(ans); i++)
136 if (strcmp("do_loopback_cksum", ans[i].sysctl_name) == 0)
138 if (i == __arraycount(ans)) {
143 mib[3] = ans[i].sysctl_num;
/freebsd-11-stable/lib/msun/tests/
H A Dnext_test.c46 #define test(exp, ans, ex) do { \
47 double __ans = (ans); \
51 #define testf(exp, ans, ex) do { \
52 float __ans = (ans); \
56 #define testl(exp, ans, ex) do { \
57 long double __ans = (ans); \
61 #define testboth(arg1, arg2, ans, ex, prec) do { \
62 test##prec(nextafter##prec((arg1), (arg2)), (ans), (ex)); \
63 test##prec(nexttoward##prec((arg1), (arg2)), (ans), (ex)); \
65 #define testall(arg1, arg2, ans, e
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dregress_testutils.c159 int err = atoi(tab->ans);
163 int err = atoi(tab->ans);
181 if (!evutil_inet_pton(AF_INET, tab->ans, &in)) {
182 TT_DIE(("Bad A value %s in table", tab->ans));
188 if (!evutil_inet_pton(AF_INET6, tab->ans, &in6)) {
189 TT_DIE(("Bad AAAA value %s in table", tab->ans));
H A Dregress_testutils.h35 const char *ans; member in struct:regress_dns_server_table
H A Dregress_dns.c237 struct in_addr ans; local
238 ans.s_addr = htonl(0xc0a80b0bUL); /* 192.168.11.11 */
243 1, &ans.s_addr, 12345);
990 struct in_addr ans; local
999 ans.s_addr = htonl(0x7f000001);
1001 1, &ans.s_addr, 2000);
1009 ans.s_addr = htonl(0x50502020);
1011 1, &ans.s_addr, 2000);
1028 ans.s_addr = htonl(0x12345678);
1030 1, &ans
[all...]
/freebsd-11-stable/usr.sbin/rpcbind/
H A Dpmap_svc.c173 long ans; local
226 ans = FALSE;
229 ans = map_set(&rpcbreg, rpcbreg.r_owner);
238 ans = ans1 || ans2;
240 ans = FALSE;
243 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t) &ans)) &&
252 fprintf(stderr, "%s\n", ans == TRUE ? "succeeded" : "failed");
255 rpcbs_set(RPCBVERS_2_STAT, ans);
257 rpcbs_unset(RPCBVERS_2_STAT, ans);
H A Dcheck_bound.c86 int ans; local
102 ans = bind(fd, (struct sockaddr *)na->buf, na->len);
108 return (ans == 0 ? FALSE : TRUE);
H A Drpcb_svc_com.c129 static bool_t ans; local
138 ans = map_set(regp, getowner(transp, owner, sizeof owner));
141 fprintf(stderr, "%s\n", ans == TRUE ? "succeeded" : "failed");
144 rpcbs_set(rpcbversnum - 2, ans);
145 return (void *)&ans;
217 static bool_t ans; local
226 ans = map_unset(regp, getowner(transp, owner, sizeof owner));
229 fprintf(stderr, "%s\n", ans == TRUE ? "succeeded" : "failed");
232 rpcbs_unset(rpcbversnum - 2, ans);
233 return (void *)&ans;
239 int ans = 0; local
[all...]
/freebsd-11-stable/contrib/dma/
H A Ddns.c139 unsigned char *ans; local
154 ans = malloc(anssz);
155 if (ans == NULL)
162 err = res_search(searchhost, ns_c_in, ns_t_mx, ans, anssz);
182 if (!ns_initparse(ans, anssz, &msg))
245 free(ans);
275 free(ans);
/freebsd-11-stable/usr.sbin/ppp/
H A Dchap.c376 u_char *ans; local
378 ans = chap_BuildAnswer(name, key, chap->auth.id, chap->challenge.peer
384 if (ans) {
386 ans, *ans + 1 + strlen(name), name);
391 free(ans);
699 char *name, *key, *ans; local
729 ans = NULL;
777 if ((ans = malloc(alen + 1)) == NULL) {
782 *ans
[all...]
/freebsd-11-stable/lib/libc/resolv/
H A Dres_send.c304 const u_char *buf, int buflen, u_char *ans, int anssiz)
440 ans, anssiz, &resplen);
476 n = send_vc(statp, buf, buflen, ans, anssiz, &terrno,
489 buf, buflen, ans, anssiz, &terrno,
508 ans, (resplen > anssiz) ? anssiz : resplen);
526 ans, anssiz, &resplen);
621 const u_char *buf, int buflen, u_char *ans, int anssiz,
625 HEADER *anhp = (HEADER *) ans;
723 cp = ans;
751 resplen = ns_get16(ans);
303 res_nsend(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz) argument
620 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument
822 send_dg(res_state statp, int kq, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, int tries, int *v_circuit, int *gotsomewhere) argument
[all...]
H A Dres_data.c195 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) { argument
202 return (res_nsend(statp, buf, buflen, ans, anssiz));
208 u_char *ans, int anssiz)
216 return (res_nsendsigned(statp, buf, buflen, key, ans, anssiz));
207 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, u_char *ans, int anssiz) argument
/freebsd-11-stable/sbin/fdisk_pc98/
H A Dfdisk.c63 #define Decimal(str, ans, tmp) if (decimal(str, &tmp, ans)) ans = tmp
64 #define String(str, ans, len) {char *z = ans; char **dflt = &z; if (string(str, dflt)) strncpy(ans, *dflt, len); }
169 static int string(const char *str, char **ans);
822 string(const char *str, char **ans)
828 printf("Supply a string value for \"%s\" [%s] ", str, *ans);
838 *ans
821 string(const char *str, char **ans) argument
[all...]
/freebsd-11-stable/sys/contrib/ncsw/Peripherals/BM/
H A Dbm.h341 uint64_t ans, size = 1; local
348 ans = MM_GetForce(p_Bm->h_BpidMm,
352 ans = base;
384 memcpy((uint8_t*)&ans, reply.replyBody, sizeof(uint32_t));
389 ans = base;
393 ans = MM_Get(p_Bm->h_BpidMm,
397 return (uint32_t)ans;
/freebsd-11-stable/lib/libc/net/
H A Dgetnetbydns.c166 char ans[MAXHOSTNAMELEN]; local
208 ans[0] = '\0';
209 (void)strncpy(&ans[0], bp, sizeof(ans) - 1);
210 ans[sizeof(ans) - 1] = '\0';
238 n = strlen(ans) + 1;
244 strlcpy(bp, ans, ep - bp);
/freebsd-11-stable/contrib/ntp/
H A Dconfigure24618 ans=no
24621 ans=yes
24624 ans=no
24627 ans=no
24630 ans=no
24633 ans=no
24636 ans=no
24639 ans=no
24642 ans=no
24645 ans
[all...]
/freebsd-11-stable/testcode/
H A Dfake_event.c407 struct replay_answer* ans = runtime->answer_list, local
411 while(ans) {
413 if(ans->repinfo.c->type == comm_udp)
417 &ans->repinfo.addr, ans->repinfo.addrlen) == 0) &&
418 find_match(runtime->now->match, ans->pkt,
419 ans->pkt_len, tr)) {
426 prev->next = ans->next;
427 else runtime->answer_list = ans->next;
428 if(!ans
1003 struct replay_answer* ans = (struct replay_answer*)calloc(1, local
[all...]
/freebsd-11-stable/usr.bin/chat/
H A Dchat.c177 void *ans = malloc (c); local
178 if (!ans)
181 memcpy (ans, b, c);
182 return ans;
/freebsd-11-stable/crypto/openssh/
H A Dbuildpkg.sh.in544 ans=\`ckyorn -d n \\
546 case \$ans in
555 ans=\`ckyorn -d n \\
557 case \$ans in
576 ans=\`ckyorn -d n \\
578 case \$ans in
585 ans=\`ckyorn -d n \\
587 case \$ans in
596 ans=\`ckyorn -d n \\
598 case \$ans i
[all...]
/freebsd-11-stable/contrib/ncurses/progs/
H A Dcapconvert182 read ans;
/freebsd-11-stable/sys/contrib/ncsw/Peripherals/QM/
H A Dqm.c257 uint64_t ans; local
262 ans = MM_GetForce(p_Qm->h_FqidMm,
267 ans = MM_Get(p_Qm->h_FqidMm,
271 if (ans == ILLEGAL_BASE)
274 return (uint32_t)ans;
276 base = (uint32_t)ans;
277 ans = MM_GetForce(p_Qm->h_RsrvFqidMm,
281 if (ans == ILLEGAL_BASE)
285 return (uint32_t)ans;
495 uint64_t ans; local
[all...]
/freebsd-11-stable/usr.bin/units/
H A Dunits.c659 double ans; local
697 ans = have->factor / want->factor;
701 printf(outputformat, ans);
706 printf(outputformat, ans);
711 printf(outputformat, ans);
717 printf(outputformat, 1/ans);
722 printf(outputformat, 1/ans);

Completed in 307 milliseconds

12