| /freebsd-head/contrib/llvm-project/compiler-rt/include/sanitizer/ |
| HD | linux_syscall_hooks.h | 25 #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 …]
|
| HD | netbsd_syscall_hooks.h | 36 #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-head/usr.sbin/rpc.lockd/ |
| HD | test.c | 15 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 …]
|
| /freebsd-head/contrib/ntp/libntp/ |
| HD | vint64ops.c | 30 vint64 res; in strtouv64() local 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() 86 accu = (uint32_t)res.W_s.ll * base; in strtouv64() 87 res.W_s.ll = (uint16_t)accu; in strtouv64() 89 + (uint32_t)res.W_s.lh * base; in strtouv64() 90 res.W_s.lh = (uint16_t)accu; in strtouv64() 92 res.D_s.hi = res.D_s.hi * base + (accu >> 16); in strtouv64() [all …]
|
| /freebsd-head/contrib/bc/tests/ |
| HD | bcl.c | 59 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 = bcl_string(n5); in main() [all …]
|
| /freebsd-head/contrib/libarchive/libarchive/ |
| HD | archive_entry_link_resolver.c | 101 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-head/sbin/hastd/ |
| HD | control.c | 55 child_cleanup(struct hast_resource *res) in child_cleanup() argument 58 proto_close(res->hr_ctrl); in child_cleanup() 59 res->hr_ctrl = NULL; in child_cleanup() 60 if (res->hr_event != NULL) { in child_cleanup() 61 proto_close(res->hr_event); in child_cleanup() 62 res->hr_event = NULL; in child_cleanup() 64 if (res->hr_conn != NULL) { in child_cleanup() 65 proto_close(res->hr_conn); in child_cleanup() 66 res->hr_conn = NULL; in child_cleanup() 68 res->hr_workerpid = 0; in child_cleanup() [all …]
|
| HD | secondary.c | 209 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 …]
|
| HD | metadata.c | 46 metadata_read(struct hast_resource *res, bool openrw) in metadata_read() argument 62 if (res->hr_localfd == -1) { in metadata_read() 63 if (provinfo(res, openrw) == -1) { in metadata_read() 68 pjdlog_debug(1, "Obtained info about %s.", res->hr_localpath); in metadata_read() 70 if (flock(res->hr_localfd, LOCK_EX | LOCK_NB) == -1) { in metadata_read() 74 res->hr_localpath); in metadata_read() 78 res->hr_localpath); in metadata_read() 82 pjdlog_debug(1, "Locked %s.", res->hr_localpath); in metadata_read() 102 done = pread(res->hr_localfd, buf, METADATA_SIZE, 0); in metadata_read() 113 res->hr_localpath); in metadata_read() [all …]
|
| HD | primary.c | 178 #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-head/sys/contrib/libsodium/test/default/ |
| HD | Makefile.am | 80 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-head/contrib/libcbor/src/cbor/internal/ |
| HD | builder_callbacks.c | 116 #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, ctx); in cbor_builder_uint8_callback() [all …]
|
| /freebsd-head/contrib/netbsd-tests/fs/common/ |
| HD | fstest_ext2fs.c | 59 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 …]
|
| HD | fstest_v7fs.c | 59 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 …]
|
| HD | fstest_sysvbfs.c | 59 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 …]
|
| HD | fstest_msdosfs.c | 59 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 …]
|
| HD | fstest_lfs.c | 66 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 …]
|
| HD | fstest_udf.c | 60 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 …]
|
| HD | fstest_ffs.c | 60 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-head/contrib/ntp/ntpd/ |
| HD | ntp_restrict.c | 118 restrict_u * res, in dump_restrict() argument 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() 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->expire > 0) { in dump_restrict() 141 printf(" expire %u\n", res->expire); in dump_restrict() [all …]
|
| /freebsd-head/crypto/heimdal/lib/roken/ |
| HD | copyhostent.c | 45 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-head/usr.sbin/bsnmpd/modules/snmp_hast/ |
| HD | hast_snmp.c | 155 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-head/contrib/llvm-project/compiler-rt/lib/nsan/ |
| HD | nsan_malloc_linux.cpp | 31 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-head/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/ |
| HD | test_nvlist.py | 39 res = {} 41 with nvlist_out(res) as nv_out: 43 return res 65 res = self._dict_to_nvlist_to_dict({}) 66 self.assertEqual(len(res), 0, b"expected empty dict") 90 res = self._dict_to_nvlist_to_dict(props) 91 self.assertEqual(props, res) 95 res = self._dict_to_nvlist_to_dict(props) 96 self.assertEqual(props, res) 100 res = self._dict_to_nvlist_to_dict(props) [all …]
|
| /freebsd-head/usr.sbin/ypldap/ |
| HD | yp.c | 277 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 …]
|