/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaRand.c | 60 CK_RV rv; in meta_SeedRandom() local 67 rv = meta_handle2session(hSession, &session); in meta_SeedRandom() 68 if (rv != CKR_OK) in meta_SeedRandom() 69 return (rv); in meta_SeedRandom() 94 CK_RV rv; in meta_GenerateRandom() local 101 rv = meta_handle2session(hSession, &session); in meta_GenerateRandom() 102 if (rv != CKR_OK) in meta_GenerateRandom() 103 return (rv); in meta_GenerateRandom()
|
H A D | pkcs11Conf.c | 77 CK_RV rv; in setup_metaslot() local 91 return (rv); in setup_metaslot() 101 return (rv); in setup_metaslot() 113 return (rv); in setup_metaslot() 178 rv = CKR_HOST_MEMORY; in setup_metaslot() 179 return (rv); in setup_metaslot() 212 if (rv != CKR_OK) { in setup_metaslot() 229 return (rv); in setup_metaslot() 250 CK_RV rv = CKR_OK; in pkcs11_slot_mapping() local 552 if (rv != CKR_OK) { in pkcs11_slot_mapping() [all …]
|
H A D | pkcs11General.c | 227 CK_RV rv; in C_Initialize() local 262 rv = CKR_ARGUMENTS_BAD; in C_Initialize() 278 rv = CKR_ARGUMENTS_BAD; in C_Initialize() 288 rv = CKR_CANT_LOCK; in C_Initialize() 306 if (rv != CKR_OK) in C_Initialize() 322 if (rv != CKR_OK) in C_Initialize() 348 return (rv); in C_Initialize() 367 CK_RV rv; in C_Finalize() local 375 return (rv); in C_Finalize() 386 CK_RV rv; in finalize_common() local [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_op.c | 322 rv->attrName[i], rv->attrVal[i].val[j].value); in createLdapRequest() 1403 rv = 0; in ldapSearch() 1422 rv = 0; in ldapSearch() 1440 rv = 0; in ldapSearch() 1475 rv = 0; in ldapSearch() 1553 rv = 0; in ldapSearch() 1588 rv = 0; in ldapSearch() 1602 rv = 0; in ldapSearch() 1875 if (rv == 0 || rv->numAttrs <= 0) in search2LdapMod() 2064 rv = addObjectClasses(rv, objClassAttrs); in ldapModifyObjectClass() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_tar3.c | 510 char *rv; in mknewname() local 618 int rv; in voliswr() local 1777 return (rv < 0 ? rv : 0); in backup_filev3() 1802 int rv; in check_bk_args() local 1823 rv = 0; in check_bk_args() 2067 int rv; in timebk_v3() local 2155 int rv; in lbrbk_v3() local 2228 int rv; in backup_reader_v3() local 2246 rv = 0; in backup_reader_v3() 2521 int rv; in get_backup_size() local [all …]
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_info.c | 73 int rv; in getinfo() local 89 return (rv); in getinfo() 118 return (rv); in getinfo() 141 int rv; in copy_devinfo() local 166 return (rv); in copy_devinfo() 181 int rv = 0; in copy_devices() local 202 return (rv); in copy_devices() 219 return (rv); in copy_devices() 286 rv = ENOMEM; in copy_hotplug() 319 rv = ENOMEM; in copy_hotplug() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | arcfour_provider.c | 27 CK_RV rv; in setup_arcfour_crypto() local 79 CK_RV rv; in k5_arcfour_decrypt() local 139 if (rv != CKR_OK) { in k5_arcfour_decrypt() 155 rv = C_Decrypt(session, in k5_arcfour_decrypt() 163 if (rv != CKR_OK) { in k5_arcfour_decrypt() 166 "rv = 0x%x", rv); in k5_arcfour_decrypt() 196 CK_RV rv; in k5_arcfour_encrypt() local 241 if (rv != CKR_OK) { in k5_arcfour_encrypt() 261 rv = C_Encrypt(session, in k5_arcfour_encrypt() 269 if (rv != CKR_OK) { in k5_arcfour_encrypt() [all …]
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_prop.c | 96 int rv; in prom_asr_export() local 106 rv = p1275_cif_handler(&ci); in prom_asr_export() 109 if (rv != 0) in prom_asr_export() 117 int rv; in prom_asr_list_keys() local 130 if (rv != 0) in prom_asr_list_keys() 139 int rv; in prom_asr_disable() local 154 return (rv); in prom_asr_disable() 160 int rv; in prom_asr_enable() local 173 return (rv); in prom_asr_enable() 204 int len, rv; in prom_getprop() local [all …]
|
/illumos-gate/usr/src/lib/libelfsign/common/ |
H A D | elfcertlib.c | 94 KMF_RETURN rv; in elfcertlib_verifycert() local 128 if (rv == KMF_OK) { in elfcertlib_verifycert() 194 KMF_RETURN rv; in elfcertlib_getcert() local 261 if (rv != KMF_OK) in elfcertlib_getcert() 279 if (rv != KMF_OK) in elfcertlib_getcert() 284 if (rv != KMF_OK) in elfcertlib_getcert() 373 if (rv != KMF_OK) in elfcertlib_loadprivatekey() 399 KMF_RETURN rv; in elfcertlib_loadtokenkey() local 584 KMF_RETURN rv; in elfcertlib_verifysig() local 661 KMF_RETURN rv; in elfcertlib_init() local [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softRand.c | 39 CK_RV rv; in C_SeedRandom() local 47 rv = handle2session(hSession, &session_p); in C_SeedRandom() 48 if (rv != CKR_OK) in C_SeedRandom() 49 return (rv); in C_SeedRandom() 71 CK_RV rv; in C_GenerateRandom() local 79 rv = handle2session(hSession, &session_p); in C_GenerateRandom() 80 if (rv != CKR_OK) in C_GenerateRandom() 81 return (rv); in C_GenerateRandom()
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_devctl.c | 175 int rv = ENOTTY; in px_ioctl() local 201 rv = EPERM; in px_ioctl() 203 rv = pxtool_dev_reg_ops(dip, in px_ioctl() 212 rv = EPERM; in px_ioctl() 214 rv = pxtool_bus_reg_ops(dip, in px_ioctl() 219 rv = ENOTTY; in px_ioctl() 221 return (rv); in px_ioctl() 228 rv = EPERM; in px_ioctl() 240 rv = ENOTTY; in px_ioctl() 242 return (rv); in px_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/expr/ |
H A D | compile.c | 144 int rv; in dhl_compile() local 189 regerrno = map_errnos(rv); /* Convert regcomp error */ in dhl_compile() 206 regerrno = map_errnos(rv); /* Convert regcomp error */ in dhl_compile() 283 int rv; in dhl_advance() local 294 rv = dhl_doit(str, &(((struct regex_comp *)ep)->r_adv), 0); in dhl_advance() 296 return (rv); in dhl_advance() 307 int rv; in dhl_doit() local 322 if ((rv = regexec(rep, str, SEPSIZE, prm, flags)) != REG_OK) { in dhl_doit() 323 if (rv == REG_NOMATCH) in dhl_doit() 325 regerrno = map_errnos(rv); in dhl_doit() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw_switching.c | 179 int rv; in vsw_setup_switching_thread() local 292 int rv = 1; in vsw_setup_switching() local 310 rv = 1; in vsw_setup_switching() 313 if (rv && (rv != EAGAIN)) { in vsw_setup_switching() 339 int rv; in vsw_setup_layer2() local 992 int rv; in vsw_vlan_add_ids() local 1051 int rv; in vsw_vlan_remove_ids() local 1113 int rv; in vsw_vlan_lookup() local 1133 int rv; in vsw_fdbe_add() local 1162 int rv; in vsw_fdbe_del() local [all …]
|
H A D | drctl_impl.c | 42 int rv; in i_drctl_ioctl() local 51 rv = EFAULT; in i_drctl_ioctl() 56 rv = 0; in i_drctl_ioctl() 60 rv = EIO; in i_drctl_ioctl() 63 return (rv); in i_drctl_ioctl() 70 int rv = 0; in i_drctl_send() local 140 rv = EIO; in i_drctl_send() 145 rv = EIO; in i_drctl_send() 152 return (rv); in i_drctl_send()
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | lockf.c | 46 int rv; in __lockf() local 59 rv = fcntl(fildes, F_SETLK, &l); in __lockf() 63 rv = fcntl(fildes, F_SETLKW, &l); in __lockf() 67 rv = fcntl(fildes, F_SETLK, &l); in __lockf() 71 rv = fcntl(fildes, F_GETLK, &l); in __lockf() 72 if (rv != -1) { in __lockf() 85 if (rv < 0) { in __lockf() 100 return (rv); in __lockf()
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_devctl.c | 170 int rv = 0; in pci_devctl_ioctl() local 195 rv = ENOTSUP; in pci_devctl_ioctl() 217 rv = ENOTSUP; in pci_devctl_ioctl() 222 rv = ENOTSUP; in pci_devctl_ioctl() 226 rv = ENOTTY; in pci_devctl_ioctl() 230 return (rv); in pci_devctl_ioctl() 240 int rv = ENOTTY; in pci_ioctl() local 265 rv = EPERM; in pci_ioctl() 276 rv = EPERM; in pci_ioctl() 292 rv = EPERM; in pci_ioctl() [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sgcn.c | 234 int rv; in sgcn_attach() local 257 if (rv != 0) in sgcn_attach() 913 int rv; in sgcn_read_header() local 918 if (rv != 0) { in sgcn_read_header() 939 rv = -1; in sgcn_read_header() 941 return (rv); in sgcn_read_header() 1054 int rv = 0; in circular_buffer_write() local 1058 rv = EINVAL; in circular_buffer_write() 1106 int rv = 0; in circular_buffer_read() local 1110 rv = EINVAL; in circular_buffer_read() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_bboard.c | 60 int rv; in x86pi_gen_bboard() local 85 if (rv != 0) { in x86pi_gen_bboard() 99 if (rv != 0) { in x86pi_gen_bboard() 171 if (rv != 0) { in x86pi_gen_bboard() 307 int rv; in x86pi_bb_chassis() local 315 if (rv != 0) in x86pi_bb_chassis() 325 int rv; in x86pi_bb_contains() local 342 if (rv != 0) in x86pi_bb_contains() 348 if (rv == -1) { in x86pi_bb_contains() 351 return (rv); in x86pi_bb_contains() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf_prov_lib.c | 46 int rv; in crypto_get_input_data() local 59 return (rv); in crypto_get_input_data() 66 return (rv); in crypto_get_input_data() 129 int rv, dlen; in crypto_digest_data() local 154 rv = crypto_uio_data(data, NULL, dlen, in crypto_digest_data() 165 if (rv != CRYPTO_SUCCESS) in crypto_digest_data() 166 return (rv); in crypto_digest_data() 183 if (rv != CRYPTO_SUCCESS) in crypto_digest_data() 184 return (rv); in crypto_digest_data() 204 int rv; in crypto_update_iov() local [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/ |
H A D | derive.c | 175 if (rv != 0) { in init_derived_keydata() 178 return (rv); in init_derived_keydata() 183 if (rv != 0) { in init_derived_keydata() 186 return (rv); in init_derived_keydata() 213 if (rv != 0) { in init_derived_keydata() 216 return (rv); in init_derived_keydata() 234 if (rv != 0) { in init_derived_keydata() 237 return (rv); in init_derived_keydata() 241 if (rv == 0) { in init_derived_keydata() 247 return (rv); in init_derived_keydata() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dca_rsa.c | 67 int rv = CRYPTO_QUEUED; in dca_rsastart() local 73 rv = CRYPTO_NOT_SUPPORTED; in dca_rsastart() 200 if (rv != CRYPTO_QUEUED && rv != CRYPTO_BUFFER_TOO_SMALL) in dca_rsastart() 203 return (rv); in dca_rsastart() 395 int rv; in dca_rsainit() local 423 rv = CRYPTO_HOST_MEMORY; in dca_rsainit() 597 return (rv); in dca_rsainit() 634 int rv; in dca_rsaatomic() local 643 return (rv); in dca_rsaatomic() 664 if (rv != CRYPTO_QUEUED) in dca_rsaatomic() [all …]
|
/illumos-gate/usr/src/cmd/vntsd/ |
H A D | listen.c | 204 int rv; in create_console_thread() local 240 return (rv); in create_console_thread() 289 int rv; in vntsd_listen_thread() local 304 listen_chk_status(groupp, rv); in vntsd_listen_thread() 331 if (rv != B_TRUE) { in vntsd_listen_thread() 348 rv = vntsd_set_telnet_options(newsockfd); in vntsd_listen_thread() 349 if (rv != VNTSD_SUCCESS) { in vntsd_listen_thread() 351 listen_chk_status(groupp, rv); in vntsd_listen_thread() 353 rv = create_console_thread(groupp, newsockfd); in vntsd_listen_thread() 354 if (rv != VNTSD_SUCCESS) { in vntsd_listen_thread() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | x86.c | 70 bool rv; in vm_cpuid_capability() local 78 rv = false; in vm_cpuid_capability() 83 rv = true; in vm_cpuid_capability() 87 rv = true; in vm_cpuid_capability() 91 rv = true; in vm_cpuid_capability() 96 rv = true; in vm_cpuid_capability() 106 return (rv); in vm_cpuid_capability()
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | list.c | 219 int rv = KC_OK; in kc_list() local 234 rv = KC_ERR_USAGE; in kc_list() 245 rv = KC_ERR_USAGE; in kc_list() 260 rv = KC_ERR_USAGE; in kc_list() 263 if (rv != KC_OK) in kc_list() 272 rv = KC_ERR_USAGE; in kc_list() 284 rv = KC_ERR_MEMORY; in kc_list() 295 rv = KC_ERR_ACCESS; in kc_list() 300 if (rv != KMF_OK) { in kc_list() 312 if (rv != KMF_OK) { in kc_list() [all …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | env.c | 705 int rv; in efi_guid_to_name() local 864 int rv = -1; in efi_print_illumos() local 878 rv = CMD_OK; in efi_print_illumos() 882 return (rv); in efi_print_illumos() 889 int rv = -1; in efi_print_global() local 1018 return (rv); in efi_print_global() 1121 return (rv); in efi_print_var() 1140 int ch, rv; in command_efi_show() local 1206 return (rv); in command_efi_show() 1230 return (rv); in command_efi_show() [all …]
|