Home
last modified time | relevance | path

Searched refs:ans (Results 1 – 25 of 63) sorted by relevance

123

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.get_userquota.ksh44 ans, setpoint = zfs.get_prop("$fs", "userquota@$userid")
45 assert(ans == $UQUOTA_SIZE)
48 ans, setpoint = zfs.get_prop("$fs", "userused@$userid")
49 assert(ans == 0)
52 ans, setpoint = zfs.get_prop("$fs", "groupquota@$groupid")
53 assert(ans == $GQUOTA_SIZE)
56 ans, setpoint = zfs.get_prop("$fs", "groupused@$groupid")
57 assert(ans == 0)
63 ans, setpoint = zfs.get_prop("$fs1", "userquota@$userid")
64 assert(ans == nil)
[all …]
H A Dtst.get_count_and_limit.ksh44 ans, src = zfs.get_prop("$fs", "snapshot_limit")
45 assert(ans == -1)
48 ans, src = zfs.get_prop("$fs", "snapshot_count")
49 assert(ans == nil)
54 ans, src = zfs.get_prop("$fs", "filesystem_limit")
55 assert(ans == -1)
58 ans, src = zfs.get_prop("$fs", "filesystem_count")
59 assert(ans == nil)
66 ans, src = zfs.get_prop("$fs", "snapshot_limit")
67 assert(ans == 10)
[all …]
H A Dtst.get_mountpoint.ksh47 ans, src = zfs.get_prop("$fs", "mountpoint")
48 assert(ans == '/$fs')
53 ans, src = zfs.get_prop("$snap", "mountpoint")
54 assert(ans == nil)
59 ans, src = zfs.get_prop("$clone", "mountpoint")
60 assert(ans == '/$clone')
71 ans, src = zfs.get_prop("$fs", "mountpoint")
72 assert(ans == '$mnt1')
77 ans, src = zfs.get_prop("$snap", "mountpoint")
78 assert(ans == nil)
[all …]
H A Dtst.get_string_props.zcp48 function match(n, prop, ans, src, expected)
50 return (list_match(ans, expected[n][1]) and (src == expected[n][2]))
52 return ((ans == expected[n][1]) and (src == expected[n][2]))
57 ans, src = zfs.get_prop(fs, prop)
58 if not (match(1, prop, ans, src, expected)) then
59 fs_fails[prop] = {ans, src}
62 ans, src = zfs.get_prop(snap, prop)
63 if not (match(2, prop, ans, src, expected)) then
64 snap_fails[prop] = {ans, src}
67 ans, src = zfs.get_prop(clone, prop)
[all …]
H A Dtst.get_type.ksh43 ans, setpoint = zfs.get_prop("$fs", "type")
44 assert(ans == "filesystem")
46 ans, setpoint = zfs.get_prop("$snap", "type")
47 assert(ans == "snapshot")
49 ans, setpoint = zfs.get_prop("$vol", "type")
50 assert(ans == "volume")
H A Dtst.get_number_props.zcp68 function match(n, ans, src, expected)
69 if ((expected[n][1] == nil) and (ans ~= nil)) then
73 if ((expected[n][1] == true) and (ans == nil)) then
85 ans, src = zfs.get_prop(fs, prop)
86 if not (match(1, ans, src, expected)) then
87 fs_fails[prop] = {ans, src}
90 ans, src = zfs.get_prop(snap, prop)
91 if not (match(2, ans, src, expected)) then
92 snap_fails[prop] = {ans, src}
95 ans, src = zfs.get_prop(vol, prop)
[all …]
H A Dtst.get_written.ksh43 ans, setpoint = zfs.get_prop("$fs", "written@$TESTSNAP")
44 assert(ans == 0)
52 ans, setpoint = zfs.get_prop("$fs", "written@$TESTSNAP")
53 assert(ans > 0)
H A Dtst.get_index_props.zcp66 ans, src = zfs.get_prop(fs, prop)
67 if ((ans ~= expected[1][1]) or (src ~= expected[1][2])) then
68 fs_fails[prop] = {ans, src}
71 ans, src = zfs.get_prop(snap, prop)
72 if ((ans ~= expected[2][1]) or (src ~= expected[2][2])) then
73 snap_fails[prop] = {ans, src}
/freebsd/contrib/ntp/
H A Dconfigure.ac148 [ans=$withval],
149 [ans=yes]
151 case "$ans" in
155 ans=net-snmp-config
165 PROG_NET_SNMP_CONFIG=$ans
839 [ans=yes],
840 [ans=no]
843 AC_MSG_RESULT([$ans])
844 case "$ans" in
1229 ans
[all...]
H A Dconfigure25241 ans=no
25244 ans=yes
25247 ans=no
25250 ans=no
25253 ans=no
25256 ans=no
25259 ans=no
25262 ans=no
25265 ans=no
25268 ans
[all...]
/freebsd/usr.sbin/rpc.lockd/
H A Dkern.c203 struct lockd_ans ans; in client_request() local
205 ans.la_msg_ident = msg.lm_msg_ident; in client_request()
206 ans.la_errno = EHOSTUNREACH; in client_request()
208 if (nfslockdans(LOCKD_ANS_VERSION, &ans)) { in client_request()
459 struct lockd_ans ans; in lock_answer() local
461 if (netcookie->n_len != sizeof(ans.la_msg_ident)) { in lock_answer()
466 ans.la_msg_ident.pid = pid; in lock_answer()
467 ans.la_msg_ident.msg_seq = -1; in lock_answer()
469 memcpy(&ans.la_msg_ident, netcookie->n_bytes, in lock_answer()
470 sizeof(ans.la_msg_ident)); in lock_answer()
[all …]
/freebsd/contrib/ntp/sntp/m4/
H A Dntp_rlimit.m478 [ans=$withval],
79 [ans=yes]
81 case "$ans" in
85 ans=200
87 *) ans=50
96 AC_MSG_RESULT([$ans])
97 AC_DEFINE_UNQUOTED([DFLT_RLIMIT_STACK], [$ans],
108 [ans=$withval],
109 [ans=yes]
111 case "$ans" in
[all …]
H A Dntp_libntp.m4859 ans=no
862 ans=yes
865 ans=no
868 ans=no
871 ans=no
874 ans=no
877 ans=no
880 ans=no
883 ans=no
886 ans
[all...]
H A Drealpath.m436 ans="yes",
37 ans="no",
38 ans="CROSS COMPILE!"
40 AC_MSG_RESULT([$ans])
41 case "$ans" in
/freebsd/contrib/netbsd-tests/rump/rumpkern/
H A Dt_modcmd.c65 struct sysctlnode q, ans[256]; in disable_autoload() local
73 alen = sizeof(ans); in disable_autoload()
78 if (rump_sys___sysctl(mib, 2, ans, &alen, &q, sizeof(q)) == -1) in disable_autoload()
81 for (i = 0; i < __arraycount(ans); i++) in disable_autoload()
82 if (strcmp("module", ans[i].sysctl_name) == 0) in disable_autoload()
84 if (i == __arraycount(ans)) { in disable_autoload()
89 mib[1] = ans[i].sysctl_num; in disable_autoload()
92 if (rump_sys___sysctl(mib, 3, ans, &alen, &q, sizeof(q)) == -1) in disable_autoload()
95 for (i = 0; i < __arraycount(ans); i++) in disable_autoload()
96 if (strcmp("autoload", ans[i].sysctl_name) == 0) in disable_autoload()
[all …]
/freebsd/lib/msun/tests/
H A Dnext_test.c44 #define test(exp, ans, ex) do { \ argument
45 double __ans = (ans); \
49 #define testf(exp, ans, ex) do { \ argument
50 float __ans = (ans); \
54 #define testl(exp, ans, ex) do { \ argument
55 long double __ans = (ans); \
59 #define testboth(arg1, arg2, ans, ex, prec) do { \ argument
60 test##prec(nextafter##prec((arg1), (arg2)), (ans), (ex)); \
61 test##prec(nexttoward##prec((arg1), (arg2)), (ans), (ex)); \
63 #define testall(arg1, arg2, ans, ex) do { \ argument
[all …]
/freebsd/contrib/netbsd-tests/net/if_loop/
H A Dt_pr.c118 struct sysctlnode q, ans[256]; in enable_locsums() local
127 alen = sizeof(ans); in enable_locsums()
132 if (rump_sys___sysctl(mib, 4, ans, &alen, &q, sizeof(q)) == -1) in enable_locsums()
135 for (i = 0; i < __arraycount(ans); i++) in enable_locsums()
136 if (strcmp("do_loopback_cksum", ans[i].sysctl_name) == 0) in enable_locsums()
138 if (i == __arraycount(ans)) { in enable_locsums()
143 mib[3] = ans[i].sysctl_num; in enable_locsums()
/freebsd/usr.sbin/rpcbind/
H A Dpmap_svc.c166 long ans; in pmapproc_change() local
219 ans = FALSE; in pmapproc_change()
222 ans = map_set(&rpcbreg, rpcbreg.r_owner); in pmapproc_change()
231 ans = ans1 || ans2; in pmapproc_change()
233 ans = FALSE; in pmapproc_change()
236 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t) &ans)) && in pmapproc_change()
245 fprintf(stderr, "%s\n", ans == TRUE ? "succeeded" : "failed"); in pmapproc_change()
248 rpcbs_set(RPCBVERS_2_STAT, ans); in pmapproc_change()
250 rpcbs_unset(RPCBVERS_2_STAT, ans); in pmapproc_change()
/freebsd/usr.sbin/ppp/
H A Dchap.c374 u_char *ans; in chap_Respond() local
376 ans = chap_BuildAnswer(name, key, chap->auth.id, chap->challenge.peer in chap_Respond()
382 if (ans) { in chap_Respond()
384 ans, *ans + 1 + strlen(name), name); in chap_Respond()
389 free(ans); in chap_Respond()
697 char *name, *key, *ans; in chap_Input() local
727 ans = NULL; in chap_Input()
775 if ((ans = malloc(alen + 1)) == NULL) { in chap_Input()
780 *ans = chap->auth.id; in chap_Input()
781 bp = mbuf_Read(bp, ans + 1, alen); in chap_Input()
[all …]
/freebsd/lib/libc/resolv/
H A Dres_send.c299 const u_char *buf, int buflen, u_char *ans, int anssiz) in res_nsend() argument
435 ans, anssiz, &resplen); in res_nsend()
471 n = send_vc(statp, buf, buflen, ans, anssiz, &terrno, in res_nsend()
484 buf, buflen, ans, anssiz, &terrno, in res_nsend()
503 ans, (resplen > anssiz) ? anssiz : resplen); in res_nsend()
521 ans, anssiz, &resplen); in res_nsend()
616 const u_char *buf, int buflen, u_char *ans, int anssiz, in send_vc() argument
620 HEADER *anhp = (HEADER *) ans; in send_vc()
718 cp = ans; in send_vc()
746 resplen = ns_get16(ans); in send_vc()
[all …]
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_testutils.c173 int err = atoi(tab->ans); in regress_dns_server_cb()
177 int err = atoi(tab->ans); in regress_dns_server_cb()
195 if (!evutil_inet_pton(AF_INET, tab->ans, &in)) { in regress_dns_server_cb()
196 TT_DIE(("Bad A value %s in table", tab->ans)); in regress_dns_server_cb()
202 if (!evutil_inet_pton(AF_INET6, tab->ans, &in6)) { in regress_dns_server_cb()
203 TT_DIE(("Bad AAAA value %s in table", tab->ans)); in regress_dns_server_cb()
/freebsd/contrib/libevent/test/
H A Dregress_testutils.c173 int err = atoi(tab->ans); in regress_dns_server_cb()
177 int err = atoi(tab->ans); in regress_dns_server_cb()
195 if (!evutil_inet_pton(AF_INET, tab->ans, &in)) { in regress_dns_server_cb()
196 TT_DIE(("Bad A value %s in table", tab->ans)); in regress_dns_server_cb()
202 if (!evutil_inet_pton(AF_INET6, tab->ans, &in6)) { in regress_dns_server_cb()
203 TT_DIE(("Bad AAAA value %s in table", tab->ans)); in regress_dns_server_cb()
/freebsd/contrib/dma/
H A Ddns.c139 unsigned char *ans; in dns_get_mx_list() local
154 ans = malloc(anssz); in dns_get_mx_list()
155 if (ans == NULL) in dns_get_mx_list()
162 err = res_search(searchhost, ns_c_in, ns_t_mx, ans, anssz); in dns_get_mx_list()
182 if (!ns_initparse(ans, anssz, &msg)) in dns_get_mx_list()
245 free(ans); in dns_get_mx_list()
/freebsd/sys/contrib/ncsw/Peripherals/BM/
H A Dbm.h342 uint64_t ans, size = 1; in BmBpidGet() local
349 ans = MM_GetForce(p_Bm->h_BpidMm, in BmBpidGet()
353 ans = base; in BmBpidGet()
385 memcpy((uint8_t*)&ans, reply.replyBody, sizeof(uint32_t)); in BmBpidGet()
390 ans = base; in BmBpidGet()
394 ans = MM_Get(p_Bm->h_BpidMm, in BmBpidGet()
398 KASSERT(ans < UINT32_MAX, ("Oops, %jx > UINT32_MAX!\n", (uintmax_t)ans)); in BmBpidGet()
399 return (uint32_t)ans; in BmBpidGet()
/freebsd/lib/libc/net/
H A Dgetnetbydns.c162 char ans[MAXHOSTNAMELEN]; in getnetanswer() local
204 ans[0] = '\0'; in getnetanswer()
205 (void)strncpy(&ans[0], bp, sizeof(ans) - 1); in getnetanswer()
206 ans[sizeof(ans) - 1] = '\0'; in getnetanswer()
234 n = strlen(ans) + 1; in getnetanswer()
240 strlcpy(bp, ans, ep - bp); in getnetanswer()

123