Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 2046) sorted by relevance

12345678910>>...82

/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h25 #define __sanitizer_syscall_post_time(res, tloc) \ argument
26 __sanitizer_syscall_post_impl_time(res, (long)(tloc))
29 #define __sanitizer_syscall_post_stime(res, tptr) \ argument
30 __sanitizer_syscall_post_impl_stime(res, (long)(tptr))
33 #define __sanitizer_syscall_post_gettimeofday(res, tv, tz) \ argument
34 __sanitizer_syscall_post_impl_gettimeofday(res, (long)(tv), (long)(tz))
37 #define __sanitizer_syscall_post_settimeofday(res, tv, tz) \ argument
38 __sanitizer_syscall_post_impl_settimeofday(res, (long)(tv), (long)(tz))
41 #define __sanitizer_syscall_post_adjtimex(res, txc_p) \ argument
42 __sanitizer_syscall_post_impl_adjtimex(res, (long)(txc_p))
[all …]
H A Dnetbsd_syscall_hooks.h36 #define __sanitizer_syscall_post_syscall(res, code, arg0, arg1, arg2, arg3, \ argument
39 res, (long long)(code), (long long)(arg0), (long long)(arg1), \
44 #define __sanitizer_syscall_post_exit(res, rval) \ argument
45 __sanitizer_syscall_post_impl_exit(res, (long long)(rval))
47 #define __sanitizer_syscall_post_fork(res) \ argument
48 __sanitizer_syscall_post_impl_fork(res)
52 #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \ argument
53 __sanitizer_syscall_post_impl_read(res, (long long)(fd), (long long)(buf), \
58 #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \ argument
59 __sanitizer_syscall_post_impl_write(res, (long long)(fd), (long long)(buf), \
[all …]
/freebsd/usr.sbin/rpc.lockd/
H A Dtest.c15 static nlm_testres res; local
17 bzero((char *)&res, sizeof(res));
18 …if (clnt_call(clnt, NLM_TEST, xdr_nlm_testargs, argp, xdr_nlm_testres, &res, TIMEOUT) != RPC_SUCCE…
21 return (&res);
31 static nlm_res res; local
33 bzero((char *)&res, sizeof(res));
34 …if (st = clnt_call(clnt, NLM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCC…
39 return (&res);
48 static nlm_res res; local
50 bzero((char *)&res, sizeof(res));
[all …]
H A Dlock_proc.c428 static nlm_testres res; in nlm_test_1_svc() local
444 res.cookie = arg->cookie; in nlm_test_1_svc()
446 res.stat.stat = nlm_granted; in nlm_test_1_svc()
448 res.stat.stat = nlm_denied; in nlm_test_1_svc()
449 memcpy(&res.stat.nlm_testrply_u.holder, holder, in nlm_test_1_svc()
451 res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset; in nlm_test_1_svc()
452 res.stat.nlm_testrply_u.holder.l_len = holder->l_len; in nlm_test_1_svc()
454 return (&res); in nlm_test_1_svc()
460 nlm_testres res; in nlm_test_msg_1_svc() local
476 res.cookie = arg->cookie; in nlm_test_msg_1_svc()
[all …]
/freebsd/contrib/ntp/libntp/
H A Dvint64ops.c30 vint64 res; in strtouv64()
60 memset(&res, 0xFF, sizeof(res)); in strtouv64()
62 return res; in strtouv64()
65 ZERO(res); in strtouv64()
79 res.Q_s = res.Q_s * base + digit; in strtouv64()
81 /* res *= base, using 16x16->32 bit in strtouv64()
86 accu = (uint32_t)res.W_s.ll * base; in strtouv64()
87 res in strtouv64()
29 vint64 res; strtouv64() local
114 int res; icmpv64() local
138 int res; ucmpv64() local
161 vint64 res; addv64() local
180 vint64 res; subv64() local
199 vint64 res; addv64i32() local
218 vint64 res; subv64i32() local
237 vint64 res; addv64u32() local
256 vint64 res; subv64u32() local
[all...]
/freebsd/contrib/ntp/ntpd/
H A Dntp_restrict.c118 restrict_u * res,
126 inet_ntop(AF_INET6, &res->u.v6.addr, as, sizeof as); in dump_restrict()
127 inet_ntop(AF_INET6, &res->u.v6.mask, ms, sizeof ms); in dump_restrict() argument
131 sia.s_addr = htonl(res->u.v4.addr); in dump_restrict()
132 sim.s_addr = htonl(res->u.v4.addr); in dump_restrict()
137 as, ms, res->count, res->ippeerlimit, in dump_restrict()
138 mflags_str(res->mflags), in dump_restrict()
139 rflags_str(res->rflags)); in dump_restrict()
140 if (res in dump_restrict()
157 restrict_u * res; dump_restricts() local
240 restrict_u * res; alloc_res4() local
266 restrict_u * res; alloc_res6() local
288 free_res(restrict_u * res,int v6) free_res() argument
342 restrict_u * res; match_restrict4_addr() local
373 restrict_u * res; match_restrict6_addr() local
408 restrict_u *res; match_restrict_entry() local
611 restrict_u * res; hack_restrict() local
752 restrict_u * res; restrict_source() local
[all...]
/freebsd/contrib/bc/tests/
H A Dbcl.c59 char* res; in main() local
129 res = bcl_string(n5); in main()
130 if (res == NULL) err(BCL_ERROR_FATAL_ALLOC_ERR); in main()
131 if (strcmp(res, "-25452.9108273")) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
135 free(res); in main()
140 res = bcl_string_keep(n3); in main()
141 if (res == NULL) err(BCL_ERROR_FATAL_ALLOC_ERR); in main()
142 if (strcmp(res, "-25452.9108273")) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
146 free(res); in main()
154 res in main()
[all...]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_entry_link_resolver.c101 struct archive_entry_linkresolver *res; in archive_entry_linkresolver_new() local
108 res = calloc(1, sizeof(struct archive_entry_linkresolver)); in archive_entry_linkresolver_new()
109 if (res == NULL) in archive_entry_linkresolver_new()
111 res->number_buckets = links_cache_initial_size; in archive_entry_linkresolver_new()
112 res->buckets = calloc(res->number_buckets, sizeof(res->buckets[0])); in archive_entry_linkresolver_new()
113 if (res->buckets == NULL) { in archive_entry_linkresolver_new()
114 free(res); in archive_entry_linkresolver_new()
117 return (res); in archive_entry_linkresolver_new()
121 archive_entry_linkresolver_set_strategy(struct archive_entry_linkresolver *res, in archive_entry_linkresolver_set_strategy() argument
130 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_OLD_CPIO; in archive_entry_linkresolver_set_strategy()
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A DMakefile.am80 aead_aes256gcm.res \
81 aead_chacha20poly1305.res \
82 aead_xchacha20poly1305.res \
83 auth.res \
84 auth2.res \
85 auth3.res \
86 auth5.res \
87 auth6.res \
88 auth7.res \
89 box.res \
[all …]
/freebsd/sbin/hastd/
H A Dsecondary.c209 init_local(struct hast_resource *res) in init_local() argument
212 if (metadata_read(res, true) == -1) in init_local()
217 init_remote(struct hast_resource *res, struct nv *nvin) in init_remote() argument
226 if (proto_send(res->hr_remoteout, NULL, 0) == -1) in init_remote()
231 nv_add_int64(nvout, (int64_t)res->hr_datasize, "datasize"); in init_remote()
232 nv_add_int32(nvout, (int32_t)res->hr_extentsize, "extentsize"); in init_remote()
234 res->hr_primary_localcnt = nv_get_uint64(nvin, "localcnt"); in init_remote()
235 res->hr_primary_remotecnt = nv_get_uint64(nvin, "remotecnt"); in init_remote()
236 nv_add_uint64(nvout, res->hr_secondary_localcnt, "localcnt"); in init_remote()
237 nv_add_uint64(nvout, res->hr_secondary_remotecnt, "remotecnt"); in init_remote()
[all …]
H A Dprimary.c178 #define ISCONNECTED(res, no) \ argument
179 ((res)->hr_remotein != NULL && (res)->hr_remoteout != NULL)
280 cleanup(struct hast_resource *res) in cleanup() argument
288 if (res->hr_ggateunit >= 0) { in cleanup()
293 ggiod.gctl_unit = res->hr_ggateunit; in cleanup()
295 if (ioctl(res->hr_ggatefd, G_GATE_CMD_DESTROY, &ggiod) == -1) { in cleanup()
298 res->hr_provname); in cleanup()
300 res->hr_ggateunit = -1; in cleanup()
333 hast_activemap_flush(struct hast_resource *res) __unlocks(res->hr_amp_lock) in hast_activemap_flush() argument
339 mtx_lock(&res->hr_amp_diskmap_lock); in hast_activemap_flush()
[all …]
/freebsd/contrib/libcbor/src/cbor/internal/
H A Dbuilder_callbacks.c116 #define CHECK_RES(ctx, res) \ argument
118 if (res == NULL) { \
134 #define PUSH_CTX_STACK(ctx, res, subitems) \ argument
136 if (_cbor_stack_push(ctx->stack, res, subitems) == NULL) { \
137 cbor_decref(&res); \
144 cbor_item_t *res = cbor_new_int8(); in cbor_builder_uint8_callback() local
145 CHECK_RES(ctx, res); in cbor_builder_uint8_callback()
146 cbor_mark_uint(res); in cbor_builder_uint8_callback()
147 cbor_set_uint8(res, value); in cbor_builder_uint8_callback()
148 _cbor_builder_append(res, ct in cbor_builder_uint8_callback()
153 cbor_item_t *res = cbor_new_int16(); cbor_builder_uint16_callback() local
162 cbor_item_t *res = cbor_new_int32(); cbor_builder_uint32_callback() local
171 cbor_item_t *res = cbor_new_int64(); cbor_builder_uint64_callback() local
180 cbor_item_t *res = cbor_new_int8(); cbor_builder_negint8_callback() local
189 cbor_item_t *res = cbor_new_int16(); cbor_builder_negint16_callback() local
198 cbor_item_t *res = cbor_new_int32(); cbor_builder_negint32_callback() local
207 cbor_item_t *res = cbor_new_int64(); cbor_builder_negint64_callback() local
250 cbor_item_t *res = cbor_new_indefinite_bytestring(); cbor_builder_byte_string_start_callback() local
301 cbor_item_t *res = cbor_new_indefinite_string(); cbor_builder_string_start_callback() local
309 cbor_item_t *res = cbor_new_definite_array(size); cbor_builder_array_start_callback() local
320 cbor_item_t *res = cbor_new_indefinite_array(); cbor_builder_indef_array_start_callback() local
327 cbor_item_t *res = cbor_new_indefinite_map(); cbor_builder_indef_map_start_callback() local
335 cbor_item_t *res = cbor_new_definite_map(size); cbor_builder_map_start_callback() local
383 cbor_item_t *res = cbor_new_float2(); cbor_builder_float2_callback() local
391 cbor_item_t *res = cbor_new_float4(); cbor_builder_float4_callback() local
399 cbor_item_t *res = cbor_new_float8(); cbor_builder_float8_callback() local
407 cbor_item_t *res = cbor_new_null(); cbor_builder_null_callback() local
414 cbor_item_t *res = cbor_new_undef(); cbor_builder_undefined_callback() local
421 cbor_item_t *res = cbor_build_bool(value); cbor_builder_boolean_callback() local
428 cbor_item_t *res = cbor_new_tag(value); cbor_builder_tag_callback() local
[all...]
/freebsd/contrib/netbsd-tests/fs/common/
H A Dfstest_ext2fs.c59 int res; in ext2fs_fstest_newfs() local
66 res = system(cmd); in ext2fs_fstest_newfs()
67 if (res != 0) in ext2fs_fstest_newfs()
68 return res; in ext2fs_fstest_newfs()
70 res = rump_init(); in ext2fs_fstest_newfs()
71 if (res != 0) in ext2fs_fstest_newfs()
72 return res; in ext2fs_fstest_newfs()
82 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in ext2fs_fstest_newfs()
83 if (res != 0) { in ext2fs_fstest_newfs()
85 return res; in ext2fs_fstest_newfs()
[all …]
H A Dfstest_v7fs.c59 int res; in v7fs_fstest_newfs() local
66 res = system(cmd); in v7fs_fstest_newfs()
67 if (res != 0) in v7fs_fstest_newfs()
68 return res; in v7fs_fstest_newfs()
70 res = rump_init(); in v7fs_fstest_newfs()
71 if (res != 0) in v7fs_fstest_newfs()
72 return res; in v7fs_fstest_newfs()
83 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in v7fs_fstest_newfs()
84 if (res != 0) { in v7fs_fstest_newfs()
86 return res; in v7fs_fstest_newfs()
[all …]
H A Dfstest_sysvbfs.c59 int res; in sysvbfs_fstest_newfs() local
66 res = system(cmd); in sysvbfs_fstest_newfs()
67 if (res != 0) in sysvbfs_fstest_newfs()
68 return res; in sysvbfs_fstest_newfs()
70 res = rump_init(); in sysvbfs_fstest_newfs()
71 if (res != 0) in sysvbfs_fstest_newfs()
72 return res; in sysvbfs_fstest_newfs()
82 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in sysvbfs_fstest_newfs()
83 if (res != 0) { in sysvbfs_fstest_newfs()
85 return res; in sysvbfs_fstest_newfs()
[all …]
H A Dfstest_msdosfs.c59 int res; in msdosfs_fstest_newfs() local
66 res = system(cmd); in msdosfs_fstest_newfs()
67 if (res != 0) in msdosfs_fstest_newfs()
68 return res; in msdosfs_fstest_newfs()
70 res = rump_init(); in msdosfs_fstest_newfs()
71 if (res != 0) in msdosfs_fstest_newfs()
72 return res; in msdosfs_fstest_newfs()
83 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in msdosfs_fstest_newfs()
84 if (res != 0) { in msdosfs_fstest_newfs()
86 return res; in msdosfs_fstest_newfs()
[all …]
H A Dfstest_lfs.c66 int res; in lfs_fstest_newfs() local
73 res = system(cmd); in lfs_fstest_newfs()
74 if (res != 0) in lfs_fstest_newfs()
75 return res; in lfs_fstest_newfs()
77 res = rump_init(); in lfs_fstest_newfs()
78 if (res != 0) in lfs_fstest_newfs()
79 return res; in lfs_fstest_newfs()
91 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in lfs_fstest_newfs()
92 if (res != 0) { in lfs_fstest_newfs()
94 return res; in lfs_fstest_newfs()
[all …]
H A Dfstest_udf.c60 int res; in udf_fstest_newfs() local
73 res = system(cmd); in udf_fstest_newfs()
75 if (res != 0) in udf_fstest_newfs()
76 return res; in udf_fstest_newfs()
78 res = rump_init(); in udf_fstest_newfs()
79 if (res != 0) in udf_fstest_newfs()
80 return res; in udf_fstest_newfs()
91 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in udf_fstest_newfs()
92 if (res != 0) { in udf_fstest_newfs()
94 return res; in udf_fstest_newfs()
[all …]
H A Dfstest_ffs.c60 int res; in ffs_fstest_newfs() local
70 res = system(cmd); in ffs_fstest_newfs()
72 if (res != 0) in ffs_fstest_newfs()
73 return res; in ffs_fstest_newfs()
75 res = rump_init(); in ffs_fstest_newfs()
76 if (res != 0) in ffs_fstest_newfs()
77 return res; in ffs_fstest_newfs()
87 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in ffs_fstest_newfs()
88 if (res != 0) { in ffs_fstest_newfs()
90 return res; in ffs_fstest_newfs()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_hast/
H A Dhast_snmp.c155 struct hast_snmp_resource *res; in free_resources() local
157 while ((res = TAILQ_FIRST(&resources)) != NULL) { in free_resources()
158 TAILQ_REMOVE(&resources, res, link); in free_resources()
159 free(res); in free_resources()
272 struct hast_snmp_resource *res; in update_resources() local
299 res = calloc(1, sizeof(*res)); in update_resources()
300 if (res == NULL) { in update_resources()
302 "resource", sizeof(*res)); in update_resources()
305 res->index = i + 1; in update_resources()
306 strncpy(res->name, str, sizeof(res->name) - 1); in update_resources()
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dcopyhostent.c45 struct hostent *res; in copyhostent() local
49 res = malloc (sizeof (*res)); in copyhostent()
50 if (res == NULL) in copyhostent()
52 res->h_name = NULL; in copyhostent()
53 res->h_aliases = NULL; in copyhostent()
54 res->h_addrtype = h->h_addrtype; in copyhostent()
55 res->h_length = h->h_length; in copyhostent()
56 res->h_addr_list = NULL; in copyhostent()
57 res->h_name = strdup (h->h_name); in copyhostent()
58 if (res->h_name == NULL) { in copyhostent()
[all …]
/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
H A Dtest_nvlist.py38 res = {}
40 with nvlist_out(res) as nv_out:
42 return res
64 res = self._dict_to_nvlist_to_dict({})
65 self.assertEqual(len(res), 0, b"expected empty dict")
89 res = self._dict_to_nvlist_to_dict(props)
90 self.assertEqual(props, res)
94 res = self._dict_to_nvlist_to_dict(props)
95 self.assertEqual(props, res)
99 res = self._dict_to_nvlist_to_dict(props)
[all …]
/freebsd/usr.sbin/ypldap/
H A Dyp.c277 yp_valid_domain(char *domain, struct ypresp_val *res) in yp_valid_domain() argument
284 res->stat = YP_NODOM; in yp_valid_domain()
293 static bool_t res; in ypproc_domain_2_svc() local
295 res = (bool_t)1; in ypproc_domain_2_svc()
297 res = (bool_t)0; in ypproc_domain_2_svc()
298 return (&res); in ypproc_domain_2_svc()
304 static bool_t res; in ypproc_domain_nonack_2_svc() local
308 res = (bool_t)1; in ypproc_domain_nonack_2_svc()
309 return (&res); in ypproc_domain_nonack_2_svc()
319 static struct ypresp_val res; in ypproc_match_2_svc() local
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_malloc_linux.cpp31 void *res = REAL(aligned_alloc)(align, size); in INTERCEPTOR() local
32 if (res) in INTERCEPTOR()
33 __nsan_set_value_unknown(static_cast<u8 *>(res), size); in INTERCEPTOR()
34 return res; in INTERCEPTOR()
41 void *res = REAL(calloc)(nmemb, size); in INTERCEPTOR() local
42 if (res) in INTERCEPTOR()
43 __nsan_set_value_unknown(static_cast<u8 *>(res), nmemb * size); in INTERCEPTOR()
44 return res; in INTERCEPTOR()
56 void *res = REAL(malloc)(size); in INTERCEPTOR() local
57 if (res) in INTERCEPTOR()
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_resource.c71 acpi_lookup_irq_handler(ACPI_RESOURCE *res, void *context) in acpi_lookup_irq_handler() argument
81 switch (res->Type) { in acpi_lookup_irq_handler()
83 irqnum = res->Data.Irq.InterruptCount; in acpi_lookup_irq_handler()
85 if (res->Data.Irq.Interrupts[i] == req->irq) { in acpi_lookup_irq_handler()
91 trig = res->Data.Irq.Triggering; in acpi_lookup_irq_handler()
92 pol = res->Data.Irq.Polarity; in acpi_lookup_irq_handler()
95 irqnum = res->Data.ExtendedIrq.InterruptCount; in acpi_lookup_irq_handler()
97 if (res->Data.ExtendedIrq.Interrupts[i] == req->irq) { in acpi_lookup_irq_handler()
103 trig = res->Data.ExtendedIrq.Triggering; in acpi_lookup_irq_handler()
104 pol = res->Data.ExtendedIrq.Polarity; in acpi_lookup_irq_handler()
[all …]

12345678910>>...82