/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | sys_info.c | 39 char *sys_get_hostname(int *errp) { argument 44 *errp = 0; 46 *errp = errno; 52 *errp = errno;
|
H A D | nfs_netcfg.c | 46 netcfg_get_networkid_list(int *num_elements, int *errp) argument 57 *errp = errno; 71 *errp = errno; 82 *errp = ENOMEM;
|
H A D | nfs_nfssec.c | 63 * - int *errp - the error indicator. This will be set to a non-zero 73 nfssec_get_default_secmode(int *errp) argument 79 *errp = 0; 82 *errp = err; 88 *errp = err; 94 *errp = ENOMEM; 110 * - int *errp - the error indicator. This will be set to a non-zero 122 nfssec_get_nfs_secmode_list(int *num_elements, int *errp) argument 128 *errp = 0; 133 *errp [all...] |
H A D | cmd.c | 172 * - int *errp - the error indicator. This will be set to a non-zero 179 cmd_execute_command_and_retrieve_string(char *cmd, int *errp) { argument 186 *errp = 0; 188 *errp = errno; 193 *errp = errno; 211 *errp = errno; 212 exit(*errp); 216 *errp = errno; 217 exit(*errp); 224 *errp 288 cmd_retrieve_string(int filedes, int *errp) argument [all...] |
H A D | fs_shares.c | 54 int *errp); 83 fs_get_share_list(int *errp) argument 99 newp = create_sharelist_entry(sharetab_entry, errp); 122 *errp = errno; 282 create_sharelist_entry(struct share *sharetab_entry, int *errp) argument 294 *errp = errno; 303 *errp = errno; 313 *errp = errno; 323 *errp = errno; 333 *errp [all...] |
H A D | fileutil.c | 66 fileutil_get_first_column_data(FILE *fp, int *num_elements, int *errp) argument 72 *errp = 0; 83 *errp = errno; 92 *errp = ENOMEM;
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_dump.c | 56 inuse_dump(char *slice, nvlist_t *attrs, int *errp) argument 62 *errp = 0; 87 DM_USE_DUMP, errp); 89 DM_USE_DUMP, errp);
|
H A D | inuse_zpool.c | 68 inuse_zpool_common(char *slice, nvlist_t *attrs, int *errp, char *type) argument 76 *errp = 0; 115 type, errp); 117 name, errp); 130 inuse_active_zpool(char *slice, nvlist_t *attrs, int *errp) argument 132 return (inuse_zpool_common(slice, attrs, errp, DM_USE_ACTIVE_ZPOOL)); 136 inuse_exported_zpool(char *slice, nvlist_t *attrs, int *errp) argument 138 return (inuse_zpool_common(slice, attrs, errp, DM_USE_EXPORTED_ZPOOL));
|
H A D | alias.c | 45 int *errp) 49 return (drive_get_assocs(desc, errp)); 52 *errp = EINVAL; 57 alias_get_attributes(descriptor_t *dp, int *errp) argument 64 *errp = ENODEV; 70 *errp = ENOMEM; 77 *errp = ENOMEM; 83 *errp = ENOMEM; 91 *errp = ENOMEM; 102 if ((*errp 44 alias_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) argument 121 alias_get_descriptor_by_name(char *name, int *errp) argument 151 alias_get_descriptors(int filter[], int *errp) argument 164 alias_get_stats(descriptor_t *dp, int stat_type, int *errp) argument [all...] |
H A D | bus.c | 39 static descriptor_t **get_assoc_buses(descriptor_t *desc, int *errp); 40 static descriptor_t **get_assoc_controllers(descriptor_t *desc, int *errp); 43 bus_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) argument 47 return (get_assoc_buses(desc, errp)); 49 return (get_assoc_controllers(desc, errp)); 52 *errp = EINVAL; 57 bus_get_attributes(descriptor_t *dp, int *errp) argument 63 *errp = ENOMEM; 71 *errp = ENOMEM; 78 *errp 96 bus_get_descriptor_by_name(char *name, int *errp) argument 126 bus_get_descriptors(int filter[], int *errp) argument 139 bus_get_stats(descriptor_t *dp, int stat_type, int *errp) argument 165 get_assoc_buses(descriptor_t *desc, int *errp) argument 219 get_assoc_controllers(descriptor_t *desc, int *errp) argument [all...] |
H A D | controller.c | 39 static descriptor_t **get_assoc_buses(descriptor_t *desc, int *errp); 40 static descriptor_t **get_assoc_drives(descriptor_t *desc, int *errp); 41 static descriptor_t **get_assoc_paths(descriptor_t *desc, int *errp); 45 int *errp) 49 return (get_assoc_drives(desc, errp)); 51 return (get_assoc_paths(desc, errp)); 53 return (get_assoc_buses(desc, errp)); 56 *errp = EINVAL; 61 controller_get_attributes(descriptor_t *dp, int *errp) argument 67 *errp 44 controller_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) argument 138 controller_get_descriptor_by_name(char *name, int *errp) argument 168 controller_get_descriptors(int filter[], int *errp) argument 181 controller_get_stats(descriptor_t *dp, int stat_type, int *errp) argument 207 get_assoc_buses(descriptor_t *desc, int *errp) argument 236 get_assoc_drives(descriptor_t *desc, int *errp) argument 270 get_assoc_paths(descriptor_t *desc, int *errp) argument [all...] |
H A D | inuse_lu.c | 76 inuse_lu(char *slice, nvlist_t *attrs, int *errp) argument 81 *errp = 0; 99 *errp = load_lu(); /* load the cache */ 103 if (*errp == 0) { 109 libdiskmgt_add_str(attrs, DM_USED_BY, DM_USE_LU, errp); 110 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->name, errp);
|
H A D | path.c | 39 static descriptor_t **get_assoc_drives(descriptor_t *desc, int *errp); 40 static descriptor_t **get_assoc_controllers(descriptor_t *desc, int *errp); 44 path_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) argument 48 return (get_assoc_drives(desc, errp)); 50 return (get_assoc_controllers(desc, errp)); 53 *errp = EINVAL; 58 path_get_attributes(descriptor_t *dp, int *errp) argument 66 *errp = ENOMEM; 72 *errp = ENOMEM; 84 *errp 99 path_get_descriptor_by_name(char *name, int *errp) argument 129 path_get_descriptors(int filter[], int *errp) argument 142 path_get_stats(descriptor_t *dp, int stat_type, int *errp) argument 249 get_assoc_controllers(descriptor_t *desc, int *errp) argument 282 get_assoc_drives(descriptor_t *desc, int *errp) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_ctf_open.c | 45 mdb_ctf_open(const char *filename, int *errp) argument 47 return (ctf_open(filename, errp));
|
/illumos-gate/usr/src/lib/libsmbios/common/ |
H A D | smb_subr.c | 39 smb_open_error(smbios_hdl_t *shp, int *errp, int err) argument 44 if (errp != NULL) 45 *errp = err;
|
H A D | smb_lib.c | 52 smb_fileopen(int fd, int version, int flags, int *errp) argument 60 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOHDR)); 63 return (smb_open_error(shp, errp, ESMB_HEADER)); 68 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOHDR)); 71 return (smb_open_error(shp, errp, ESMB_NOMEM)); 76 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOSTAB)); 79 shp = smbios_bufopen(ep, stbuf, ep->smbe_stlen, version, flags, errp); 90 smb_biosopen(int fd, int version, int flags, int *errp) argument 101 return (smb_open_error(shp, errp, ESMB_MAPDEV)); 112 return (smb_open_error(NULL, errp, ESMB_NOTFOUN 148 smbios_fdopen(int fd, int version, int flags, int *errp) argument 160 smbios_open(const char *file, int version, int flags, int *errp) argument [all...] |
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | libipmi.c | 32 ipmi_open(int *errp, char **msg, uint_t xport_type, nvlist_t *params) argument 41 *errp = EIPMI_NOMEM; 63 *errp = ihp->ih_errno;
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_ctf_open.c | 69 mdb_ctf_open(const char *pathname, int *errp) argument 76 if (errp != NULL) 77 *errp = ENOENT; 83 if (errp != NULL) 84 *errp = ECTF_NOCTFDATA; 89 mp->symhdr, mp->strings, mp->strhdr, errp)) == NULL)
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_date.c | 55 ns_datetosecs(const char *cp, int *errp) { argument 63 *errp = 1; 66 *errp = 0; 69 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900; 70 time.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1; 71 time.tm_mday = datepart(cp + 6, 2, 01, 31, errp); 72 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp); 73 time.tm_min = datepart(cp + 10, 2, 00, 59, errp); 74 time.tm_sec = datepart(cp + 12, 2, 00, 59, errp); 75 if (*errp) /* 113 datepart(const char *buf, int size, int min, int max, int *errp) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | smb_dev.c | 47 smb_open_error(smbios_hdl_t *shp, int *errp, int err) argument 52 if (errp != NULL) 53 *errp = err; 62 smbios_open(const char *file, int version, int flags, int *errp) argument 71 return (smb_open_error(shp, errp, ESMB_INVAL)); 77 return (smb_open_error(shp, errp, ESMB_MAPDEV)); 86 return (smb_open_error(shp, errp, ESMB_NOTFOUND)); 99 return (smb_open_error(shp, errp, ESMB_MAPDEV)); 110 return (smb_open_error(shp, errp, err)); 128 smbios_fdopen(int fd, int version, int flags, int *errp) argument [all...] |
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetrhent.c | 164 rhstr_to_ent(tsol_rhstr_t *rhstrp, int *errp, char **errstrp) argument 179 if (errp == NULL) 180 errp = &err; 187 *errp = LTSNET_EMPTY; 196 *errp = LTSNET_NO_ADDR; 204 *errp = LTSNET_NO_HOSTTYPE; 208 *errp = LTSNET_SYSERR; 214 *errp = LTSNET_ILL_ADDR; 223 *errp = LTSNET_SYSERR; 228 *errp [all...] |
H A D | tsol_sgettpent.c | 236 tpstr_to_ent(tsol_tpstr_t *tpstrp, int *errp, char **errstrp) argument 250 if (errp == NULL) 251 errp = &err; 258 *errp = LTSNET_EMPTY; 266 *errp = LTSNET_NO_NAME; 273 *errp = LTSNET_NO_ATTRS; 277 *errp = LTSNET_SYSERR; 283 *errp = LTSNET_ILL_NAME; 287 *errp = parse_remainder(tpentp, kv); 289 if (*errp [all...] |
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_util.c | 132 * Store the specified error code into errp if it is non-NULL, and then 136 ctf_set_open_errno(int *errp, int error) argument 138 if (errp != NULL) 139 *errp = error;
|
/illumos-gate/usr/src/uts/common/ctf/ |
H A D | ctf_mod.c | 67 ctf_zopen(int *errp) argument 88 ctf_fdopen(int fd, int *errp) argument 90 return (ctf_set_open_errno(errp, ENOTSUP)); 95 ctf_open(const char *filename, int *errp) argument 97 return (ctf_set_open_errno(errp, ENOTSUP));
|
/illumos-gate/usr/src/lib/libsaveargs/tests/dump/ |
H A D | dump.c | 139 int errp, fd; local 150 if ((ctfp = ctf_open(argv[1], &errp)) == NULL) 152 ctf_errmsg(errp));
|