/freebsd/sys/dev/acpica/ |
H A D | acpi_resource.c | 261 if (res->Data.Io.Minimum == res->Data.Io.Maximum) { in acpi_parse_resource() 263 res->Data.Io.Minimum, res->Data.Io.AddressLength)); in acpi_parse_resource() 268 res->Data.Io.Minimum, res->Data.Io.Maximum, in acpi_parse_resource() 271 res->Data.Io.Maximum, res->Data.Io.AddressLength, in acpi_parse_resource() 287 if (res->Data.Memory32.Minimum == res->Data.Memory32.Maximum) { in acpi_parse_resource() 294 res->Data.Memory32.Minimum, res->Data.Memory32.Maximum, in acpi_parse_resource() 297 res->Data.Memory32.Maximum, res->Data.Memory32.AddressLength, in acpi_parse_resource() 304 if (res->Data.Memory24.Minimum == res->Data.Memory24.Maximum) { in acpi_parse_resource() 311 res->Data.Memory24.Minimum, res->Data.Memory24.Maximum, in acpi_parse_resource() 314 res->Data.Memory24.Maximum, res->Data.Memory24.AddressLength, in acpi_parse_resource() [all …]
|
/freebsd/usr.sbin/rpc.statd/ |
H A D | test.c | 17 bzero((char *)&res, sizeof(res)); 22 return (&res); 33 bzero((char *)&res, sizeof(res)); 38 return (&res); 49 bzero((char *)&res, sizeof(res)); 54 return (&res); 65 bzero((char *)&res, sizeof(res)); 70 return (&res); 79 static char res; local 81 bzero((char *)&res, sizeof(res)); [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_setrlimit.c | 83 struct rlimit res; in ATF_TC_BODY() local 99 if (res.rlim_cur == RLIM_INFINITY || res.rlim_cur == 0) in ATF_TC_BODY() 102 if (res.rlim_cur == res.rlim_max) /* An unprivileged run. */ in ATF_TC_BODY() 106 res.rlim_cur = res.rlim_cur - 1; in ATF_TC_BODY() 143 struct rlimit res; in ATF_TC_BODY() local 163 struct rlimit res; in ATF_TC_BODY() local 334 res.rlim_cur = 0; in ATF_TC_BODY() 335 res.rlim_max = 0; in ATF_TC_BODY() 536 res.rlim_max = res.rlim_max + 1; in ATF_TC_BODY() 554 res.rlim_cur = res.rlim_max = 4192256; in ATF_TC_BODY() [all …]
|
/freebsd/contrib/libcbor/test/ |
H A D | bad_inputs_test.c | 15 struct cbor_load_result res; variable 20 item = cbor_load(data1, 2, &res); in test_1() 23 assert_size_equal(res.error.position, 2); in test_1() 28 item = cbor_load(data2, 1, &res); in test_2() 36 item = cbor_load(data3, 1, &res); in test_3() 45 item = cbor_load(data4, 7, &res); in test_4() 54 item = cbor_load(data5, 6, &res); in test_5() 63 item = cbor_load(data6, 5, &res); in test_6() 75 item = cbor_load(data7, 16, &res); in test_7() 88 item = cbor_load(data8, 39, &res); in test_8() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | get_addrs.c | 65 res->len = 1; in gethostname_fallback() 66 res->val = malloc (sizeof(*res->val)); in gethostname_fallback() 78 free (res->val); in gethostname_fallback() 131 res->val = calloc(num, sizeof(*res->val)); in find_all_addresses() 213 free(res->val); in find_all_addresses() 214 res->val = NULL; in find_all_addresses() 225 res->len = 0; in get_addrs_int() 226 res->val = NULL; in get_addrs_int() 251 if(res->len == 0) { in get_addrs_int() 252 free(res->val); in get_addrs_int() [all …]
|
/freebsd/lib/libsys/ |
H A D | auxv.c | 272 int res; in _elf_aux_info() local 290 res = 0; in _elf_aux_info() 304 res = 0; in _elf_aux_info() 310 res = 0; in _elf_aux_info() 317 res = 0; in _elf_aux_info() 324 res = 0; in _elf_aux_info() 332 res = 0; in _elf_aux_info() 342 res = 0; in _elf_aux_info() 352 res = 0; in _elf_aux_info() 362 res = 0; in _elf_aux_info() [all …]
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_vdso_gtod.c | 57 int res; in write() local 66 return (res); in write() 72 int res; in __vdso_clock_gettime_fallback() local 81 return (res); in __vdso_clock_gettime_fallback() 87 int res; in __vdso_clock_gettime64_fallback() local 96 return (res); in __vdso_clock_gettime64_fallback() 102 int res; in __vdso_gettimeofday_fallback() local 111 return (res); in __vdso_gettimeofday_fallback() 117 int res; in __vdso_clock_getres_fallback() local 132 int res; in __vdso_getcpu_fallback() local [all …]
|
/freebsd/sys/i386/linux/ |
H A D | linux_vdso_gtod.c | 57 int res; in write() local 66 return (res); in write() 72 int res; in __vdso_clock_gettime_fallback() local 81 return (res); in __vdso_clock_gettime_fallback() 87 int res; in __vdso_clock_gettime64_fallback() local 96 return (res); in __vdso_clock_gettime64_fallback() 102 int res; in __vdso_gettimeofday_fallback() local 111 return (res); in __vdso_gettimeofday_fallback() 117 int res; in __vdso_clock_getres_fallback() local 132 int res; in __vdso_getcpu_fallback() local [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | ffc_internal_test.c | 176 int ret = 0, res; in ffc_params_validate_g_unverified_test() local 246 int ret = 0, res = -1; in ffc_params_validate_pq_test() local 348 int ret = 0, res = -1; in ffc_params_gen_test() local 369 int ret = 0, res = -1; in ffc_params_gen_canonicalg_test() local 394 int ret = 0, res = -1; in ffc_params_fips186_2_gen_validate_test() local 419 if (!TEST_true(res == FFC_CHECK_Q_MISMATCH || res == FFC_CHECK_Q_NOT_PRIME)) in ffc_params_fips186_2_gen_validate_test() 443 int ret = 0, res = -1; in ffc_public_validate_test() local 516 res = -1; in ffc_public_validate_test() 522 res = -1; in ffc_public_validate_test() 541 int ret = 0, res = -1; in ffc_private_validate_test() local [all …]
|
/freebsd/usr.sbin/bootparamd/bootparamd/ |
H A D | bootparamd.c | 98 return(&res); in bootparamproc_whoami_1_svc() 152 res.server_name, res.server_path, in bootparamproc_getfile_1_svc() 159 res.server_name, res.server_path, in bootparamproc_getfile_1_svc() 164 return(&res); in bootparamproc_getfile_1_svc() 259 res = 1; break; in getthefile() 290 int res = 0; in checkhost() local 309 res = 1; in checkhost() 316 res = 1; in checkhost() 333 res = 1; in checkhost() 339 return(res); in checkhost() [all …]
|
/freebsd/usr.sbin/rpc.ypupdated/ |
H A D | ypupdated_server.c | 101 res = 0; in ypu_change_1_svc() 107 return(&res); in ypu_change_1_svc() 117 if (res) in ypu_change_1_svc() 124 return (&res); in ypu_change_1_svc() 135 res = 0; in ypu_insert_1_svc() 141 return(&res); in ypu_insert_1_svc() 151 if (res) in ypu_insert_1_svc() 169 res = 0; in ypu_delete_1_svc() 185 if (res) in ypu_delete_1_svc() 203 res = 0; in ypu_store_1_svc() [all …]
|
/freebsd/stand/libsa/ |
H A D | zalloc_malloc.c | 75 Guard *res; in Malloc_align() local 134 if (*((signed char *)res + res->ga_Bytes - 1) == -1) { in Free() 139 if (*((signed char *)res + res->ga_Bytes - 1) != -2) in Free() 142 *((signed char *)res + res->ga_Bytes - 1) = -1; in Free() 158 void *res; in Calloc() local 161 bzero(res, bytes); in Calloc() 167 return (res); in Calloc() 179 void *res; in Realloc() local 205 return (res); in Realloc() 211 void *res; in Reallocf() local [all …]
|
/freebsd/contrib/wpa/src/tls/ |
H A D | libtommath.c | 451 return res; in mp_add() 488 return res; in mp_sub() 535 return res; in mp_mul() 555 return res; in mp_mulmod() 582 return res; in mp_mod() 2033 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod() 2050 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod() 2077 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod() 3156 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast() 3173 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast() [all …]
|
/freebsd/usr.sbin/pkg/ |
H A D | dns_utils.c | 62 int res; in srv_final_cmp() local 72 if (res == 0) { in srv_final_cmp() 78 return (res); in srv_final_cmp() 153 free(res); in dns_getsrvinfo() 177 free(res); in dns_getsrvinfo() 185 free(res); in dns_getsrvinfo() 201 qsort(res, n, sizeof(res[0]), srv_priority_cmp); in dns_getsrvinfo() 214 qsort(res, n, sizeof(res[0]), srv_final_cmp); in dns_getsrvinfo() 217 res[i]->next = res[i + 1]; in dns_getsrvinfo() 219 first = res[0]; in dns_getsrvinfo() [all …]
|
/freebsd/sbin/hastd/ |
H A D | hastd.c | 107 if (tres == res) { in descriptors_cleanup() 335 if (res == NULL) { in child_exit() 347 child_cleanup(res); in child_exit() 460 if (hast_proto_send(res, res->hr_ctrl, nvout, NULL, 0) == -1) { in resource_reload() 732 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers() 737 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers() 781 if (res == NULL) { in listen_accept() 829 if (res == NULL) { in listen_accept() 837 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in listen_accept() 928 arc4random_buf(res->hr_token, sizeof(res->hr_token)); in listen_accept() [all …]
|
H A D | subr.c | 86 if (res->hr_localfd == -1) { in provinfo() 87 res->hr_localfd = open(res->hr_localpath, in provinfo() 89 if (res->hr_localfd == -1) { in provinfo() 91 res->hr_localpath); in provinfo() 107 res->hr_localpath); in provinfo() 114 res->hr_localpath); in provinfo() 123 res->hr_local_sectorsize = 512; in provinfo() 129 res->hr_localpath); in provinfo() 184 if (res == NULL) { in drop_privs() 188 res->hr_name, role2str(res->hr_role)); in drop_privs() [all …]
|
/freebsd/contrib/ntp/sntp/libopts/ |
H A D | parse-duration.c | 181 res = parse_scaled_value (res, &pz, ps, SEC_PER_MONTH); in parse_year_month_day() 247 res = parse_scaled_value (res, &pz, ps, SEC_PER_DAY); in parse_YMWD() 259 return res; in parse_YMWD() 279 res = parse_scaled_value (res, &pz, ps, SEC_PER_MIN); in parse_hour_minute_second() 331 res = parse_scaled_value (res, &pz, ps, SEC_PER_MIN); in parse_HMS() 338 res = parse_scaled_value (res, &pz, ps, 1); in parse_HMS() 350 return res; in parse_HMS() 382 return res; in parse_time() 456 res = scale_n_add (res, val, 1); in parse_period() 460 return res; in parse_period() [all …]
|
/freebsd/sys/dev/bhnd/ |
H A D | bhnd.h | 348 .res = (_r), \ 517 struct bhnd_resource **res); 521 struct bhnd_resource **res); 1498 bus_read_1((r)->res, (o)) : \ 1516 bus_write_1((r)->res, (o), (v)) : \ 1534 bus_read_stream_1((r)->res, (o)) : \ 1582 bus_read_2((r)->res, (o)) : \ 1600 bus_write_2((r)->res, (o), (v)) : \ 1618 bus_read_stream_2((r)->res, (o)) : \ 1666 bus_read_4((r)->res, (o)) : \ [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 162 if (res >= 0) { 180 if (res >= 0) { 209 if (res >= 0) { 218 if (res >= 0) { 227 if (res >= 0) { 238 if (res >= 0) { 250 if (res >= 0) { 260 if (res >= 0) { 273 if (res >= 0) { 418 if (res >= 0) [all …]
|
/freebsd/sys/amd64/linux/ |
H A D | linux_vdso_gtod.c | 58 int res; in write() local 67 return (res); in write() 73 int res; in __vdso_clock_gettime_fallback() local 82 return (res); in __vdso_clock_gettime_fallback() 88 int res; in __vdso_gettimeofday_fallback() local 97 return (res); in __vdso_gettimeofday_fallback() 103 int res; in __vdso_clock_getres_fallback() local 112 return (res); in __vdso_clock_getres_fallback() 118 int res; in __vdso_getcpu_fallback() local 127 return (res); in __vdso_getcpu_fallback() [all …]
|
/freebsd/lib/libc/net/ |
H A D | nscache.c | 65 int res; in __nss_common_cache_read() local 99 return (res); in __nss_common_cache_read() 110 res = -1; in __nss_common_cache_read() 123 if (res == 0) { in __nss_common_cache_read() 144 res = 0; in __nss_common_cache_read() 169 int res; in __nss_common_cache_write() local 213 return (res); in __nss_common_cache_write() 231 int res; in __nss_common_cache_write_negative() local 271 int res; in __nss_mp_cache_read() local 314 res = 0; in __nss_mp_cache_read() [all …]
|
/freebsd/sys/isa/ |
H A D | pnpparse.c | 154 I16(res + 3) + res[6]-1, in pnp_parse_desc() 155 res[6], res[5]); in pnp_parse_desc() 160 I16(res + 3) + res[6] - 1; in pnp_parse_desc() 191 I16(res) + res[2] - 1, in pnp_parse_desc() 196 I16(res) + res[2] - 1; in pnp_parse_desc() 262 (I16(res + 3) << 8) + (I16(res + 7) << 8) - 1; in pnp_parse_desc() 291 I32(res + 5) + I32(res + 13) - 1, in pnp_parse_desc() 292 I32(res + 13), I32(res + 9)); in pnp_parse_desc() 296 I32(res + 5) + I32(res + 13) - 1; in pnp_parse_desc() 319 I32(res + 1) + I32(res + 5) - 1, in pnp_parse_desc() [all …]
|
/freebsd/contrib/libucl/tests/ |
H A D | test_msgpack.c | 206 ucl_object_t *res; in ucl_test_integer() local 246 return res; in ucl_test_integer() 299 return res; in ucl_test_string() 305 ucl_object_t *res; in ucl_test_boolean() local 315 return res; in ucl_test_boolean() 361 return res; in ucl_test_map() 387 return res; in ucl_test_large_map() 422 return res; in ucl_test_array() 444 return res; in ucl_test_large_array() 450 ucl_object_t *res; in ucl_test_large_string() local [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_calendar.c | 204 M_NEG(res.D_s.hi, res.D_s.lo); in time_to_vint64() 223 M_NEG(res.D_s.hi, res.D_s.lo); in time_to_vint64() 603 M_ADD(res.D_s.hi, res.D_s.lo, 0, ntp); in ntpcal_ntp_to_time() 652 M_ADD(res.D_s.hi, res.D_s.lo, 0, ntp); in ntpcal_ntp_to_ntp() 983 res.lo = eyd - ((489 * res.hi + 8) >> 4); in ntpcal_split_yeardays() 1203 M_ADD(res.D_s.hi, res.D_s.lo, p2, p1); in _dwjoin() 1206 res.D_s.hi = (res.D_s.hi << 7) | (res.D_s.lo >> 25); in _dwjoin() 1207 res.D_s.lo = (res.D_s.lo << 7); in _dwjoin() 1210 M_ADD(res.D_s.hi, res.D_s.lo, sf, sf); in _dwjoin() 1217 M_ADD(res.D_s.hi, res.D_s.lo, p2, p1); in _dwjoin() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_interceptors.cpp | 131 return res; in INTERCEPTOR() 150 CHECK(!res || (res >= dest && res <= (char *)dest + n)); in INTERCEPTOR() 151 SIZE_T sz = res ? (char *)res - (char *)dest : n; in INTERCEPTOR() 165 if (!res) in INTERCEPTOR() 709 if (res) in INTERCEPTOR() 710 __msan_unpoison(res, internal_strlen(res) + 1); in INTERCEPTOR() 723 if (res) in INTERCEPTOR() 724 __msan_unpoison(res, internal_strlen(res) + 1); in INTERCEPTOR() 889 if (res) in INTERCEPTOR() 1312 int res; in setup_at_exit_wrapper() local [all …]
|