/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gen_sv.c | 44 struct __res_state * res; member 189 if (!pvt->res) { in sv_res_get() 190 struct __res_state *res; in sv_res_get() local 191 res = (struct __res_state *)malloc(sizeof *res); in sv_res_get() 192 if (!res) { in sv_res_get() 196 memset(res, 0, sizeof *res); in sv_res_get() 197 sv_res_set(this, res, free); in sv_res_get() 200 return (pvt->res); in sv_res_get() 210 res_nclose(pvt->res); in sv_res_set() 211 (*pvt->free_res)(pvt->res); in sv_res_set() [all …]
|
H A D | dns_ho.c | 127 struct __res_state *res; member 522 if (pvt->res) in ho_minimize() 523 res_nclose(pvt->res); in ho_minimize() 530 if (!pvt->res) { in ho_res_get() 531 struct __res_state *res; in ho_res_get() local 532 res = (struct __res_state *)malloc(sizeof *res); in ho_res_get() 533 if (!res) { in ho_res_get() 537 memset(res, 0, sizeof *res); in ho_res_get() 541 return (pvt->res); in ho_res_get() 663 res_nclose(pvt->res); in ho_res_set() [all …]
|
H A D | hesiod.c | 132 if (res_ninit(ctx->res) < 0) in hesiod_init() 152 if (ctx->res) in hesiod_end() 153 res_nclose(ctx->res); in hesiod_end() 462 if (!ctx->res) { in __hesiod_res_get() 463 struct __res_state *res; in __hesiod_res_get() local 464 res = (struct __res_state *)malloc(sizeof *res); in __hesiod_res_get() 465 if (res == NULL) { in __hesiod_res_get() 469 memset(res, 0, sizeof *res); in __hesiod_res_get() 473 return (ctx->res); in __hesiod_res_get() 482 res_nclose(ctx->res); in __hesiod_res_set() [all …]
|
H A D | irs_data.c | 74 res_ndestroy(net_data->res); in net_data_destroy() 180 if (net_data->res == NULL) { in net_data_create() 186 if ((net_data->res->options & RES_INIT) == 0U && in net_data_create() 187 res_ninit(net_data->res) == -1) { in net_data_create() 198 res_nclose(net_data->res); in net_data_minimize() 206 if (net_data && net_data->res) in __res_state() 207 return (net_data->res); in __res_state() 224 if (net_data && net_data->res) in __h_errno() 225 return (&net_data->res->res_h_errno); in __h_errno() 242 res->res_h_errno = err; in __h_errno_set() [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/vis/ |
H A D | __vhypot.S | 115 ! res = sqrt(res); 117 ! res = D2ONP1022 * res; 145 ! res = sqrt(res); 147 ! res = D2ONM1022 * res; 184 ! res = sqrt(res); 186 ! res = dmax * res; 449 fsqrtd %f26,%f24 ! (1_1) res = sqrt(res); 509 fsqrtd %f12,%f12 ! (2_1) res = sqrt(res); 582 fsqrtd %f28,%f4 ! (3_2) res = sqrt(res); 646 fsqrtd %f12,%f12 ! (0_1) res = sqrt(res); [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | nametokva.c | 10 ipfunc_resolve_t res; local 13 strncpy(res.ipfu_name, name, sizeof(res.ipfu_name)); 14 res.ipfu_addr = NULL; 22 (void) (*iocfunc)(fd, SIOCFUNCL, &res); 25 if (res.ipfu_addr == NULL) 26 res.ipfu_addr = (ipfunc_t)-1; 27 return res.ipfu_addr;
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_elf.c | 850 *res); in nfslog_nfsstat_print() 1080 *res); in nfslog_nfsstat3_print() 1090 } else if (res->status == NFS3_OK) { in nfslog_LOOKUP3res_print() 1101 } else if (res->status == NFS3_OK) { in nfslog_READLINK3res_print() 1113 } else if (res->status == NFS3_OK) { in nfslog_READ3res_print() 1120 res->nfslog_READ3res_u.ok.count); in nfslog_READ3res_print() 1122 res->nfslog_READ3res_u.ok.eof); in nfslog_READ3res_print() 1124 res->nfslog_READ3res_u.ok.size); in nfslog_READ3res_print() 1135 } else if (res->status == NFS3_OK) { in nfslog_WRITE3res_print() 1155 } else if (res->status == NFS3_OK) { in nfslog_CREATE3res_print() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | key_call.c | 99 cryptkeyres res; in key_encryptsession() local 117 if (res.status != KEY_SUCCESS) { in key_encryptsession() 120 RPCLOG(1, "key status %d\n", res.status); in key_encryptsession() 123 *deskey = res.cryptkeyres_u.deskey; in key_encryptsession() 131 cryptkeyres res; in key_decryptsession() local 148 if (res.status != KEY_SUCCESS) { in key_decryptsession() 153 *deskey = res.cryptkeyres_u.deskey; in key_decryptsession() 204 struct getcredres res; in netname2user() local 216 if (res.status != KEY_SUCCESS) { in netname2user() 221 *uid = res.getcredres_u.cred.uid; in netname2user() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getspent.c | 111 nss_status_t res; local 127 if (res == NSS_SUCCESS) { 132 res = _nss_nis_lookup_rsvdport(be, argp, 0, 145 res = _nss_nis_lookup_rsvdport(be, argp, 0, 148 if (res == NSS_SUCCESS) { 156 return (res); 170 nss_status_t res; local 176 res = _nss_nis_getent_rigid(be, argp); 186 if (res == NSS_SUCCESS) { 209 if (res == NSS_SUCCESS) { [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | pro_die.c | 78 int res = 0; in dwarf_new_die() local 100 int res = 0; in dwarf_new_die_a() local 124 return res; in dwarf_new_die_a() 139 int res = 0; in dwarf_die_link() local 525 int res = 0; in _dwarf_insert_or_find_in_debug_str() local 551 return res; in _dwarf_insert_or_find_in_debug_str() 578 return res; in _dwarf_insert_or_find_in_debug_str() 692 int res = 0; in dwarf_add_AT_name() local 709 int res = 0; in dwarf_add_AT_name_a() local 746 int res = 0; in dwarf_add_AT_comp_dir() local [all …]
|
H A D | dwarf_object_detector.c | 328 int res = 0; in is_pe_object() local 337 if (res != DW_DLV_OK) { in is_pe_object() 338 return res; in is_pe_object() 381 if (res != DW_DLV_OK) { in is_pe_object() 382 return res; in is_pe_object() 399 return res; in is_pe_object() 463 int res = 0; in dwarf_object_detector_fd() local 496 return res; in dwarf_object_detector_fd() 524 return res; in dwarf_object_detector_fd() 545 int res = 0; in dwarf_object_detector_path() local [all …]
|
H A D | pro_arange.c | 59 int res = 0; in dwarf_add_arange() local 65 if (res != DW_DLV_OK) { in dwarf_add_arange() 85 int res = 0; in dwarf_add_arange_b() local 90 if (res != DW_DLV_OK) { in dwarf_add_arange_b() 167 int res = 0; in _dwarf_transform_arange_to_disk() local 257 if (res == DW_DLV_NO_ENTRY) { in _dwarf_transform_arange_to_disk() 258 return res; in _dwarf_transform_arange_to_disk() 260 if (res == DW_DLV_ERROR) { in _dwarf_transform_arange_to_disk() 262 return res; in _dwarf_transform_arange_to_disk() 293 if (res != DW_DLV_OK) { in _dwarf_transform_arange_to_disk() [all …]
|
H A D | dwarf_ranges.c | 113 int res = DW_DLV_ERROR; in dwarf_get_ranges_a() local 135 if (res == DW_DLV_ERROR) { in dwarf_get_ranges_a() 244 if (res == DW_DLV_ERROR) { in dwarf_get_ranges_a() 246 return res; in dwarf_get_ranges_a() 247 } else if (res == DW_DLV_NO_ENTRY) { in dwarf_get_ranges_a() 248 return res; in dwarf_get_ranges_a() 355 if (res != DW_DLV_OK) { in dwarf_get_ranges_a() 358 return res; in dwarf_get_ranges_a() 363 if (res != DW_DLV_OK) { in dwarf_get_ranges_a() 366 return res; in dwarf_get_ranges_a() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_saa.c | 868 return (res); in ibmf_sa_access() 922 int res; in ibmf_saa_gid_to_pathrecords() local 1020 return (res); in ibmf_saa_gid_to_pathrecords() 1064 int res; in ibmf_saa_paths_from_gid() local 1120 return (res); in ibmf_saa_paths_from_gid() 1159 int res; in ibmf_saa_name_to_service_record() local 1229 return (res); in ibmf_saa_name_to_service_record() 1269 int res; in ibmf_saa_id_to_service_record() local 1318 return (res); in ibmf_saa_id_to_service_record() 1350 int res; in ibmf_saa_update_service_record() local [all …]
|
/illumos-gate/usr/src/common/crypto/ecc/ |
H A D | ecl.c | 60 mp_err res = MP_OKAY; in ECGroup_new() local 90 if (res != MP_OKAY) { in ECGroup_new() 112 res = MP_MEM; in ECGroup_consGFp() 153 res = MP_MEM; in ECGroup_consGFp_mont() 198 res = MP_MEM; in ECGroup_consGF2m() 258 res = bits; in ecgroup_fromNameAndHex() 344 res = MP_UNDEF; in ecgroup_fromNameAndHex() 355 res = MP_MEM; in ecgroup_fromNameAndHex() 363 res = MP_MEM; in ecgroup_fromNameAndHex() 399 res = MP_UNDEF; in ECGroup_fromName() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | nfsauth.c | 108 nfsauth_res_t res = {0}; in nfsauth_func() local 125 res.stat = NFSAUTH_DR_DECERR; in nfsauth_func() 141 res.stat = NFSAUTH_DR_DECERR; in nfsauth_func() 150 nfsauth_access(&ap->areq, &res.ares); in nfsauth_func() 151 res.stat = NFSAUTH_DR_OKAY; in nfsauth_func() 154 res.stat = NFSAUTH_DR_BADCMD; in nfsauth_func() 168 rbsz = xdr_sizeof(xdr_nfsauth_res, &res); in nfsauth_func() 174 if (!xdr_nfsauth_res(&xdrs_r, &res)) { in nfsauth_func() 181 res.stat = NFSAUTH_DR_EFAIL; in nfsauth_func() 183 rbuf = (caddr_t)&res.stat; in nfsauth_func() [all …]
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volprivate.c | 62 char *res; in volmgt_getfullblkname() local 70 res = rval; in volmgt_getfullblkname() 95 res = strdup(namebuf); in volmgt_getfullblkname() 100 res = strdup(""); in volmgt_getfullblkname() 103 return (res); in volmgt_getfullblkname() 115 char *res; in volmgt_getfullrawname() local 125 res = rval; in volmgt_getfullrawname() 151 res = strdup(namebuf); in volmgt_getfullrawname() 157 res = strdup(""); in volmgt_getfullrawname() 161 res ? res : "<null ptr>"); in volmgt_getfullrawname() [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/ |
H A D | mem_seg_map.c | 41 int res, fd; in main() local 52 res = alloc_memseg(ctx, TEST_SEGID, SEG_SZ, "test_seg"); in main() 53 if (res != 0) { in main() 58 res = vm_get_devmem_offset(ctx, TEST_SEGID, &seg_obj_off); in main() 59 if (res != 0) { in main() 78 res = vm_mmap_memseg(ctx, 0, TEST_SEGID, 0, SEG_SZ, PROT_ALL); in main() 79 if (res != 0) { in main() 120 res = munmap(guest_mem, SEG_SZ); in main() 121 if (res != 0) { in main() 125 res = munmap(seg_obj, SEG_SZ); in main() [all …]
|
H A D | time_data.c | 128 struct vdi_time_info_v1 res; in test_invalid_read_time_data() local 135 .vdx_data = &res, in test_invalid_read_time_data() 270 struct vdi_time_info_v1 res; in test_valid_freq_amd() local 295 test_valid_read_time_data(vmfd, &res); in test_valid_freq_amd() 308 test_valid_read_time_data(vmfd, &res); in test_valid_freq_amd() 438 struct vdi_time_info_v1 res; in test_valid_guest_tsc() local 439 test_valid_read_time_data(vmfd, &res); in test_valid_guest_tsc() 455 struct vdi_time_info_v1 res; in test_valid_boot_hrtime() local 469 test_valid_read_time_data(vmfd, &res); in test_valid_boot_hrtime() 481 test_valid_read_time_data(vmfd, &res); in test_valid_boot_hrtime() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_io.c | 454 res->result = DR_VIO_RES_FAILURE; in dr_io_configure() 461 res->result = DR_VIO_RES_OK; in dr_io_configure() 557 (void) strlcpy(res->reason, in dr_io_configure() 627 res->result = DR_VIO_RES_OK; in dr_io_configure() 660 res->result = DR_VIO_RES_OK; in dr_io_unconfigure() 701 (void) strlcpy(res->reason, in dr_io_unconfigure() 755 res->result = DR_VIO_RES_OK; in dr_io_unconfigure() 781 dr_vio_res_t *res; in dr_vio_data_handler() local 828 DR_DBG_DUMP_MSG(res, res_len); in dr_vio_data_handler() 834 if (res) { in dr_vio_data_handler() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sse.c | 1222 i = info->res.val.i; in __fex_st_sse_result() 1226 i = info->res.val.l; in __fex_st_sse_result() 1230 i = info->res.val.f; in __fex_st_sse_result() 1234 i = info->res.val.d; in __fex_st_sse_result() 1238 i = info->res.val.q; in __fex_st_sse_result() 1250 l = info->res.val.i; in __fex_st_sse_result() 1254 l = info->res.val.l; in __fex_st_sse_result() 1258 l = info->res.val.f; in __fex_st_sse_result() 1262 l = info->res.val.d; in __fex_st_sse_result() 1266 l = info->res.val.q; in __fex_st_sse_result() [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/ |
H A D | __vrsqrtf.c | 245 float res; in __vrsqrtf() local 285 res = *(int*)&res; in __vrsqrtf() 286 res *= FTWO; in __vrsqrtf() 323 res = *px; in __vrsqrtf() 324 *py = FONE / res; in __vrsqrtf() 328 res = *px; in __vrsqrtf() 332 *py = FONE / res; in __vrsqrtf() 344 res = *(int*)&res; in __vrsqrtf() 345 res *= FTWO; in __vrsqrtf() 346 ax0 = *(int*)&res; in __vrsqrtf() [all …]
|
/illumos-gate/usr/src/uts/common/io/zyd/ |
H A D | zyd_hw.c | 191 zyd_res res; in zyd_write16a() local 196 if (res != ZYD_SUCCESS) in zyd_write16a() 264 zyd_res res; in zyd_rfwrite() local 378 zyd_res res; in zyd_hw_init() local 448 res = ZYD_FAILURE; in zyd_hw_init() 487 zyd_res res; in zyd_hw_configure() local 520 if (res != ZYD_SUCCESS) in zyd_hw_configure() 612 zyd_res res; in zyd_hw_start() local 720 zyd_res res; in zyd_al2230_rf_init() local 756 zyd_res res; in zyd_al2230_rf_init_b() local [all …]
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_mount.c | 340 int i, res; local 384 return (res); 394 int res; in automountd_do_fork_exec() local 404 door_return((char *)&res, sizeof (res), NULL, 0); in automountd_do_fork_exec() 460 res = 1; in automountd_do_fork_exec() 465 res = 1; in automountd_do_fork_exec() 469 door_return((char *)&res, sizeof (res), NULL, 0); in automountd_do_fork_exec() 481 int res = 0; local 519 res = 1; 526 res = 1; [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | hunt5.c | 32 char res[100]; in result() local 44 fgets(res, 100, fc); in result() 45 for (s = res; c = *s; s++) in result() 51 if (res[0] == '/' || usedir[0] == 0) in result() 52 sprintf(tagout, "%s", res); in result() 54 sprintf(tagout, "%s/%s", usedir, res); in result() 57 if (res[0] != '/' || usedir[0] == 0) in result() 59 printf("%s\n", res); in result()
|