Home
last modified time | relevance | path

Searched refs:errstr (Results 1 – 25 of 149) sorted by relevance

123456

/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_confmgr.c59 read_line(FILE *fp, char *buffer, int buflen, char *errstr) in read_line() argument
64 *errstr = '\0'; in read_line()
87 (void) snprintf(errstr, MAXERROR, in read_line()
91 (void) snprintf(errstr, MAXERROR, in read_line()
106 char errstr[MAXERROR]; in read_file() local
123 (void) snprintf(errstr, sizeof (errstr), in read_file()
126 MKERROR(LOG_ERR, *error, NS_CONFIG_FILE, strdup(errstr), in read_file()
135 errstr)) < 0) in read_file()
149 (void) snprintf(errstr, sizeof (errstr), in read_file()
153 strdup(errstr), NS_PARSE_ERR); in read_file()
[all …]
H A Dns_connect.c110 char errstr[MAXERROR]; in getFirstFromConfig() local
123 (void) sprintf(errstr, in getFirstFromConfig()
126 strdup(errstr), NS_LDAP_MEMORY); in getFirstFromConfig()
195 char errstr[MAXERROR]; in __s_api_requestServer() local
249 (void) snprintf(errstr, in __s_api_requestServer()
250 sizeof (errstr), in __s_api_requestServer()
259 strdup(errstr), in __s_api_requestServer()
311 (void) snprintf(errstr, in __s_api_requestServer()
312 sizeof (errstr), in __s_api_requestServer()
321 strdup(errstr), in __s_api_requestServer()
[all …]
H A Dns_config.c96 verify_value(ns_config_t *cfg, char *name, char *value, char *errstr);
1105 __s_api_crosscheck(ns_config_t *ptr, char *errstr, int check_dn) in __s_api_crosscheck() argument
1121 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1131 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1143 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1154 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1163 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1189 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1198 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
1243 (void) snprintf(errstr, MAXERROR, in __s_api_crosscheck()
[all …]
/illumos-gate/usr/src/cmd/svc/common/
H A Dmanifest_hash.c234 uchar_t *hash, apply_action_t apply_late, char **errstr) in mhash_store_entry() argument
258 if (errstr != NULL) in mhash_store_entry()
259 *errstr = gettext("Could not create scf objects"); in mhash_store_entry()
265 if (errstr != NULL) in mhash_store_entry()
266 *errstr = gettext("Could not get local scope"); in mhash_store_entry()
278 if (errstr != NULL) in mhash_store_entry()
279 *errstr = gettext("Could not get manifest hash " in mhash_store_entry()
295 if (errstr != NULL) in mhash_store_entry()
296 *errstr = gettext("Could not store file hash: " in mhash_store_entry()
302 if (errstr != NULL) in mhash_store_entry()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Dckpath.c81 static char *errstr; variable
165 errstr = E_RELATIVE; in ckpath_val()
169 errstr = E_ABSOLUTE; in ckpath_val()
174 errstr = E_EXIST; in ckpath_val()
180 errstr = E_SYNTAX; in ckpath_val()
187 errstr = E_CREAT; in ckpath_val()
192 errstr = E_CREAT; in ckpath_val()
200 errstr = E_NEXIST; in ckpath_val()
206 errstr = E_NONZERO; in ckpath_val()
211 errstr = E_CHR; in ckpath_val()
[all …]
H A Dckstr.c60 static char *errstr; variable
93 errstr = ERRMSG1; in ckstr_val()
104 errstr = ERRMSG2; in ckstr_val()
106 errstr = ERRMSG3; in ckstr_val()
121 (void) snprintf(temp, sizeof (temp), errstr, length); in ckstr_err()
181 (void) snprintf(errbuf, sizeof (errbuf), errstr, length); in ckstr()
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c128 char *errstr = 0; in do_like() local
171 errstr = gettext(PROB_chown); in do_like()
174 errstr = gettext(PROB_chmod); in do_like()
176 errstr = gettext(PROB_chacl); in do_like()
178 errstr = gettext(PROB_chgrp); in do_like()
182 errstr = gettext(PROB_botch); in do_like()
185 if (errstr) { in do_like()
233 errstr = gettext(PROB_chmod); in do_like()
285 errstr = gettext(PROB_chacl); in do_like()
327 errstr = gettext(do_chown ? in do_like()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/err/
H A Derr.c94 const char *errstr; in main() local
106 num = strtonum(optarg, 0, 127, &errstr); in main()
107 if (errstr != NULL) in main()
108 errx(EXIT_FAILURE, "-x: %s", errstr); in main()
112 num = strtonum(optarg, 0, VARIANT_VX, &errstr); in main()
113 if (errstr != NULL) in main()
114 errx(EXIT_FAILURE, "-v: %s", errstr); in main()
139 num = strtonum(optarg, 0, 127, &errstr); in main()
140 if (errstr != NULL) in main()
141 errx(EXIT_FAILURE, "-x: %s", errstr); in main()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Ddump_rcm.c160 char **infostr, char **errstr, nvlist_t *props, rcm_info_t **dependent) in dump_getinfo() argument
188 uint_t flags, char **errstr, rcm_info_t **dependent) in dump_suspend() argument
193 assert(rsrcname != NULL && errstr != NULL); in dump_suspend()
204 rv = dump_relocate(dc, errstr); in dump_suspend()
213 char **errstr, rcm_info_t **dependent) in dump_resume() argument
218 assert(rsrcname != NULL && errstr != NULL); in dump_resume()
226 rv = dump_configure(dc, errstr); in dump_resume()
239 char **errstr, rcm_info_t **dependent) in dump_offline() argument
245 assert(rsrcname != NULL && errstr != NULL); in dump_offline()
257 rv = dump_relocate(dc, errstr); in dump_offline()
[all …]
H A Dcluster_rcm.c154 char **infostr, char **errstr, nvlist_t *props, rcm_info_t **dependent) in cluster_getinfo() argument
168 timespec_t *interval, uint_t flags, char **errstr, in cluster_suspend() argument
171 if ((*errstr = strdup(OS_SUSPEND_ERR)) == NULL) in cluster_suspend()
180 char **errstr, rcm_info_t **dependent) in cluster_resume() argument
192 char **errstr, rcm_info_t **dependent) in cluster_offline() argument
194 if ((*errstr = strdup(OS_OFFLINE_ERR)) == NULL) in cluster_offline()
203 char **errstr, rcm_info_t **dependent) in cluster_online() argument
211 char **errstr, rcm_info_t **dependent) in cluster_remove() argument
213 if ((*errstr = strdup(OS_REMOVE_ERR)) == NULL) in cluster_remove()
H A Dswap_rcm.c174 char **infostr, char **errstr, nvlist_t *props, rcm_info_t **dependent) in swap_getinfo() argument
199 uint_t flags, char **errstr, rcm_info_t **dependent) in swap_suspend() argument
204 assert(rsrcname != NULL && errstr != NULL); in swap_suspend()
215 rv = swap_delete(sf, errstr); in swap_suspend()
224 char **errstr, rcm_info_t **dependent) in swap_resume() argument
229 assert(rsrcname != NULL && errstr != NULL); in swap_resume()
237 rv = swap_add(sf, errstr); in swap_resume()
250 char **errstr, rcm_info_t **dependent) in swap_offline() argument
255 assert(rsrcname != NULL && errstr != NULL); in swap_offline()
267 rv = swap_delete(sf, errstr); in swap_offline()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/tests/rpcsec_gss_conn/
H A Drpcsec_gss_conn.c94 gss_buffer_desc errstr = {0}; in main() local
113 GSS_C_NULL_OID, &msg_ctx, &errstr); in main()
114 if (!GSS_ERROR(disp_major) && errstr.length != 0) { in main()
115 fprintf(stderr, "major: %s\n", errstr.value); in main()
116 (void) gss_release_buffer(&disp_minor, &errstr); in main()
130 GSS_C_NULL_OID, &msg_ctx, &errstr); in main()
131 if (!GSS_ERROR(disp_major) && errstr.length != 0) { in main()
132 fprintf(stderr, "minor: %s\n", errstr.value); in main()
133 (void) gss_release_buffer(&disp_minor, &errstr); in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c141 const char *errstr, *proxyhost = "", *proxyport = NULL; in main() local
182 iflag = strtonum(optarg, 0, UINT_MAX, &errstr); in main()
183 if (errstr) in main()
184 errx(1, "interval %s: %s", errstr, optarg); in main()
190 ttl = strtonumx(optarg, 1, 255, &errstr, 0); in main()
191 if (errstr != NULL) { in main()
193 "between 1 and 255", errstr, optarg); in main()
197 minttl = strtonumx(optarg, 0, 255, &errstr, 0); in main()
198 if (errstr != NULL) { in main()
200 "are between 0 and 255", errstr, optarg); in main()
[all …]
/illumos-gate/usr/src/cmd/sf880drd/
H A Dsf880drd.c184 char *errstr = NULL; in pushbutton_event() local
191 NULL, NULL, &errstr, 0); in pushbutton_event()
193 report_cfgadm_error(rv, errstr); in pushbutton_event()
217 rv = config_change_state(cmd, 1, &ap_id, NULL, NULL, NULL, &errstr, 0); in pushbutton_event()
219 report_cfgadm_error(rv, errstr); in pushbutton_event()
224 if (errstr) in pushbutton_event()
225 free(errstr); in pushbutton_event()
366 report_cfgadm_error(int cfgerrnum, char *errstr) in report_cfgadm_error() argument
375 if (errstr != NULL && *errstr != '\0') { in report_cfgadm_error()
376 (void) fprintf(stderr, "%s: %s\n", ep, errstr); in report_cfgadm_error()
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_gettpent.c55 char *errstr = NULL; in tsol_gettpbyname() local
78 return (tpstr_to_ent(tpstrp, &err, &errstr)); in tsol_gettpbyname()
100 char *errstr = NULL; in tsol_gettpent() local
119 return (tpstr_to_ent(tpstrp, &err, &errstr)); in tsol_gettpent()
126 char *errstr = NULL; in tsol_fgettpent() local
138 tpentp = tpstr_to_ent(tpstrp, &err, &errstr); in tsol_fgettpent()
146 gettext("Error parsing tnrhtp file"), errstr, in tsol_fgettpent()
147 (strlen(errstr) > 32)? "...": "", in tsol_fgettpent()
155 tpentp = tpstr_to_ent(tpstrp, &err, &errstr); in tsol_fgettpent()
H A Dtsol_getrhent.c59 char *errstr = NULL; in tsol_getrhbyaddr() local
84 return (rhstr_to_ent(rhstrp, &err, &errstr)); in tsol_getrhbyaddr()
106 char *errstr = NULL; in tsol_getrhent() local
125 return (rhstr_to_ent(rhstrp, &err, &errstr)); in tsol_getrhent()
132 char *errstr = NULL; in tsol_fgetrhent() local
144 rhentp = rhstr_to_ent(rhstrp, &err, &errstr); in tsol_fgetrhent()
152 gettext("Error parsing tnrhdb file"), errstr, in tsol_fgetrhent()
153 (strlen(errstr) > 32)? "...": "", in tsol_fgetrhent()
161 rhentp = rhstr_to_ent(rhstrp, &err, &errstr); in tsol_fgetrhent()
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dstrtonum.c32 const char *errstr; in runtestx() local
37 val = strtonum(nstr, minval, maxval, &errstr); in runtestx()
40 val = strtonumx(nstr, minval, maxval, &errstr, base); in runtestx()
46 if (errstr != NULL) { in runtestx()
49 key, errstr, minval, maxval); in runtestx()
63 if (errstr == NULL) { in runtestx()
71 key, errstr, minval, maxval); in runtestx()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A D6to4relay.c69 char errstr[DLADM_STRSIZE]; in printkstatus() local
76 dladm_status2str(status, errstr)); in printkstatus()
178 char errstr[DLADM_STRSIZE]; in main() local
189 "dladm handle: %s\n"), dladm_status2str(status, errstr)); in main()
253 dladm_status2str(status, errstr)); in main()
264 "%s\n"), dladm_status2str(status, errstr)); in main()
293 dladm_status2str(status, errstr)); in main()
311 "%s\n"), dladm_status2str(status, errstr)); in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dmain.c320 const char *errstr; in setpeer() local
368 port = strtonum(argv[2], 1, 65535, &errstr); in setpeer()
369 if (errstr != NULL) { in setpeer()
371 argv[2], errstr); in setpeer()
661 const char *errstr; in setrexmt() local
677 t = strtonum(argv[1], 0, INT_MAX, &errstr); in setrexmt()
678 if (errstr != NULL) in setrexmt()
679 (void) fprintf(stderr, "%s: bad value: %s\n", argv[1], errstr); in setrexmt()
688 const char *errstr; in settimeout() local
703 t = strtonum(argv[1], 0, INT_MAX, &errstr); in settimeout()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/
H A Dfssnap.c678 char *errstr; in die_perror() local
683 errstr = strerror(en); in die_perror()
684 if (errstr == NULL) { in die_perror()
685 errstr = gettext("Unknown error"); in die_perror()
689 progname, string, en, errstr); in die_perror()
706 char *errstr; in warn_errno() local
708 errstr = strerror(en); in warn_errno()
709 if (errstr == NULL) { in warn_errno()
710 errstr = gettext("Unknown error"); in warn_errno()
716 fprintf(stderr, ": %s\n", errstr); in warn_errno()
[all …]
/illumos-gate/usr/src/cmd/connstat/
H A Dconnstat_main.c165 const char *errstr = NULL; in main() local
190 count = strtonum(optarg, 1, INT_MAX, &errstr); in main()
191 if (errstr != NULL) { in main()
194 optarg, errstr); in main()
206 interval = strtonum(optarg, 1, INT_MAX, &errstr); in main()
207 if (errstr != NULL) { in main()
210 optarg, errstr); in main()
345 const char *errstr = NULL; in process_filter() local
407 *portp = strtonum(val, 1, UINT16_MAX, &errstr); in process_filter()
408 if (errstr != NULL) { in process_filter()
[all …]
/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c117 print_error(int linenum, int err, const char *errstr) in print_error() argument
125 (void) fprintf(stderr, "%.32s\n", errstr); in print_error()
238 char *errstr; in process_rh() local
254 rhentp = rhstr_to_ent(&rhstr, &err, &errstr); in process_rh()
256 print_error(0, err, errstr); in process_rh()
405 char *errstr; in process_tnzone() local
424 if ((zc = tsol_sgetzcent(line, &err, &errstr)) == NULL) { in process_tnzone()
434 print_error(linenum, err, errstr); in process_tnzone()
522 char *errstr; in process_tp() local
528 tpentp = tpstr_to_ent(&tpstr, &err, &errstr); in process_tp()
[all …]
/illumos-gate/usr/src/cmd/oplhpd/
H A Dscf_notify.c111 config_error(cfga_err_t err, const char *func_name, const char *errstr, in config_error() argument
121 if (errstr != NULL && *errstr != '\0') { in config_error()
123 func_name, ep, errstr, ap_id); in config_error()
140 char *errstr = NULL; /* error code */ in scf_get_slotinfo() local
146 NULL, &errstr, 0); in scf_get_slotinfo()
149 config_error(rv, "config_list_ext", errstr, ap_pid); in scf_get_slotinfo()
183 if (errstr) { in scf_get_slotinfo()
184 free(errstr); in scf_get_slotinfo()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsetoption.c52 char *matched, *errstr; in ldap_set_option() local
296 LDAP_GET_LDERRNO(ld, &matched, &errstr); in ldap_set_option()
298 errstr = nsldapi_strdup(errstr); in ldap_set_option()
299 LDAP_SET_LDERRNO(ld, *((int *)optdata), matched, errstr); in ldap_set_option()
311 rc = LDAP_GET_LDERRNO(ld, NULL, &errstr); in ldap_set_option()
312 errstr = nsldapi_strdup(errstr); in ldap_set_option()
314 nsldapi_strdup((char *)optdata), errstr); in ldap_set_option()
/illumos-gate/usr/src/cmd/pools/common/
H A Dutils.c47 const char *errstr; in get_errstr_err() local
50 errstr = strerror(syserr); in get_errstr_err()
52 errstr = pool_strerror(errnum); in get_errstr_err()
53 return (errstr); in get_errstr_err()

123456