/illumos-gate/usr/src/lib/fm/libfmd_log/common/ |
H A D | fmd_log.c | 366 fmd_log_open_err(fmd_log_t *lp, int *errp, int err) in fmd_log_open_err() argument 368 if (errp != NULL) in fmd_log_open_err() 378 fmd_log_open(int abi, const char *name, int *errp) in fmd_log_open() argument 393 return (fmd_log_open_err(lp, errp, EFDL_NOMEM)); in fmd_log_open() 398 return (fmd_log_open_err(lp, errp, errno)); in fmd_log_open() 403 return (fmd_log_open_err(lp, errp, EFDL_EXACCT)); in fmd_log_open() 417 return (fmd_log_open_err(lp, errp, EFDL_EXACCT)); in fmd_log_open() 421 return (fmd_log_open_err(lp, errp, EFDL_EXACCT)); in fmd_log_open() 474 return (fmd_log_open_err(lp, errp, EFDL_BADHDR)); in fmd_log_open() 482 return (fmd_log_open_err(lp, errp, EFDL_EXACCT)); in fmd_log_open() [all …]
|
/illumos-gate/usr/src/uts/common/io/urf/ |
H A D | urf_usbgem.c | 143 #define OUTB(dp, p, v, errp, label) \ argument 144 if ((*(errp) = usbgem_ctrl_out_val((dp), \ 153 #define OUTW(dp, p, v, errp, label) \ argument 165 if ((*(errp) = usbgem_ctrl_out((dp), \ 176 #define IN(dp, p, vp, errp, label) \ argument 187 if ((*(errp) = usbgem_ctrl_in((dp), \ 561 *errp = USB_SUCCESS; in urf_mii_read() 588 IN(dp, reg, &val, errp, usberr); in urf_mii_read() 596 IN(dp, MSR, &msr, errp, usberr); in urf_mii_read() 620 *errp = USB_SUCCESS; in urf_mii_write() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_dump.c | 54 inuse_dump(char *slice, nvlist_t *attrs, int *errp) in inuse_dump() argument 60 *errp = 0; in inuse_dump() 85 DM_USE_DUMP, errp); in inuse_dump() 87 DM_USE_DUMP, errp); in inuse_dump()
|
H A D | inuse_mnt.c | 73 inuse_mnt(char *slice, nvlist_t *attrs, int *errp) in inuse_mnt() argument 78 *errp = 0; in inuse_mnt() 88 *errp = load_mnttab(B_FALSE); in inuse_mnt() 90 if (*errp == 0) { in inuse_mnt() 92 *errp = thr_create(NULL, 0, watch_mnttab, in inuse_mnt() 96 if (*errp == 0) { in inuse_mnt() 106 libdiskmgt_add_str(attrs, DM_USED_BY, DM_USE_MOUNT, errp); in inuse_mnt() 107 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->mountp, errp); in inuse_mnt()
|
H A D | inuse_lu.c | 74 inuse_lu(char *slice, nvlist_t *attrs, int *errp) in inuse_lu() argument 79 *errp = 0; in inuse_lu() 97 *errp = load_lu(); /* load the cache */ in inuse_lu() 101 if (*errp == 0) { in inuse_lu() 107 libdiskmgt_add_str(attrs, DM_USED_BY, DM_USE_LU, errp); in inuse_lu() 108 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->name, errp); in inuse_lu()
|
H A D | inuse_vxvm.c | 82 inuse_vxvm(char *slice, nvlist_t *attrs, int *errp) in inuse_vxvm() argument 88 *errp = 0; in inuse_vxvm() 115 *errp = load_vxvm(); /* load the cache */ in inuse_vxvm() 120 if (*errp == 0) { in inuse_vxvm() 127 DM_USE_VXVM, errp); in inuse_vxvm() 129 "", errp); in inuse_vxvm()
|
H A D | cache.c | 325 cache_get_desc(int type, void *gp, char *name, char *secondary_name, int *errp) in cache_get_desc() argument 329 *errp = 0; in cache_get_desc() 334 *errp = ENOMEM; in cache_get_desc() 346 cache_get_descriptors(int type, int *errp) in cache_get_descriptors() argument 353 if ((*errp = make_descriptors(type)) != 0) { in cache_get_descriptors() 368 *errp = ENOMEM; in cache_get_descriptors() 384 *errp = 0; in cache_get_descriptors() 419 cache_load_desc(int type, void *gp, char *name, char *secondary_name, int *errp) in cache_load_desc() argument 421 *errp = 0; in cache_load_desc() 425 *errp = ENOMEM; in cache_load_desc()
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | backend.c | 1202 char *errp; in backend_check_upgrade() local 1256 char *errp; in backend_check_readonly() local 1630 char *errp; in backend_switch() local 1756 REPOSITORY_DB, errp == NULL ? "" : errp); in backend_switch_recovery() 1757 free(errp); in backend_switch_recovery() 1783 free(errp); in backend_switch_recovery() 1833 char *errp; in backend_create() local 1884 free(errp); in backend_create() 1902 free(errp); in backend_create() 2592 char *errp; in backend_init() local [all …]
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | nfs_netcfg.c | 44 netcfg_get_networkid_list(int *num_elements, int *errp) in netcfg_get_networkid_list() argument 55 *errp = errno; in netcfg_get_networkid_list() 69 *errp = errno; in netcfg_get_networkid_list() 80 *errp = ENOMEM; in netcfg_get_networkid_list()
|
H A D | fileutil.c | 64 fileutil_get_first_column_data(FILE *fp, int *num_elements, int *errp) in fileutil_get_first_column_data() argument 70 *errp = 0; in fileutil_get_first_column_data() 81 *errp = errno; in fileutil_get_first_column_data() 90 *errp = ENOMEM; in fileutil_get_first_column_data()
|
/illumos-gate/usr/src/lib/libnsl/key/ |
H A D | publickey.c | 148 getkeys_nis(int *errp, char *netname, char *pkey, char *skey, char *passwd) in getkeys_nis() argument 158 *errp = __NSW_UNAVAIL; in getkeys_nis() 177 *errp = __NSW_NOTFOUND; in getkeys_nis() 182 *errp = __NSW_UNAVAIL; in getkeys_nis() 191 *errp = __NSW_NOTFOUND; in getkeys_nis() 199 *errp = __NSW_NOTFOUND; in getkeys_nis() 209 *errp = __NSW_SUCCESS; in getkeys_nis() 228 getkeys_files(int *errp, char *netname, char *pkey, char *skey, char *passwd) in getkeys_files() argument 241 *errp = __NSW_UNAVAIL; in getkeys_files() 292 *errp = __NSW_SUCCESS; in getkeys_files() [all …]
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_open.c | 546 const ctf_sect_t *strsect, int *errp) in ctf_bufopen() argument 557 return (ctf_set_open_errno(errp, EINVAL)); in ctf_bufopen() 561 return (ctf_set_open_errno(errp, ECTF_SYMTAB)); in ctf_bufopen() 564 return (ctf_set_open_errno(errp, ECTF_SYMBAD)); in ctf_bufopen() 567 return (ctf_set_open_errno(errp, ECTF_STRBAD)); in ctf_bufopen() 610 return (ctf_set_open_errno(errp, ECTF_CTFVERS)); in ctf_bufopen() 642 if (ctf_zopen(errp) == NULL) in ctf_bufopen() 681 return (ctf_set_open_errno(errp, EAGAIN)); in ctf_bufopen() 742 (void) ctf_set_open_errno(errp, EAGAIN); in ctf_bufopen() 747 (void) ctf_set_open_errno(errp, err); in ctf_bufopen() [all …]
|
H A D | ctf_util.c | 167 ctf_set_open_errno(int *errp, int error) in ctf_set_open_errno() argument 169 if (errp != NULL) in ctf_set_open_errno() 170 *errp = error; in ctf_set_open_errno()
|
/illumos-gate/usr/src/lib/libsmbios/common/ |
H A D | smb_subr.c | 37 smb_open_error(smbios_hdl_t *shp, int *errp, int err) in smb_open_error() argument 42 if (errp != NULL) in smb_open_error() 43 *errp = err; in smb_open_error()
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_plugin.c | 52 libvarpd_plugin_alloc(uint_t version, int *errp) in libvarpd_plugin_alloc() argument 57 if (errp == NULL) in libvarpd_plugin_alloc() 58 errp = &err; in libvarpd_plugin_alloc() 64 *errp = EINVAL; in libvarpd_plugin_alloc() 73 *errp = ENOMEM; in libvarpd_plugin_alloc()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswparse.c | 181 _nsw_getoneconfig_v1(const char *name, char *linep, enum __nsw_parse_err *errp) in _nsw_getoneconfig_v1() argument 191 *errp = __NSW_CONF_PARSE_SUCCESS; in _nsw_getoneconfig_v1() 195 *errp = __NSW_CONF_PARSE_SYSERR; in _nsw_getoneconfig_v1() 211 *errp = __NSW_CONF_PARSE_SYSERR; in _nsw_getoneconfig_v1() 367 *errp = __NSW_CONF_PARSE_NOPOLICY; in _nsw_getoneconfig_v1()
|
/illumos-gate/usr/src/common/smbios/ |
H A D | smb_open.c | 216 int version, int flags, int *errp) in smbios_bufopen() argument 241 return (smb_open_error(shp, errp, ESMB_VERSION)); in smbios_bufopen() 245 return (smb_open_error(shp, errp, ESMB_INVAL)); in smbios_bufopen() 248 return (smb_open_error(shp, errp, ESMB_NOMEM)); in smbios_bufopen() 257 return (smb_open_error(shp, errp, err)); in smbios_bufopen() 271 return (smb_open_error(shp, errp, ESMB_NOMEM)); in smbios_bufopen() 282 return (smb_open_error(shp, errp, ESMB_VERSION)); in smbios_bufopen() 329 return (smb_open_error(shp, errp, ESMB_NOMEM)); in smbios_bufopen() 346 return (smb_open_error(shp, errp, ESMB_CORRUPT)); in smbios_bufopen()
|
/illumos-gate/usr/src/test/crypto-tests/tests/digest/ |
H A D | parser_runner.c | 45 parser_init(const char *path, size_t hash_len, int *errp) in parser_init() argument 55 *errp = errno; in parser_init() 60 *errp = ENOMEM; in parser_init() 207 parser_read(parser_ctx_t *ctx, int *errp) in parser_read() argument 291 *errp = err; in parser_read()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockfilter_impl.h | 204 #define SOF_FILTER_DATA_OUT(so, mp, msg, cr, errp) \ argument 205 sof_filter_data_out_from(so, (so)->so_filter_top, mp, msg, cr, errp) 206 #define SOF_FILTER_DATA_OUT_FROM(so, inst, mp, msg, cr, errp) \ argument 207 sof_filter_data_out_from(so, inst, mp, msg, cr, errp)
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | libipmi.c | 34 ipmi_open(int *errp, char **msg, uint_t xport_type, nvlist_t *params) in ipmi_open() argument 43 *errp = EIPMI_NOMEM; in ipmi_open() 65 *errp = ihp->ih_errno; in ipmi_open()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_ctf_open.c | 45 mdb_ctf_open(const char *filename, int *errp) in mdb_ctf_open() argument 47 return (ctf_open(filename, errp)); in mdb_ctf_open()
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_plugin.c | 549 sdev_plugin_register(const char *name, sdev_plugin_ops_t *ops, int *errp) in sdev_plugin_register() argument 564 if (errp == NULL) in sdev_plugin_register() 565 errp = &err; in sdev_plugin_register() 568 *errp = EINVAL; in sdev_plugin_register() 573 *errp = EINVAL; in sdev_plugin_register() 579 *errp = EINVAL; in sdev_plugin_register() 584 *errp = EINVAL; in sdev_plugin_register() 620 *errp = ret; in sdev_plugin_register() 639 *errp = EEXIST; in sdev_plugin_register() 651 *errp = EEXIST; in sdev_plugin_register() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_node.c | 685 uint32_t fac_subtype, topo_faclist_t *faclist, int *errp) in topo_node_facility() argument 711 if (topo_node_resource(tmp, &rsrc, errp) != 0) { in topo_node_facility() 715 topo_strerror(*errp)); in topo_node_facility() 741 TOPO_FACILITY_TYPE, &tmp_facsubtype, errp) != 0) { in topo_node_facility() 749 *errp = ETOPO_NOMEM; in topo_node_facility() 761 *errp = ETOPO_FAC_NOENT; in topo_node_facility() 812 int (*cb_f)(), void *pdata, int *errp) in topo_node_walk_init() argument 820 *errp = ETOPO_HDL_NOMEM; in topo_node_walk_init() 833 *errp = ETOPO_WALK_EMPTY; in topo_node_walk_init() 862 void *arg, int *errp) in topo_node_child_walk() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/axf/ |
H A D | axf_usbgem.c | 292 #define OUT(dp, req, val, ix, len, buf, errp, label) \ argument 293 if ((*(errp) = usbgem_ctrl_out((dp), \ 303 #define IN(dp, req, val, ix, len, buf, errp, label) \ argument 304 if ((*(errp) = usbgem_ctrl_in((dp), \ 883 axf_mii_read(struct usbgem_dev *dp, uint_t index, int *errp) in axf_mii_read() argument 892 OUT(dp, VCMD_SOFTWARE_MII_OP, 0, 0, 0, NULL, errp, usberr); in axf_mii_read() 896 2, buf, errp, usberr); in axf_mii_read() 899 OUT(dp, VCMD_HARDWARE_MII_OP, 0, 0, 0, NULL, errp, usberr); in axf_mii_read() 918 OUT(dp, VCMD_SOFTWARE_MII_OP, 0, 0, 0, NULL, errp, usberr); in axf_mii_write() 924 2, buf, errp, usberr); in axf_mii_write() [all …]
|
/illumos-gate/usr/src/lib/libsaveargs/tests/dump/ |
H A D | dump.c | 139 int errp, fd; in main() local 150 if ((ctfp = ctf_open(argv[1], &errp)) == NULL) in main() 152 ctf_errmsg(errp)); in main()
|