/freebsd/contrib/ntp/sntp/tests/ |
H A D | kodFile.c | 49 struct kod_entry* res; in test_ReadCorrectFile() local 52 TEST_ASSERT_EQUAL_STRING("DENY", res->type); in test_ReadCorrectFile() 54 TEST_ASSERT_EQUAL(0x12345678, res->timestamp); in test_ReadCorrectFile() 57 TEST_ASSERT_EQUAL_STRING("RSTR", res->type); in test_ReadCorrectFile() 59 TEST_ASSERT_EQUAL(0xfff, res->timestamp); in test_ReadCorrectFile() 69 struct kod_entry* res; in test_ReadFileWithBlankLines() local 72 TEST_ASSERT_EQUAL_STRING("DENY", res->type); in test_ReadFileWithBlankLines() 77 TEST_ASSERT_EQUAL_STRING("RSTR", res->type); in test_ReadFileWithBlankLines() 79 TEST_ASSERT_EQUAL(0xfff, res->timestamp); in test_ReadFileWithBlankLines() 82 TEST_ASSERT_EQUAL_STRING("DENY", res->type); in test_ReadFileWithBlankLines() [all …]
|
/freebsd/sys/kgssapi/ |
H A D | gss_accept_sec_context.c | 56 struct accept_sec_context_res res; in gss_accept_sec_context() local 81 bzero(&res, sizeof(res)); in gss_accept_sec_context() 89 if (res.major_status != GSS_S_COMPLETE in gss_accept_sec_context() 91 *minor_status = res.minor_status; in gss_accept_sec_context() 93 return (res.major_status); in gss_accept_sec_context() 96 *minor_status = res.minor_status; in gss_accept_sec_context() 108 ctx->handle = res.ctx; in gss_accept_sec_context() 110 name->handle = res.src_name; in gss_accept_sec_context() 121 *ret_flags = res.ret_flags; in gss_accept_sec_context() 123 *time_rec = res.time_rec; in gss_accept_sec_context() [all …]
|
H A D | gss_pname_to_uid.c | 46 struct pname_to_uid_res res; in gss_pname_to_uid() local 63 bzero(&res, sizeof(res)); in gss_pname_to_uid() 72 *minor_status = res.minor_status; in gss_pname_to_uid() 73 return (res.major_status); in gss_pname_to_uid() 76 *uidp = res.uid; in gss_pname_to_uid() 86 struct pname_to_uid_res res; in gss_pname_to_unix_cred() local 104 bzero(&res, sizeof(res)); in gss_pname_to_unix_cred() 114 return (res.major_status); in gss_pname_to_unix_cred() 117 *uidp = res.uid; in gss_pname_to_unix_cred() 118 *gidp = res.gid; in gss_pname_to_unix_cred() [all …]
|
H A D | gss_init_sec_context.c | 60 struct init_sec_context_res res; in gss_init_sec_context() local 93 bzero(&res, sizeof(res)); in gss_init_sec_context() 101 if (res.major_status != GSS_S_COMPLETE in gss_init_sec_context() 103 *minor_status = res.minor_status; in gss_init_sec_context() 105 return (res.major_status); in gss_init_sec_context() 108 *minor_status = res.minor_status; in gss_init_sec_context() 119 ctx->handle = res.ctx; in gss_init_sec_context() 124 *ret_flags = res.ret_flags; in gss_init_sec_context() 126 *time_rec = res.time_rec; in gss_init_sec_context() 135 if (res.major_status == GSS_S_COMPLETE) in gss_init_sec_context() [all …]
|
/freebsd/contrib/ldns-host/ |
H A D | ldns-host.c | 183 res->_nameservers[nameserver], ldns_resolver_port(res), &ns_len); in ldns_tcp_start() 191 if (res->_socket <= 0) { in ldns_tcp_start() 218 if (res->_socket > 0) { in ldns_tcp_start() 220 res->_socket = 0; in ldns_tcp_start() 232 if (res->_socket <= 0) in ldns_tcp_read() 237 res->_socket, &size, ldns_resolver_timeout(res)); in ldns_tcp_read() 254 close(res->_socket); in ldns_tcp_read() 255 res->_socket = 0; in ldns_tcp_read() 261 if (res->_socket > 0) { in ldns_tcp_close() 263 res->_socket = 0; in ldns_tcp_close() [all …]
|
/freebsd/crypto/heimdal/appl/login/ |
H A D | tty.c | 45 char *res = tty; in clean_ttyname() local 48 res += strlen(_PATH_DEV); in clean_ttyname() 49 if (strncmp (res, "pty/", 4) == 0) in clean_ttyname() 50 res += 4; in clean_ttyname() 52 res += 5; in clean_ttyname() 53 return res; in clean_ttyname() 63 char *res = tty; in make_id() local 66 res += 4; in make_id() 67 if (strncmp (res, "tty", 3) == 0) in make_id() 68 res += 3; in make_id() [all …]
|
/freebsd/sys/arm64/coresight/ |
H A D | coresight_etm4x.c | 87 bus_write_4(sc->res, TRCCONFIGR, reg); in etm_prepare() 94 bus_write_4(sc->res, TRCSTALLCTLR, 0); in etm_prepare() 106 bus_write_4(sc->res, TRCTSCTLR, 0); in etm_prepare() 124 bus_write_4(sc->res, TRCVICTLR, reg); in etm_prepare() 150 bus_write_4(sc->res, TRCSSCSR(0), 0); in etm_prepare() 158 bus_write_4(sc->res, TRCVISSCTLR, 0); in etm_prepare() 161 bus_write_4(sc->res, TRCVDCTLR, 0); in etm_prepare() 181 bus_write_4(sc->res, TRCOSLAR, 0); in etm_init() 183 reg = bus_read_4(sc->res, TRCIDR(1)); in etm_init() 207 reg = bus_read_4(sc->res, TRCSTATR); in etm_enable() [all …]
|
H A D | coresight_tmc.c | 75 reg = bus_read_4(sc->res, TMC_STS); in tmc_start() 92 reg = bus_read_4(sc->res, TMC_CTL); in tmc_stop() 94 bus_write_4(sc->res, TMC_CTL, reg); in tmc_stop() 97 reg = bus_read_4(sc->res, TMC_STS); in tmc_stop() 122 bus_read_4(sc->res, TMC_STS), in tmc_configure_etf() 123 bus_read_4(sc->res, TMC_CTL), in tmc_configure_etf() 124 bus_read_4(sc->res, TMC_RSZ), in tmc_configure_etf() 125 bus_read_4(sc->res, TMC_RRP), in tmc_configure_etf() 126 bus_read_4(sc->res, TMC_RWP), in tmc_configure_etf() 166 bus_write_4(sc->res, TMC_TRG, 8); in tmc_configure_etr() [all …]
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_stub.cpp | 148 void *res; in kmp_malloc() local 158 return res; in kmp_malloc() 162 void *res; in kmp_aligned_malloc() local 172 return res; in kmp_aligned_malloc() 176 void *res; in kmp_calloc() local 182 return res; in kmp_calloc() 186 void *res; in kmp_realloc() local 192 return res; in kmp_realloc() 380 void *res; in omp_alloc() local 394 void *res; in omp_aligned_alloc() local [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | acpi_device.c | 87 struct acpi_resource_list_entry *res; in acpi_device_destroy() local 89 res = SLIST_FIRST(&dev->crs); in acpi_device_destroy() 91 free(res); in acpi_device_destroy() 105 struct acpi_resource_list_entry *const res = calloc(1, sizeof(*res)); in acpi_device_add_res_fixed_ioport() local 106 if (res == NULL) { in acpi_device_add_res_fixed_ioport() 110 res->type = ACPI_RESOURCE_TYPE_FIXED_IO; in acpi_device_add_res_fixed_ioport() 111 res->data.FixedIo.Address = port; in acpi_device_add_res_fixed_ioport() 127 struct acpi_resource_list_entry *const res = calloc(1, sizeof(*res)); in acpi_device_add_res_fixed_memory32() local 128 if (res == NULL) { in acpi_device_add_res_fixed_memory32() 167 SLIST_FOREACH(res, &dev->crs, chain) { in acpi_device_write_dsdt_crs() [all …]
|
/freebsd/sys/dev/wdatwd/ |
H A D | wdatwd.c | 428 res = malloc(sizeof(*res), in wdat_alloc_region() 576 TAILQ_FOREACH(res, &sc->res, link) in wdat_release_resource() 577 if (res->res != NULL) { in wdat_release_resource() 579 res->rid, res->res); in wdat_release_resource() 581 res->res = NULL; in wdat_release_resource() 592 res = TAILQ_FIRST(&sc->res); in wdat_release_resource() 593 TAILQ_REMOVE(&sc->res, res, link); in wdat_release_resource() 716 TAILQ_FOREACH(res, &sc->res, link) { in wdatwd_attach() 730 res->start, res->end - res->start); in wdatwd_attach() 731 res->res = bus_alloc_resource_any( in wdatwd_attach() [all …]
|
/freebsd/sbin/hastctl/ |
H A D | hastctl.c | 108 res->hr_localpath); in create_one() 114 res->hr_localpath, res->hr_local_sectorsize); in create_one() 156 res->hr_localpath); in create_one() 163 if (res->hr_localfd >= 0) in create_one() 164 close(res->hr_localfd); in create_one() 173 struct hast_resource *res; in control_create() local 185 if (res == NULL) { in control_create() 233 ret = dump_one(res); in control_dump() 245 if (res == NULL) { in control_dump() 251 ret = dump_one(res); in control_dump() [all …]
|
/freebsd/contrib/netbsd-tests/fs/common/ |
H A D | fstest_tmpfs.c | 56 int res; in tmpfs_fstest_newfs() local 60 if (res != 0) in tmpfs_fstest_newfs() 61 return res; in tmpfs_fstest_newfs() 89 int res; in tmpfs_fstest_mount() local 93 if (res == -1) in tmpfs_fstest_mount() 94 return res; in tmpfs_fstest_mount() 98 return res; in tmpfs_fstest_mount() 104 int res; in tmpfs_fstest_unmount() local 107 if (res == -1) in tmpfs_fstest_unmount() 108 return res; in tmpfs_fstest_unmount() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/zstd/ |
H A D | zstd.h | 170 res->version = BSWAP_32(raw); in zfs_get_hdrmeta() 171 res->version = BF32_GET(res->version, 8, 24); in zfs_get_hdrmeta() 176 res->version = BF32_GET(res->version, 0, 24); in zfs_get_hdrmeta() 187 res->level = 0; in zfs_get_hdrmeta() 188 res->version = 0; in zfs_get_hdrmeta() 197 zfs_zstdmeta_t res; in zfs_get_hdrlevel() local 198 zfs_get_hdrmeta(blob, &res); in zfs_get_hdrlevel() 199 level = res.level; in zfs_get_hdrlevel() 207 zfs_zstdmeta_t res; in zfs_get_hdrversion() local 208 zfs_get_hdrmeta(blob, &res); in zfs_get_hdrversion() [all …]
|
/freebsd/bin/pax/ |
H A D | ar_subs.c | 70 int res; in list() local 147 int res; in extract() local 319 if (!res) in extract() 352 int res; in wr_archive() local 559 int res; in append() local 721 int res; in copy() local 803 res = 1; in copy() 971 int res; in next_head() local 991 if ((ret = rd_wrbuf(hdend, res)) == res) in next_head() 1087 res = 1; in next_head() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVInstrInfo.td | 91 def OpUndef: Op<1, (outs ID:$res), (ins TYPE:$type), "$res = OpUndef $type">; 92 def OpSizeOf: Op<321, (outs ID:$res), (ins TYPE:$ty, ID:$ptr), "$res = OpSizeOf $ty $ptr">; 169 def OpTypeSampler: Op<26, (outs TYPE:$res), (ins), "$res = OpTypeSampler">; 176 def OpTypeStruct: Op<30, (outs TYPE:$res), (ins variable_ops), "$res = OpTypeStruct">; 183 def OpTypeEvent: Op<34, (outs TYPE:$res), (ins), "$res = OpTypeEvent">; 184 def OpTypeDeviceEvent: Op<35, (outs TYPE:$res), (ins), "$res = OpTypeDeviceEvent">; 185 def OpTypeReserveId: Op<36, (outs TYPE:$res), (ins), "$res = OpTypeReserveId">; 186 def OpTypeQueue: Op<37, (outs TYPE:$res), (ins), "$res = OpTypeQueue">; 187 def OpTypePipe: Op<38, (outs TYPE:$res), (ins AccessQualifier:$a), "$res = OpTypePipe $a">; 190 def OpTypePipeStorage: Op<322, (outs TYPE:$res), (ins), "$res = OpTypePipeStorage">; [all …]
|
/freebsd/tools/regression/poll/ |
H A D | pipepoll.c | 60 if (res != res_expected) { in report() 64 res, res_expected); in report() 92 int fd2, res; in child() local 104 if ((res = poll(&pfd, 1, 0)) < 0) in child() 122 if ((res = poll(&pfd, 1, 0)) < 0) in child() 130 if ((res = poll(&pfd, 1, 0)) < 0) in child() 135 if ((res = poll(&pfd, 1, 0)) < 0) in child() 143 if ((res = poll(&pfd, 1, 0)) < 0) in child() 158 if ((res = poll(&pfd, 1, 0)) < 0) in child() 166 if ((res = poll(&pfd, 1, 0)) < 0) in child() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | dbm.c | 166 return &res; in dbm_page_get() 219 return res; in dbm_page_next() 268 return res; in page_bytitle() 293 return res; in page_bytitle() 309 return res; in page_bytitle() 326 return res; in page_byarch() 345 return res; in page_byarch() 369 return res; in page_bymacro() 372 return res; in page_bymacro() 379 return res; in page_bymacro() [all …]
|
/freebsd/contrib/netbsd-tests/net/net/ |
H A D | t_udp.c | 20 struct addrinfo *res; in sendit() local 31 e = getaddrinfo("localhost", "9999", &hints, &res); in sendit() 36 S = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit() 40 e = bind(S, res->ai_addr, res->ai_addrlen); in sendit() 45 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit() 50 e = sendto(s, msg, sizeof(msg), 0, res->ai_addr, res->ai_addrlen); in sendit() 54 e = sendto(s, msg, sizeof(msg), 0, res->ai_addr, res->ai_addrlen); in sendit() 59 e = connect(s, res->ai_addr, res->ai_addrlen); in sendit() 67 e = connect(s, res->ai_addr, res->ai_addrlen); in sendit()
|
/freebsd/sys/contrib/x86emu/ |
H A D | x86emu.c | 6728 res = d; in rcl_byte() 6778 res = d; in rcl_word() 6803 res = d; in rcl_long() 6848 res = d; in rcr_byte() 6908 res = d; in rcr_word() 6941 res = d; in rcr_long() 6986 res = d; in rol_byte() 6998 XOR2((res & 0x1) + ((res >> 6) & 0x2)), in rol_byte() 7018 res = d; in rol_word() 7024 XOR2((res & 0x1) + ((res >> 14) & 0x2)), in rol_word() [all …]
|
/freebsd/contrib/libcbor/src/ |
H A D | cbor.c | 119 cbor_item_t *res; in _cbor_copy_int() local 137 return res; in _cbor_copy_int() 185 return res; in cbor_copy() 211 return res; in cbor_copy() 214 cbor_item_t *res; in cbor_copy() local 220 if (res == NULL) { in cbor_copy() 237 return res; in cbor_copy() 240 cbor_item_t *res; in cbor_copy() local 273 return res; in cbor_copy() 299 int res = b; in _pow() local [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-all.h | 384 struct resource *res; member 502 #define ATA_INB(res, offset) \ argument 503 bus_read_1((res), (offset)) 505 #define ATA_INW(res, offset) \ argument 506 bus_read_2((res), (offset)) 507 #define ATA_INW_STRM(res, offset) \ argument 508 bus_read_stream_2((res), (offset)) 509 #define ATA_INL(res, offset) \ argument 510 bus_read_4((res), (offset)) 519 #define ATA_OUTB(res, offset, value) \ argument [all …]
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_rmdirrace.c | 68 int res, fd, quit; in race() local 77 res = rump_sys_chdir(path); in race() 78 if (res == -1) in race() 84 if (res != 0) in race() 87 if (res != 0) in race() 94 res = pthread_join(th2, NULL); in race() 95 if (res != 0) in race() 97 res = pthread_join(th1, NULL); in race() 98 if (res != 0) in race() 101 res = rump_sys_fchdir(fd); in race() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | syzkaller67.sh | 55 intptr_t res = 0; 64 if (res != -1) 65 r[0] = res; 68 if (res != -1) 69 r[1] = res; 72 if (res != -1) 73 r[2] = res; 81 if (res != -1) 82 r[3] = res; 88 if (res != -1) [all …]
|
/freebsd/contrib/ntp/sntp/libopts/ |
H A D | tokenize.c | 109 token_list_t * res; in alloc_token_list() local 136 res = malloc(sizeof(*res) + (size_t)(pz - str) in alloc_token_list() 140 if (res == NULL) in alloc_token_list() 142 else res->tkn_list[0] = (ch_t *)(res->tkn_list + (max_token_ct - 1)); in alloc_token_list() 144 return res; in alloc_token_list() 226 if (res == NULL) in ao_string_tokenize() 227 return res; in ao_string_tokenize() 230 res->tkn_ct = 0; in ao_string_tokenize() 233 res->tkn_list[ res->tkn_ct++ ] = pzDest; in ao_string_tokenize() 280 res->tkn_list[ res->tkn_ct ] = NULL; in ao_string_tokenize() [all …]
|