Searched refs:errp (Results 1 - 25 of 139) sorted by relevance

123456

/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dsys_info.c39 char *sys_get_hostname(int *errp) { argument
44 *errp = 0;
46 *errp = errno;
52 *errp = errno;
H A Dnfs_nfssec.c63 * - 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 Dlibfsmgt.h184 char *cmd_execute_command_and_retrieve_string(char *cmd, int *errp);
204 char *cmd_retrieve_string(int filedes, int *errp);
325 * int *errp - error pointer - If an error occurs this will be non-zero upon
359 * int *errp - error pointer - If an error occurs this will be non-zero upon
377 * int *errp - error pointer - If an error occurs this will be non-zero upon
408 * int *errp - error pointer - If an error occurs this will be non-zero upon
416 fs_mntdefaults_t *filter, int *errp);
425 * int *errp - error pointer - If an error occurs this will be non-zero upon
431 fs_mntdefaults_t *fs_get_mount_defaults(int *errp);
453 * int *errp
[all...]
H A Dcmd.c172 * - 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 Dfs_mounts.c55 boolean_t filtered_list, int *errp);
57 static char *is_option(char *opt_string, char *opt, int *errp);
85 fs_get_availablesize(char *mntpnt, int *errp) { argument
89 *errp = 0;
92 * Set errp to invalid parameter - EINVAL
94 *errp = EINVAL;
102 *errp = errno;
110 fs_get_avail_for_nonsuperuser_size(char *mntpnt, int *errp) { argument
114 *errp = 0;
117 * Set errp t
135 fs_get_blocksize(char *mntpnt, int *errp) argument
159 fs_get_filtered_mount_list(char *resource, char *mountp, char *fstype, char *mntopts, char *time, boolean_t find_overlays, int *errp) argument
222 fs_get_fragsize(char *mntpnt, int *errp) argument
246 fs_get_maxfilenamelen(char *mntpnt, int *errp) argument
271 fs_get_mounts_by_mntopt(char *mntopt, boolean_t find_overlays, int *errp) argument
328 fs_get_mount_list(boolean_t find_overlays, int *errp) argument
386 fs_is_readonly(char *mntpnt, int *errp) argument
428 fs_parse_optlist_for_option(char *optlist, char *opt, int *errp) argument
477 fs_get_totalsize(char *mntpnt, int *errp) argument
503 fs_get_usedsize(char *mntpnt, int *errp) argument
756 find_overlayed_filesystems(fs_mntlist_t *mnt_list, boolean_t filtered_list, int *errp) argument
845 is_option(char *opt_string, char *opt, int *errp) argument
[all...]
H A Dnfs_netcfg.c46 netcfg_get_networkid_list(int *num_elements, int *errp) argument
57 *errp = errno;
71 *errp = errno;
82 *errp = ENOMEM;
H A Dfs_mount_defaults.c60 int *errp);
62 int *errp);
95 int *errp) {
110 search_entry = create_vfstab_filter(filter, errp);
113 * Out of memory, the error pointer (errp) gets
126 newp = create_mntdefaults_entry(vfstab_entry, errp);
129 * Out of memory, the error pointer (errp)
151 *errp = errno;
159 fs_get_mount_defaults(int *errp) argument
176 newp = create_mntdefaults_entry(vfstab_entry, errp);
94 fs_get_filtered_mount_defaults(fs_mntdefaults_t *filter, int *errp) argument
211 fs_add_mount_default(fs_mntdefaults_t *newp, int *errp) argument
239 fs_edit_mount_defaults( fs_mntdefaults_t *old_vfstab_ent, fs_mntdefaults_t *new_vfstab_ent, int *errp) argument
361 fs_del_mount_default_ent(fs_mntdefaults_t *old_vfstab_ent, int *errp) argument
483 create_mntdefaults_entry(struct vfstab vfstab_entry, int *errp) argument
589 create_vfstab_filter(fs_mntdefaults_t *filter, int *errp) argument
740 create_vfstab_entry_line(struct vfstab *vfstab_ent, int *errp) argument
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpartition.h41 descriptor_t **partition_get_descriptors(int filter[], int *errp);
43 dm_desc_type_t type, int *errp);
44 descriptor_t **partition_get_assocs(descriptor_t *desc, int *errp);
45 descriptor_t *partition_get_descriptor_by_name(char *name, int *errp);
47 nvlist_t *partition_get_attributes(descriptor_t *desc, int *errp);
49 int *errp);
H A Ddisks_private.h151 descriptor_t **alias_get_descriptors(int filter[], int *errp);
153 dm_desc_type_t type, int *errp);
154 descriptor_t *alias_get_descriptor_by_name(char *name, int *errp);
156 nvlist_t *alias_get_attributes(descriptor_t *desc, int *errp);
157 nvlist_t *alias_get_stats(descriptor_t *desc, int stat_type, int *errp);
160 descriptor_t **bus_get_descriptors(int filter[], int *errp);
162 dm_desc_type_t type, int *errp);
163 descriptor_t *bus_get_descriptor_by_name(char *name, int *errp);
165 nvlist_t *bus_get_attributes(descriptor_t *desc, int *errp);
167 int *errp);
[all...]
H A Dbus.c39 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 Dcontroller.c39 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 Dentry.c62 static dm_descriptor_t *ptr_array_to_desc_array(descriptor_t **ptrs, int *errp);
63 static descriptor_t **desc_array_to_ptr_array(dm_descriptor_t *da, int *errp);
65 int *found, int *errp);
111 int *errp)
123 *errp = EBADF;
130 *errp = ENODEV;
136 descs = drive_get_assoc_descriptors(dp, type, errp);
139 descs = bus_get_assoc_descriptors(dp, type, errp);
142 descs = controller_get_assoc_descriptors(dp, type, errp);
145 descs = media_get_assoc_descriptors(dp, type, errp);
110 dm_get_associated_descriptors(dm_descriptor_t desc, dm_desc_type_t type, int *errp) argument
195 dm_get_attributes(dm_descriptor_t desc, int *errp) argument
254 dm_get_descriptor_by_name(dm_desc_type_t desc_type, char *name, int *errp) argument
299 dm_get_descriptors(dm_desc_type_t type, int filter[], int *errp) argument
342 dm_get_name(dm_descriptor_t desc, int *errp) argument
407 dm_get_stats(dm_descriptor_t desc, int stat_type, int *errp) argument
499 dm_get_slices(char *drive, dm_descriptor_t **slices, int *errp) argument
538 dm_get_slice_stats(char *slice, nvlist_t **dev_stats, int *errp) argument
566 dm_isoverlapping(char *slicename, char **overlaps_with, int *errp) argument
738 dm_get_swapentries(swaptbl_t **stp, int *errp) argument
804 dm_inuse_swap(const char *dev_name, int *errp) argument
846 dm_inuse(char *dev_name, char **msg, dm_who_type_t who, int *errp) argument
1112 libdiskmgt_add_str(nvlist_t *attrs, char *name, char *val, int *errp) argument
1120 libdiskmgt_empty_desc_array(int *errp) argument
1178 desc_array_to_ptr_array(dm_descriptor_t *descs, int *errp) argument
1209 ptr_array_to_desc_array(descriptor_t **ptrs, int *errp) argument
1248 build_usage_string(char *dname, char *by, char *data, char **msg, int *found, int *errp) argument
[all...]
H A Dpath.c39 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...]
H A Dalias.c45 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 Dinuse_dump.c56 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 Dmedia.c48 int *errp);
59 int *errp)
62 *errp = ENODEV;
68 return (drive_get_assocs(desc, errp));
70 return (partition_get_assocs(desc, errp));
72 return (slice_get_assocs(desc, errp));
75 *errp = EINVAL;
83 media_get_assocs(descriptor_t *dp, int *errp) argument
94 return (libdiskmgt_empty_desc_array(errp));
96 *errp
58 media_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) argument
120 media_get_attributes(descriptor_t *dp, int *errp) argument
150 media_get_descriptor_by_name(char *name, int *errp) argument
179 media_get_descriptors(int filter[], int *errp) argument
210 media_get_stats(descriptor_t *dp, int stat_type, int *errp) argument
290 apply_filter(descriptor_t **media, int filter[], int *errp) argument
[all...]
H A Dlibdiskmgt.h435 int *errp);
437 dm_desc_type_t type, int *errp);
440 char *name, int *errp);
441 char *dm_get_name(dm_descriptor_t desc, int *errp);
443 nvlist_t *dm_get_attributes(dm_descriptor_t desc, int *errp);
445 int *errp);
447 int *errp);
448 nvlist_t *dm_get_event(int *errp);
450 int *errp);
452 int *errp);
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_date.c49 ns_datetosecs(const char *cp, int *errp) { argument
57 *errp = 1;
60 *errp = 0;
63 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900;
64 time.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1;
65 time.tm_mday = datepart(cp + 6, 2, 01, 31, errp);
66 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp);
67 time.tm_min = datepart(cp + 10, 2, 00, 59, errp);
68 time.tm_sec = datepart(cp + 12, 2, 00, 59, errp);
69 if (*errp) /*
107 datepart(const char *buf, int size, int min, int max, int *errp) argument
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/ccid/common/
H A Dcfga_ccid.c39 cfga_ccid_error(cfga_err_t err, char **errp, const char *fmt, ...) argument
43 if (errp == NULL)
51 (void) vasprintf(errp, fmt, ap);
59 struct cfga_confirm *confp, struct cfga_msg *msgp, char **errp,
71 return (cfga_ccid_error(CFGA_LIB_ERROR, errp,
82 return (cfga_ccid_error(CFGA_LIB_ERROR, errp,
86 return (cfga_ccid_error(CFGA_ERROR, errp,
101 return (cfga_ccid_error(CFGA_ERROR, errp, "failed to "
132 return (cfga_ccid_error(CFGA_ERROR, errp,
147 return (cfga_ccid_error(CFGA_ERROR, errp, "faile
58 cfga_ccid_modify(uccid_cmd_icc_modify_t *modify, const char *ap, struct cfga_confirm *confp, struct cfga_msg *msgp, char **errp, boolean_t force) argument
159 cfga_change_state(cfga_cmd_t cmd, const char *ap, const char *opts, struct cfga_confirm *confp, struct cfga_msg *msgp, char **errp, cfga_flags_t flags) argument
197 cfga_private_func(const char *function, const char *ap, const char *opts, struct cfga_confirm *confp, struct cfga_msg *msgp, char **errp, cfga_flags_t flags) argument
236 cfga_test(const char *ap, const char *opts, struct cfga_msg *msgp, char **errp, cfga_flags_t flags) argument
305 cfga_list_ext(const char *ap, struct cfga_list_data **ap_list, int *nlist, const char *opts, const char *listopts, char **errp, cfga_flags_t flags) argument
[all...]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_convert.c104 int *errp, char *errbuf, size_t errlen)
109 if (errp == NULL)
110 errp = &err;
113 *errp = EINVAL;
118 *errp = EINVAL;
123 *errp = ECTF_FMT;
129 *errp = ECTF_ELF;
133 *errp = ECTF_CONVNOCSRC;
151 *errp = err;
157 *errp
103 ctf_elfconvert(int fd, Elf *elf, const char *label, uint_t nthrs, uint_t flags, int *errp, char *errbuf, size_t errlen) argument
172 ctf_fdconvert(int fd, const char *label, uint_t nthrs, uint_t flags, int *errp, char *errbuf, size_t errlen) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/libstandctf/
H A Dctf_subr.c39 ctf_zopen(int *errp) argument
42 return (ctf_set_open_errno(errp, ECTF_ZMISSING));
61 ctf_fdopen(int fd, int *errp) argument
63 return (ctf_set_open_errno(errp, ENOTSUP));
68 ctf_fdcreate_int(int fd, int *errp, ctf_sect_t *ctfp) argument
70 return (ctf_set_open_errno(errp, ENOTSUP));
75 ctf_open(const char *filename, int *errp) argument
77 return (ctf_set_open_errno(errp, ENOTSUP));
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_ctf_open.c69 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/libtsnet/common/
H A Dtsol_sgetzcent.c106 parse_mlp_list(tsol_mlp_t **list, char *str, int *errp, char **errstrp) argument
128 *errp = LTSNET_SYSERR;
135 *errp = LTSNET_ILL_MLP;
144 *errp = LTSNET_SYSERR;
155 tsol_sgetzcent(const char *instr, int *errp, char **errstrp) argument
170 if (errp == NULL)
171 errp = &err;
179 *errp = LTSNET_SYSERR;
188 *errp = LTSNET_EMPTY;
190 *errp
[all...]
H A Dmisc.c182 rtsa_keyword(const char *options, struct rtsa_s *sp, int *errp, char **errstrp) argument
193 if (errp == NULL)
194 errp = &err;
205 *errp = LTSNET_ILL_ENTRY;
213 *errp = LTSNET_ILL_KEY;
219 *errp = LTSNET_ILL_VALDELIM;
230 *errp = LTSNET_ILL_KEYDELIM;
241 *errp = LTSNET_DUP_KEY;
249 *errp = LTSNET_ILL_LOWERBOUND;
258 *errp
[all...]
/illumos-gate/usr/src/lib/libsmbios/common/
H A Dsmb_subr.c39 smb_open_error(smbios_hdl_t *shp, int *errp, int err) argument
44 if (errp != NULL)
45 *errp = err;

Completed in 86 milliseconds

123456