/titanic_41/usr/src/lib/libsrpt/common/ |
H A D | libsrpt.c | 60 int ret = 0; in srpt_GetConfig() local 71 ret = stmfGetProviderDataProt(SRPT_PROV_NAME, &cfg_nv, in srpt_GetConfig() 74 if (ret == STMF_STATUS_SUCCESS) { in srpt_GetConfig() 75 ret = 0; in srpt_GetConfig() 76 } else if (ret == STMF_ERROR_NOT_FOUND) { in srpt_GetConfig() 78 ret = nvlist_alloc(&cfg_nv, NV_UNIQUE_NAME, 0); in srpt_GetConfig() 79 if (ret != 0) { in srpt_GetConfig() 80 return (ret); in srpt_GetConfig() 83 ret = nvlist_alloc(&hcanv, NV_UNIQUE_NAME, 0); in srpt_GetConfig() 84 if (ret == 0) { in srpt_GetConfig() [all …]
|
/titanic_41/usr/src/common/iscsit/ |
H A D | iscsit_common.c | 188 int ret; in it_config_to_nv() local 198 ret = nvlist_alloc(&nv, NV_UNIQUE_NAME_TYPE, 0); in it_config_to_nv() 199 if (ret != 0) { in it_config_to_nv() 200 return (ret); in it_config_to_nv() 209 ret = nvlist_add_uint32(nv, "cfgVersion", cfg->config_version); in it_config_to_nv() 210 if (ret == 0) { in it_config_to_nv() 211 ret = it_tgtlist_to_nv(cfg->config_tgt_list, &lnv); in it_config_to_nv() 214 if ((ret == 0) && (lnv != NULL)) { in it_config_to_nv() 215 ret = nvlist_add_nvlist(nv, "targetList", lnv); in it_config_to_nv() 220 if (ret == 0) { in it_config_to_nv() [all …]
|
/titanic_41/usr/src/lib/libstmf/common/ |
H A D | stmf.c | 162 int ret = STMF_STATUS_ERROR; in openStmf() local 165 ret = STMF_STATUS_SUCCESS; in openStmf() 168 ret = STMF_ERROR_BUSY; in openStmf() 170 ret = STMF_ERROR_PERM; in openStmf() 172 ret = STMF_STATUS_ERROR; in openStmf() 178 return (ret); in openStmf() 190 int ret = STMF_STATUS_ERROR; in openSbd() local 193 ret = STMF_STATUS_SUCCESS; in openSbd() 196 ret = STMF_ERROR_BUSY; in openSbd() 198 ret = STMF_ERROR_PERM; in openSbd() [all …]
|
H A D | store.c | 303 int ret = STMF_PS_SUCCESS; in iPsAddRemoveGroupMember() local 313 ret = iPsInit(&handle, &svc); in iPsAddRemoveGroupMember() 314 if (ret != STMF_PS_SUCCESS) { in iPsAddRemoveGroupMember() 328 ret = STMF_PS_ERROR; in iPsAddRemoveGroupMember() 337 ret = STMF_PS_ERROR_NOT_FOUND; in iPsAddRemoveGroupMember() 339 ret = STMF_PS_ERROR; in iPsAddRemoveGroupMember() 353 ret = STMF_PS_ERROR; in iPsAddRemoveGroupMember() 367 ret = STMF_PS_ERROR_GROUP_NOT_FOUND; in iPsAddRemoveGroupMember() 369 ret = STMF_PS_ERROR; in iPsAddRemoveGroupMember() 383 ret = STMF_PS_ERROR; in iPsAddRemoveGroupMember() [all …]
|
/titanic_41/usr/src/cmd/itadm/ |
H A D | itadm.c | 56 #define STMF_STALE(ret) {\ argument 57 if (ret == STMF_ERROR_PROV_DATA_STALE) {\ 58 output_config_error(ret, NULL);\ 59 } else if (ret != 0) {\ 60 output_config_error(ret,\ 248 int ret = 0; in main() local 270 ret = 1; in main() 295 ret = nvlist_alloc(&proplist, NV_UNIQUE_NAME, 0); in main() 296 if (ret != 0) { in main() 297 ret = errno; in main() [all …]
|
/titanic_41/usr/src/cmd/srptadm/ |
H A D | srptadm.c | 52 #define STMF_STALE(ret) {\ argument 53 if (ret == STMF_ERROR_PROV_DATA_STALE) {\ 126 int ret = 0; in main() local 143 ret = 1; in main() 167 while ((ret == 0) && (newargv)) { in main() 199 ret = 1; in main() 212 ret = 1; in main() 217 if (ret != 0) { in main() 225 ret = 1; in main() 242 ret = 1; in main() [all …]
|
/titanic_41/usr/src/test/libc-tests/tests/random/ |
H A D | getrandom.c | 28 int ret; in main() local 34 ret = getrandom(buf, sizeof (buf), 42); in main() 35 assert(ret == -1); in main() 38 ret = getrandom(buf, sizeof (buf), 0); in main() 39 assert(ret >= 0); in main() 41 ret = getrandom(buf, sizeof (buf), GRND_NONBLOCK); in main() 42 assert(ret >= 0); in main() 44 ret = getrandom(buf, sizeof (buf), GRND_RANDOM); in main() 45 assert(ret >= 0); in main() 47 ret = getrandom(buf, sizeof (buf), GRND_RANDOM | GRND_NONBLOCK); in main() [all …]
|
H A D | inz_inval.c | 36 int ret, fd; in main() local 47 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, bad, 0, 0); in main() 48 assert(ret == -1); in main() 51 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, PROT_READ, 0); in main() 52 assert(ret == -1); in main() 55 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, bad, PROT_READ | PRIVATE, 0); in main() 56 assert(ret == -1); in main() 59 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 1); in main() 60 assert(ret == -1); in main() 63 ret = munmap(buf, mapsz); in main() [all …]
|
/titanic_41/usr/src/lib/libshare/common/ |
H A D | plugin.c | 94 int ret = SA_OK; in proto_plugin_init() local 145 ret = SA_NO_MEMORY; in proto_plugin_init() 190 ret = SA_NO_MEMORY; in proto_plugin_init() 197 if (ret != SA_OK) in proto_plugin_init() 200 return (ret); in proto_plugin_init() 277 int ret = SA_INVALID_PROTOCOL; in sa_proto_share() local 280 ret = ops->sa_share(share); in sa_proto_share() 281 return (ret); in sa_proto_share() 294 int ret = SA_INVALID_PROTOCOL; in sa_proto_unshare() local 297 ret = ops->sa_unshare(share, path); in sa_proto_unshare() [all …]
|
/titanic_41/usr/src/lib/libkmf/libkmf/common/ |
H A D | certgetsetop.c | 43 KMF_RETURN ret = KMF_OK; in copy_data() local 52 return (ret); in copy_data() 62 return (ret); in copy_data() 69 KMF_RETURN ret = KMF_OK; in copy_extension_data() local 76 ret = copy_data(&dstext->extnId, &srcext->extnId); in copy_extension_data() 77 if (ret != KMF_OK) in copy_extension_data() 84 ret = copy_data(&dstext->BERvalue, &srcext->BERvalue); in copy_extension_data() 85 if (ret != KMF_OK) in copy_extension_data() 90 ret = KMF_ERR_MEMORY; in copy_extension_data() 96 ret = copy_data(&dstext->value.tagAndValue->value, in copy_extension_data() [all …]
|
H A D | certop.c | 108 KMF_RETURN ret = KMF_OK; in kmf_find_prikey_by_cert() local 127 CLEAR_ERROR(handle, ret); in kmf_find_prikey_by_cert() 129 ret = test_attributes(num_req_attrs, required_attrs, in kmf_find_prikey_by_cert() 131 if (ret != KMF_OK) in kmf_find_prikey_by_cert() 132 return (ret); in kmf_find_prikey_by_cert() 142 ret = get_keyalg_from_cert(cert, &keyalg); in kmf_find_prikey_by_cert() 143 if (ret != KMF_OK) in kmf_find_prikey_by_cert() 144 return (ret); in kmf_find_prikey_by_cert() 152 ret = kmf_get_attr(KMF_KEYSTORE_TYPE_ATTR, attrlist, numattr, in kmf_find_prikey_by_cert() 154 if (ret != KMF_OK) in kmf_find_prikey_by_cert() [all …]
|
H A D | keyop.c | 43 KMF_RETURN ret = KMF_OK; in kmf_create_keypair() local 62 CLEAR_ERROR(handle, ret); in kmf_create_keypair() 64 ret = test_attributes(num_req_attrs, required_attrs, in kmf_create_keypair() 67 if (ret != KMF_OK) in kmf_create_keypair() 68 return (ret); in kmf_create_keypair() 71 ret = kmf_get_attr(KMF_KEYSTORE_TYPE_ATTR, attrlist, num_args, in kmf_create_keypair() 73 if (ret != KMF_OK) in kmf_create_keypair() 74 return (ret); in kmf_create_keypair() 90 KMF_RETURN ret = KMF_OK; in kmf_delete_key_from_keystore() local 109 CLEAR_ERROR(handle, ret); in kmf_delete_key_from_keystore() [all …]
|
/titanic_41/usr/src/cmd/krb5/kadmin/server/ |
H A D | server_stubs.c | 138 int ret; in cmp_gss_names_rel_1() local 140 ret = cmp_gss_names(n1, n2); in cmp_gss_names_rel_1() 142 return ret; in cmp_gss_names_rel_1() 503 static generic_ret ret; in create_principal_2_svc() local 515 xdr_free(xdr_generic_ret, (char *) &ret); in create_principal_2_svc() 517 if ((ret.code = new_server_handle(arg->api_version, rqstp, &handle))) in create_principal_2_svc() 518 return &ret; in create_principal_2_svc() 520 if ((ret.code = check_handle((void *)handle))) in create_principal_2_svc() 522 ret.api_version = handle->api_version; in create_principal_2_svc() 525 ret.code = KADM5_FAILURE; in create_principal_2_svc() [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | ldap_key_seq.c | 49 ret = err; \ 54 if (ret != 0) \ 66 asn1_error_code ret = 0; in asn1_encode_key() local 73 ret = asn1_encode_octetstring (buf, in asn1_encode_key() 78 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, length, &length); checkerr; in asn1_encode_key() 81 ret = asn1_encode_integer (buf, key_data.key_data_type[0], &length); in asn1_encode_key() 84 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 0, length, &length); checkerr; in asn1_encode_key() 87 ret = asn1_make_sequence(buf, key_len, &length); checkerr; in asn1_encode_key() 89 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, key_len, &length); checkerr; in asn1_encode_key() 99 ret = asn1_encode_octetstring (buf, in asn1_encode_key() [all …]
|
/titanic_41/usr/src/lib/libshare/smbfs/ |
H A D | smbfs_scfutil.c | 117 int ret = SMBC_SMF_OK; in smb_smf_instance_exists() local 125 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_exists() 129 return (ret); in smb_smf_instance_exists() 141 int ret = SMBC_SMF_OK; in smb_smf_instance_create() local 163 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_create() 165 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_create() 169 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_create() 172 return (ret); in smb_smf_instance_create() 181 int ret = SMBC_SMF_OK; in smb_smf_instance_delete() local 191 return (ret); in smb_smf_instance_delete() [all …]
|
/titanic_41/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 263 int ret; in set_resource_desc() local 266 ret = sa_set_resource_description(share, desc); in set_resource_desc() 269 return (ret); in set_resource_desc() 283 int ret; in set_share_desc() local 286 ret = sa_set_share_description(share, desc); in set_share_desc() 289 return (ret); in set_share_desc() 353 int ret = B_TRUE; in check_authorization() local 360 ret = B_FALSE; in check_authorization() 390 for (ret = 0, i = 0; i < numauths; i++) { in check_authorization() 395 ret = 1; in check_authorization() [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/db/ |
H A D | db_apprec.c | 51 int ret; local 57 if ((ret = __db_txnlist_init(&txninfo)) != 0) 58 return (ret); 100 if ((ret = log_get(lp, &ckp_lsn, &data, DB_CHECKPOINT)) != 0) { 106 first: if ((ret = log_get(lp, &ckp_lsn, &data, DB_FIRST)) != 0) { 107 if (ret == DB_NOTFOUND) 108 ret = 0; 114 } else if ((ret = __txn_ckp_read(data.data, &ckp_args)) != 0) { 119 (ret = log_get(lp, &ckp_args->last_ckp, &data, DB_SET)) != 0) 133 ret = dbenv->tx_recover(lp, [all …]
|
/titanic_41/usr/src/lib/libm/sparc/src/ |
H A D | libm_inlines.h | 48 double ret; in __inline_sqrt() local 50 __asm__ __volatile__("fsqrtd %1,%0\n\t" : "=e" (ret) : "e" (d)); in __inline_sqrt() 51 return (ret); in __inline_sqrt() 57 float ret; in __inline_sqrtf() local 59 __asm__ __volatile__("fsqrts %1,%0\n\t" : "=f" (ret) : "f" (f)); in __inline_sqrtf() 60 return (ret); in __inline_sqrtf() 66 enum fp_class_type ret; in fp_classf() local 107 : "=r" (ret), "=&r" (tmp) in fp_classf() 110 return (ret); in fp_classf() 119 enum fp_class_type ret; in fp_class() local [all …]
|
/titanic_41/usr/src/lib/libm/sparcv9/src/ |
H A D | libm_inlines.h | 48 enum fp_class_type ret; in fp_classf() local 88 : "=r" (ret), "=m" (fint), "=r" (tmp), "+f" (f) in fp_classf() 92 return (ret); in fp_classf() 98 enum fp_class_type ret; in fp_class() local 140 : "=r" (ret), "=m" (dint), "=r" (tmp), "+e" (d) in fp_class() 144 return (ret); in fp_class() 150 float ret; in __inline_sqrtf() local 152 __asm__ __volatile__("fsqrts %1,%0\n\t" : "=f" (ret) : "f" (f)); in __inline_sqrtf() 153 return (ret); in __inline_sqrtf() 159 double ret; in __inline_sqrt() local [all …]
|
/titanic_41/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_kdb.c | 57 int ret = 0; in kdb_init_master() local 65 if ((ret = krb5_get_default_realm(handle->context, &realm))) in kdb_init_master() 66 return ret; in kdb_init_master() 71 if ((ret = krb5_db_setup_mkey_name(handle->context, in kdb_init_master() 81 ret = krb5_db_fetch_mkey(handle->context, master_princ, in kdb_init_master() 88 if (ret) in kdb_init_master() 92 if ((ret = krb5_db_verify_master_key(handle->context, master_princ, in kdb_init_master() 95 return ret; in kdb_init_master() 102 return(ret); in kdb_init_master() 133 int ret = 0; in kdb_init_hist() local [all …]
|
/titanic_41/usr/src/cmd/cmd-crypto/tpmadm/ |
H A D | main.c | 61 int ret; in main() local 94 ret = fptr(hContext, hTPM, argc, argv); in main() 97 return (ret); in main() 125 print_error(TSS_RESULT ret, char *msg) in print_error() argument 130 err_string = Trspi_Error_String(ret); in print_error() 131 (void) fprintf(stderr, "%s: %s (0x%0x)\n", msg, err_string, ret); in print_error() 134 switch (ret) { in print_error() 152 TSS_RESULT ret; in get_tpm_capability() local 156 ret = Tspi_TPM_GetCapability(hTPM, cap, sizeof (subcap), in get_tpm_capability() 158 if (ret) { in get_tpm_capability() [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_recno.c | 84 int ret, t_ret; local 87 if ((ret = __os_calloc(1, sizeof(BTREE), &t)) != 0) 88 return (ret); 93 if ((ret = __os_calloc(1, sizeof(*rp), &rp)) != 0) 94 return (ret); 120 if ((ret = 134 ret = EINVAL; 149 if ((ret = __bam_read_root(dbp)) != 0) 158 if ((ret = dbp->cursor(dbp, NULL, &dbc, 0)) != 0) 162 if ((ret = __ram_update(dbc, [all …]
|
/titanic_41/usr/src/lib/libshell/common/tests/ |
H A D | return.sh | 79 ret=$? 80 if (( $ret != 35 )) 81 then err_exit "exit 35 is $ret not 35" 84 ret=$? 85 if (( $ret != 35 )) 86 then err_exit "return 35 is $ret not 35" 92 ret=$? 93 if (( $ret != 3 )) 94 then err_exit "foo 0 3: return is $ret not 3" 101 ret=$? [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | chpw.c | 24 krb5_error_code ret = 0; in krb5int_mk_chpw_req() local 32 if ((ret = krb5_auth_con_setflags(context, auth_context, in krb5int_mk_chpw_req() 39 if ((ret = krb5_mk_priv(context, auth_context, in krb5int_mk_chpw_req() 47 ret = ENOMEM; in krb5int_mk_chpw_req() 80 return(ret); in krb5int_mk_chpw_req() 90 krb5_error_code ret; in krb5int_rd_chpw_rep() local 119 if ((ret = krb5_rd_error(context, packet, &krberror))) in krb5int_rd_chpw_rep() 120 return(ret); in krb5int_rd_chpw_rep() 123 ret = ERROR_TABLE_BASE_krb5 + (krb5_error_code) krberror->error; in krb5int_rd_chpw_rep() 125 return (ret); in krb5int_rd_chpw_rep() [all …]
|
/titanic_41/usr/src/lib/libc/port/locale/ |
H A D | nl_langinfo.c | 49 char *ret, *s, *cs; in nl_langinfo_l() local 58 ret = ""; in nl_langinfo_l() 73 ret = cs + 1; in nl_langinfo_l() 75 ret = "646"; in nl_langinfo_l() 79 ret = (char *)ltime->c_fmt; in nl_langinfo_l() 82 ret = (char *)ltime->x_fmt; in nl_langinfo_l() 85 ret = (char *)ltime->X_fmt; in nl_langinfo_l() 88 ret = (char *)ltime->ampm_fmt; in nl_langinfo_l() 91 ret = (char *)ltime->am; in nl_langinfo_l() 94 ret = (char *)ltime->pm; in nl_langinfo_l() [all …]
|