/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/libsff/common/ |
H A D | libsff.c | 686 int ret; in sff_parse_compliance() local 689 if ((ret = sff_gather_bitfield(buf[SFF_8472_COMPLIANCE_10GE] & in sff_parse_compliance() 692 return (ret); in sff_parse_compliance() 694 if ((ret = sff_gather_bitfield(buf[SFF_8472_COMPLIANCE_IB] & in sff_parse_compliance() 697 return (ret); in sff_parse_compliance() 699 if ((ret = sff_gather_bitfield(buf[SFF_8472_COMPLIANCE_ESCON] & in sff_parse_compliance() 702 return (ret); in sff_parse_compliance() 706 if ((ret = sff_gather_bitfield(v & SFF_8472_COMP_SOCON_MASK, in sff_parse_compliance() 708 return (ret); in sff_parse_compliance() 710 if ((ret = sff_gather_bitfield(buf[SFF_8472_COMPLIANCE_ETHERNET] & in sff_parse_compliance() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_crypto.c | 88 int ret; in zfs_prop_parse_keylocation() local 101 ret = regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), pmatch, 0); in zfs_prop_parse_keylocation() 102 switch (ret) { in zfs_prop_parse_keylocation() 115 (void) fprintf(stderr, "regexec failed: %d\n", ret); in zfs_prop_parse_keylocation() 139 int ret, i; in hex_key_to_raw() local 144 ret = EINVAL; in hex_key_to_raw() 148 ret = sscanf(&hex[i], "%02x", &c); in hex_key_to_raw() 149 if (ret != 1) { in hex_key_to_raw() 150 ret = EINVAL; in hex_key_to_raw() 160 return (ret); in hex_key_to_raw() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_sval.c | 37 sval_t *ret; in sval_alloc() local 39 ret = __alloc_sval(0); in sval_alloc() 40 *ret = sval; in sval_alloc() 41 return ret; in sval_alloc() 46 sval_t *ret; in sval_alloc_permanent() local 48 ret = malloc(sizeof(*ret)); in sval_alloc_permanent() 49 *ret = sval; in sval_alloc_permanent() 50 return ret; in sval_alloc_permanent() 55 sval_t ret; in sval_blank() local 57 ret.type = get_type(expr); in sval_blank() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | memstream.c | 127 boolean_t ret; in fmemopen_cantalloc() local 130 ret = fmemopen_badopen(NULL, 10, "w+", ENOMEM); in fmemopen_cantalloc() 132 return (ret); in fmemopen_cantalloc() 160 boolean_t ret; in open_memstream_badbuf() local 164 ret = open_memstream_badopen(NULL, &s, EINVAL); in open_memstream_badbuf() 170 return (ret); in open_memstream_badbuf() 189 boolean_t ret; in open_memstream_cantalloc() local 194 ret = open_memstream_badopen(&c, &len, EAGAIN); in open_memstream_cantalloc() 196 return (ret); in open_memstream_cantalloc() 224 boolean_t ret; in open_wmemstream_badbuf() local [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | uchar.c | 54 boolean_t ret = B_TRUE; in mbrtoc32_ascii() local 58 ret = B_FALSE; in mbrtoc32_ascii() 64 ret = B_FALSE; in mbrtoc32_ascii() 69 ret = B_FALSE; in mbrtoc32_ascii() 75 ret = B_FALSE; in mbrtoc32_ascii() 78 return (ret); in mbrtoc32_ascii() 102 boolean_t ret = B_TRUE; in mbrtoc32_badseq_utf8() local 109 ret = B_FALSE; in mbrtoc32_badseq_utf8() 115 ret = B_FALSE; in mbrtoc32_badseq_utf8() 130 ret = B_FALSE; in mbrtoc32_badseq_utf8() [all …]
|
/illumos-gate/usr/src/test/nvme-tests/tests/libnvme/ |
H A D | info-roundtrip.c | 29 bool ret = true; in info_roundtrip_pci() local 37 ret = false; in info_roundtrip_pci() 41 ret = false; in info_roundtrip_pci() 45 ret = false; in info_roundtrip_pci() 54 ret = false; in info_roundtrip_pci() 58 ret = false; in info_roundtrip_pci() 62 ret = false; in info_roundtrip_pci() 71 ret = false; in info_roundtrip_pci() 75 ret = false; in info_roundtrip_pci() 79 ret = false; in info_roundtrip_pci() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_dwarf.c | 314 int ret; in ctf_dwarf_error() local 323 ret = snprintf(cup->cu_errbuf, rem, "die %s: ", in ctf_dwarf_error() 325 if (ret < 0) in ctf_dwarf_error() 327 off += ret; in ctf_dwarf_error() 328 rem = MAX(rem - ret, 0); in ctf_dwarf_error() 331 ret = vsnprintf(cup->cu_errbuf + off, rem, fmt, ap); in ctf_dwarf_error() 333 if (ret < 0) in ctf_dwarf_error() 336 off += ret; in ctf_dwarf_error() 337 rem = MAX(rem - ret, 0); in ctf_dwarf_error() 417 int ret; in ctf_dwmap_add() local [all …]
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 268 int ret; in set_resource_desc() local 271 ret = sa_set_resource_description(share, desc); in set_resource_desc() 274 return (ret); in set_resource_desc() 288 int ret; in set_share_desc() local 291 ret = sa_set_share_description(share, desc); in set_share_desc() 294 return (ret); in set_share_desc() 358 int ret = B_TRUE; in check_authorization() local 365 ret = B_FALSE; in check_authorization() 395 for (ret = 0, i = 0; i < numauths; i++) { in check_authorization() 400 ret = 1; in check_authorization() [all …]
|
/illumos-gate/usr/src/lib/libshare/smbfs/ |
H A D | smbfs_scfutil.c | 115 int ret = SMBC_SMF_OK; in smb_smf_instance_exists() local 123 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_exists() 127 return (ret); in smb_smf_instance_exists() 139 int ret = SMBC_SMF_OK; in smb_smf_instance_create() local 161 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_create() 163 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_create() 167 ret = SMBC_SMF_SYSTEM_ERR; in smb_smf_instance_create() 170 return (ret); in smb_smf_instance_create() 179 int ret = SMBC_SMF_OK; in smb_smf_instance_delete() local 189 return (ret); in smb_smf_instance_delete() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | ldap_key_seq.c | 47 ret = err; \ 52 if (ret != 0) \ 64 asn1_error_code ret = 0; in asn1_encode_key() local 71 ret = asn1_encode_octetstring (buf, in asn1_encode_key() 76 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, length, &length); checkerr; in asn1_encode_key() 79 ret = asn1_encode_integer (buf, key_data.key_data_type[0], &length); in asn1_encode_key() 82 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 0, length, &length); checkerr; in asn1_encode_key() 85 ret = asn1_make_sequence(buf, key_len, &length); checkerr; in asn1_encode_key() 87 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, key_len, &length); checkerr; in asn1_encode_key() 97 ret = asn1_encode_octetstring (buf, in asn1_encode_key() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/test/os-tests/tests/uccid/ |
H A D | modify.c | 42 int fd, ret; in main() local 60 ret = ioctl(fd, UCCID_CMD_ICC_MODIFY, &uci); in main() 61 VERIFY3S(ret, ==, 0); in main() 66 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main() 67 VERIFY3S(ret, ==, 0); in main() 74 ret = ioctl(fd, UCCID_CMD_ICC_MODIFY, &uci); in main() 75 VERIFY3S(ret, ==, 0); in main() 80 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main() 81 VERIFY3S(ret, ==, 0); in main() 95 ret = ioctl(fd, UCCID_CMD_STATUS, &ucs); in main() [all …]
|