/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_hdrs_ui.c | 41 int *error) in sip_get_val_from_hdr() argument 43 if (error != NULL) in sip_get_val_from_hdr() 44 *error = 0; in sip_get_val_from_hdr() 47 if (error != NULL) in sip_get_val_from_hdr() 48 *error = EINVAL; in sip_get_val_from_hdr() 53 *error = EPROTO; in sip_get_val_from_hdr() 80 if (error != NULL && *error == 0) in sip_get_val_from_hdr() 81 *error = EINVAL; in sip_get_val_from_hdr() 91 boolean_t stype, boolean_t empty_val, int *error) in sip_get_val_from_msg() argument 96 if (error != NULL) in sip_get_val_from_msg() [all …]
|
H A D | sip_uri_ui.c | 60 sip_parse_uri(sip_str_t *uri_str, int *error) in sip_parse_uri() argument 64 if (error != NULL) in sip_parse_uri() 65 *error = 0; in sip_parse_uri() 68 if (error != NULL) in sip_parse_uri() 69 *error = EINVAL; in sip_parse_uri() 74 if (error != NULL) in sip_parse_uri() 75 *error = ENOMEM; in sip_parse_uri() 82 if (error != NULL) in sip_parse_uri() 83 *error = ENOMEM; in sip_parse_uri() 86 if (parsed_uri->sip_uri_errflags != 0 && error != NULL) in sip_parse_uri() [all …]
|
H A D | sip_xaction_ui.c | 73 sip_get_trans(sip_msg_t sip_msg, int which, int *error) in sip_get_trans() argument 75 if (error != NULL) in sip_get_trans() 76 *error = 0; in sip_get_trans() 78 if (error != NULL) in sip_get_trans() 79 *error = EINVAL; in sip_get_trans() 90 sip_get_trans_resp_msg(sip_transaction_t sip_trans, int *error) in sip_get_trans_resp_msg() argument 94 if (error != NULL) in sip_get_trans_resp_msg() 95 *error = 0; in sip_get_trans_resp_msg() 97 if (error != NULL) in sip_get_trans_resp_msg() 98 *error = EINVAL; in sip_get_trans_resp_msg() [all …]
|
H A D | sip_dialog_ui.c | 146 sip_get_dialog_method(sip_dialog_t dialog, int *error) in sip_get_dialog_method() argument 150 if (error != NULL) in sip_get_dialog_method() 151 *error = 0; in sip_get_dialog_method() 153 if (error != NULL) in sip_get_dialog_method() 154 *error = EINVAL; in sip_get_dialog_method() 158 if (error != NULL) in sip_get_dialog_method() 159 *error = EINVAL; in sip_get_dialog_method() 170 sip_get_dialog_state(sip_dialog_t dialog, int *error) in sip_get_dialog_state() argument 174 if (error != NULL) in sip_get_dialog_state() 175 *error = 0; in sip_get_dialog_state() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_check.h | 45 # error "FALCON is obsolete and is not supported." 51 # error "BOOTCFG requires NVRAM" 58 # error "CHECK_REG requires SIENA or HUNTINGTON or MEDFORD" 65 # error "INTR_FATAL requires SIENA" 72 # error "DIAG requires SIENA or HUNTINGTON or MEDFORD" 79 # error "EV_PREFETCH requires SIENA or HUNTINGTON or MEDFORD" 84 # error "FALCON_NIC_CFG_OVERRIDE is obsolete and is not supported." 90 # error "FILTER requires SIENA or HUNTINGTON or MEDFORD" 96 # error "HUNTINGTON or MEDFORD requires FILTER" 103 # error "LOOPBACK requires SIENA or HUNTINGTON or MEDFORD" [all …]
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | acpi.c | 33 my_dbus_error_free(DBusError *error) in my_dbus_error_free() argument 35 if (dbus_error_is_set(error)) { in my_dbus_error_free() 36 dbus_error_free(error); in my_dbus_error_free() 44 DBusError error; in laptop_panel_update() local 49 dbus_error_init(&error); in laptop_panel_update() 50 if (!libhal_device_query_capability(ctx, udi, "laptop_panel", &error)) { in laptop_panel_update() 57 my_dbus_error_free(&error); in laptop_panel_update() 58 libhal_device_add_capability(ctx, udi, "laptop_panel", &error); in laptop_panel_update() 60 my_dbus_error_free(&error); in laptop_panel_update() 69 my_dbus_error_free(&error); in laptop_panel_update() [all …]
|
/illumos-gate/usr/src/cmd/bhyvectl/ |
H A D | bhyvectl.c | 372 int error = 0; in get_all_registers() local 374 if (!error && (get_efer || get_all)) { in get_all_registers() 375 error = vm_get_register(vcpu, VM_REG_GUEST_EFER, &efer); in get_all_registers() 376 if (error == 0) in get_all_registers() 380 if (!error && (get_cr0 || get_all)) { in get_all_registers() 381 error = vm_get_register(vcpu, VM_REG_GUEST_CR0, &cr0); in get_all_registers() 382 if (error == 0) in get_all_registers() 386 if (!error && (get_cr2 || get_all)) { in get_all_registers() 387 error = vm_get_register(vcpu, VM_REG_GUEST_CR2, &cr2); in get_all_registers() 388 if (error == 0) in get_all_registers() [all …]
|
/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | request.c | 374 int error; in l9p_respond() local 378 error = req->lr_error; in l9p_respond() 379 if (error == 0) in l9p_respond() 384 req->lr_resp.error.errnum = (uint32_t)e2linux(error); in l9p_respond() 387 req->lr_resp.error.ename = strerror(error); in l9p_respond() 388 req->lr_resp.error.errnum = (uint32_t)e29p(error); in l9p_respond() 417 error = drop ? 0 : in l9p_respond() 421 if (error != 0) { in l9p_respond() 621 int error; in l9p_dispatch_tattach() local 631 error = fid_lookup(conn, req->lr_req.tattach.afid, EINVAL, in l9p_dispatch_tattach() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv_attr.c | 241 int error = 0; in rfs4_fattr4_supported_attrs() local 247 error = EINVAL; in rfs4_fattr4_supported_attrs() 256 error = EINVAL; in rfs4_fattr4_supported_attrs() 263 error = -1; /* no match */ in rfs4_fattr4_supported_attrs() 269 return (error); in rfs4_fattr4_supported_attrs() 284 int error = 0; in rfs4_fattr4_type() local 289 error = EINVAL; in rfs4_fattr4_type() 293 error = -1; /* may be okay if rdattr_error */ in rfs4_fattr4_type() 320 error = EINVAL; in rfs4_fattr4_type() 328 error = -1; /* no match */ in rfs4_fattr4_type() [all …]
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.c | 41 static char *get_device_name(dm_descriptor_t device, int *error); 42 static dmgt_disk_t *get_disk(dm_descriptor_t disk, int *error); 43 static char **get_disk_aliases(dm_descriptor_t disk, char *name, int *error); 44 static int get_disk_online(dm_descriptor_t disk, int *error); 47 const char *name, uint32_t blocksize, int *error); 49 const char *name, uint32_t blocksize, int *in_use, int *error); 51 uint64_t *size, uint32_t *blocksize, int *error); 53 char **used_name, char **used_by, int *error); 55 dm_descriptor_t slice, uint32_t blocksize, int *error); 57 static int slice_in_use(dmgt_slice_t *slice, int *error); [all …]
|
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | privcmd_hcall.c | 113 export_buffer(import_export_t *iep, int *error) in export_buffer() argument 125 if ((iep->ie_flags & IE_EXPORT) && (*error >= 0) && in export_buffer() 134 if (copy_err != 0 && *error >= 0) in export_buffer() 135 *error = copy_err; in export_buffer() 169 int error, kscount, bytes; in privcmd_HYPERVISOR_mmu_update() local 174 error = import_buffer(&cnt_ie, scount, &kscount, sizeof (kscount), in privcmd_HYPERVISOR_mmu_update() 176 if (error != 0) in privcmd_HYPERVISOR_mmu_update() 179 error = import_buffer(&req_ie, ureq, kreq, bytes, IE_IMPEXP); in privcmd_HYPERVISOR_mmu_update() 182 ((error == -X_EFAULT) ? ureq : kreq)); in privcmd_HYPERVISOR_mmu_update() 184 if (error == 0) in privcmd_HYPERVISOR_mmu_update() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | libelf.msg | 36 @ EINF_NULLERROR "Elf error 0" 39 # BUG bug Internal error 41 @ EBUG_COOKSTAT "Internal error: cook status" 42 @ EBUG_COOKTYPE "Internal error: cook data type" 43 @ EBUG_SCNLIST "Internal error: broken section list" 44 @ EBUG_THRDKEY "Internal error: thr_keycreate() failed. \ 45 Unable to allocate error buffer" 46 @ EBUG_THRDSET "Internal error: thr_setspecific failed. \ 47 Unable to create TSD for error message." 50 # FMT fmt Format error [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_smb1.c | 74 int error; 88 error = smb_rq_init(rqp, SSTOCP(ssp), SMB_COM_LOCKING_ANDX, scrp); 89 if (error) 90 return (error); 126 error = smb_rq_simple(rqp); 128 return (error); 147 int error; in smbfs_smb1_trans2_query() local 157 error = smb_t2_alloc(SSTOCP(ssp), cmd, scrp, &t2p); in smbfs_smb1_trans2_query() 158 if (error) in smbfs_smb1_trans2_query() 159 return (error); in smbfs_smb1_trans2_query() [all …]
|
H A D | smbfs_smb2.c | 96 int error; in smbfs_smb2_getpattr() local 99 error = smbfs_smb_ntcreatex(np, in smbfs_smb2_getpattr() 107 if (error == 0) { in smbfs_smb2_getpattr() 111 return (error); in smbfs_smb2_getpattr() 129 int error; in smbfs_smb2_query_info() local 131 error = smb_rq_alloc(SSTOCP(ssp), SMB2_QUERY_INFO, scrp, &rqp); in smbfs_smb2_query_info() 132 if (error) in smbfs_smb2_query_info() 151 error = smb2_rq_simple(rqp); in smbfs_smb2_query_info() 152 if (error) { in smbfs_smb2_query_info() 154 error = ENOTSUP; in smbfs_smb2_query_info() [all …]
|
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | acl.y | 156 int error; variable 160 error = get_id($1, $2, &id); 161 if (error) { 169 error = ace_perm_mask(&$3, &$$.a_access_mask); 170 if (error) { 172 return (error); 179 int error; variable 189 error = get_id($1, $2, &id); 190 if (error) { 196 error = ace_perm_mask(&$3, &$$.a_access_mask); [all …]
|
H A D | acltext.c | 147 int error = IDMAP_ERR_NORESULT; in getsidname() local 159 error = idmap_getwinnamebyuid(who, in getsidname() 162 error = idmap_getwinnamebygid(who, in getsidname() 165 if (error != IDMAP_SUCCESS) { in getsidname() 168 error = idmap_get_sidbyuid(get_hdl, who, in getsidname() 172 error = idmap_get_sidbygid(get_hdl, who, in getsidname() 175 if (error == IDMAP_SUCCESS && in getsidname() 335 int error; in aclent_type_txt() local 341 error = str_append(dstr, "user::"); in aclent_type_txt() 343 error = str_append(dstr, "defaultuser::"); in aclent_type_txt() [all …]
|
/illumos-gate/usr/src/uts/common/fs/autofs/ |
H A D | auto_vnops.c | 113 VOPNAME_FRLOCK, { .error = fs_error }, 114 VOPNAME_DISPOSE, { .error = fs_error }, 115 VOPNAME_SHRLOCK, { .error = fs_error }, 127 int error; in auto_open() local 131 error = auto_trigger_mount(*vpp, cred, &newvp); in auto_open() 132 if (error) in auto_open() 141 error = VOP_ACCESS(*vpp, VREAD, 0, cred, ct); in auto_open() 142 if (!error) in auto_open() 143 error = VOP_OPEN(vpp, flag, cred, ct); in auto_open() 148 error)); in auto_open() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | statvfs.c | 82 int error; in cstatvfs32() local 90 if ((error = VFS_STATVFS(vfsp, &ds64)) != 0) in cstatvfs32() 91 return (error); in cstatvfs32() 144 int error; in cstatvfs64() local 150 if ((error = VFS_STATVFS(vfsp, &ds64)) != 0) in cstatvfs64() 151 return (error); in cstatvfs64() 164 int error; in statvfs() local 168 if (error = lookupname(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp)) { in statvfs() 169 if ((error == ESTALE) && fs_need_estale_retry(estale_retry++)) in statvfs() 171 return (set_errno(error)); in statvfs() [all …]
|
/illumos-gate/usr/src/uts/common/io/urtw/ |
H A D | urtw.c | 603 usbd_status error; in urtw_led_init() local 605 if (error = urtw_read8_c(sc, URTW_PSR, &sc->sc_psr, 0)) in urtw_led_init() 607 error = urtw_eprom_read32(sc, URTW_EPROM_SWREV, &rev); in urtw_led_init() 608 if (error != 0) in urtw_led_init() 631 return (error); in urtw_led_init() 643 usbd_status error; in urtw_8225_write_s16() local 662 error = usb_pipe_ctrl_xfer_wait(sc->sc_udev->dev_default_ph, &req, &mp, in urtw_8225_write_s16() 664 if (error != USB_SUCCESS) { in urtw_8225_write_s16() 671 return (error); in urtw_8225_write_s16() 684 usbd_status error; in urtw_8225_read() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb2_rq.c | 129 int error; in smb2_rq_simple_timed() local 135 error = smb2_rq_enqueue(rqp); in smb2_rq_simple_timed() 136 if (error == 0) in smb2_rq_simple_timed() 137 error = smb2_rq_reply(rqp); in smb2_rq_simple_timed() 139 return (error); in smb2_rq_simple_timed() 148 int error = 0; in smb2_rq_enqueue() local 174 error = smb_iod_reconnect(vcp); in smb2_rq_enqueue() 175 if (error != 0) in smb2_rq_enqueue() 176 return (error); in smb2_rq_enqueue() 184 error = smb_share_tcon(ssp, rqp->sr_cred); in smb2_rq_enqueue() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zcp_get.c | 48 int error; in get_objset_type() local 50 error = dmu_objset_from_ds(ds, &os); in get_objset_type() 51 if (error != 0) in get_objset_type() 52 return (error); in get_objset_type() 77 int error; in get_objset_type_name() local 79 error = get_objset_type(ds, &type); in get_objset_type_name() 80 if (error != 0) in get_objset_type_name() 81 return (error); in get_objset_type_name() 124 const char *property_name, int error) in zcp_handle_error() argument 126 ASSERT3S(error, !=, 0); in zcp_handle_error() [all …]
|
H A D | zfs_ioctl.c | 550 int error; in zfs_secpolicy_write_perms_ds() local 552 error = zfs_dozonecheck_ds(name, ds, cr); in zfs_secpolicy_write_perms_ds() 553 if (error == 0) { in zfs_secpolicy_write_perms_ds() 554 error = secpolicy_zfs(cr); in zfs_secpolicy_write_perms_ds() 555 if (error != 0) in zfs_secpolicy_write_perms_ds() 556 error = dsl_deleg_access_impl(ds, perm, cr); in zfs_secpolicy_write_perms_ds() 558 return (error); in zfs_secpolicy_write_perms_ds() 564 int error; in zfs_secpolicy_write_perms() local 576 error = dsl_pool_hold(name, FTAG, &dp); in zfs_secpolicy_write_perms() 577 if (error != 0) in zfs_secpolicy_write_perms() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/ |
H A D | fksmbcl_main.c | 45 #error "This calls (fake) VFS code which requires 64-bit off_t" 80 int error, opt; in main() local 109 error = smb_ctx_alloc(&ctx); in main() 110 if (error) { in main() 112 argv[0], error); in main() 116 error = smb_ctx_scan_argv(ctx, argc, argv, in main() 118 if (error) { in main() 119 fprintf(stderr, "logon: smb_ctx_scan_argv, error %d\n", error); in main() 122 error = smb_ctx_readrc(ctx); in main() 123 if (error) { in main() [all …]
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_impl.c | 60 int error; in common_resource_op() local 73 error = rsrc_node_find(rsrcname, 0, &node); in common_resource_op() 74 if ((error == RCM_SUCCESS) && (node != NULL)) { in common_resource_op() 85 error = rsrc_client_action_list(node->users, cmd, &arg); in common_resource_op() 87 error = rsrc_tree_action(node, cmd, &arg); in common_resource_op() 89 } else if ((error == RCM_SUCCESS) && (flag & RCM_RETIRE_REQUEST)) { in common_resource_op() 97 error = RCM_NO_CONSTRAINT; in common_resource_op() 100 return (error); in common_resource_op() 112 int error; in notify_resource_remove() local 125 error = dr_req_update(rsrcnames[i], pid, flag, in notify_resource_remove() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | lwp_rwlock.c | 43 int error; in __lwp_rwlock_rdlock() local 45 error = __systemcall(&rval, SYS_lwp_rwlock_sys, in __lwp_rwlock_rdlock() 47 if (error == ERESTART) in __lwp_rwlock_rdlock() 48 error = EINTR; in __lwp_rwlock_rdlock() 50 return (error); in __lwp_rwlock_rdlock() 57 int error; in __lwp_rwlock_wrlock() local 59 error = __systemcall(&rval, SYS_lwp_rwlock_sys, in __lwp_rwlock_wrlock() 61 if (error == ERESTART) in __lwp_rwlock_wrlock() 62 error = EINTR; in __lwp_rwlock_wrlock() 64 return (error); in __lwp_rwlock_wrlock() [all …]
|