Home
last modified time | relevance | path

Searched refs:strdup (Results 1 – 25 of 1315) sorted by relevance

12345678910>>...53

/illumos-gate/usr/src/lib/auditd_plugins/remote/
H A Daudit_remote.c237 *error = strdup(gettext("no hostname specified")); in parsehosts()
258 *error = strdup(gettext("invalid host:port:mech " in parsehosts()
264 *error = strdup(gettext("invalid hostname " in parsehosts()
272 *error = strdup(gettext("empty hostname " in parsehosts()
286 *error = strdup(gettext("host not found, " in parsehosts()
290 *error = strdup(gettext("host not found")); in parsehosts()
306 *error = strdup(gettext( in parsehosts()
316 *error = strdup(gettext("invalid port number")); in parsehosts()
326 *error = strdup(gettext("unknown mechanism")); in parsehosts()
339 *error = strdup(gettext("no memory")); in parsehosts()
[all …]
/illumos-gate/usr/src/cmd/locale/
H A Dlocale.c153 yn.yes_expr = strdup(nl_langinfo(YESEXPR)); in getyesno()
154 yn.no_expr = strdup(nl_langinfo(NOEXPR)); in getyesno()
155 yn.yes_str = strdup(nl_langinfo(YESSTR)); in getyesno()
156 yn.no_str = strdup(nl_langinfo(NOSTR)); in getyesno()
173 _dtconv.date_time_format = strdup(nl_langinfo(D_T_FMT)); in localedtconv()
174 _dtconv.date_format = strdup(nl_langinfo(D_FMT)); in localedtconv()
175 _dtconv.time_format = strdup(nl_langinfo(T_FMT)); in localedtconv()
176 _dtconv.time_format_ampm = strdup(nl_langinfo(T_FMT_AMPM)); in localedtconv()
177 _dtconv.am_string = strdup(nl_langinfo(AM_STR)); in localedtconv()
178 _dtconv.pm_string = strdup(nl_langinfo(PM_STR)); in localedtconv()
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dconvutf8.c76 return (strdup(src)); in ldaptool_convert()
79 return (strdup(src)); in ldaptool_convert()
83 return (strdup(src)); in ldaptool_convert()
93 return (strdup(src)); in ldaptool_convert()
155 return (strdup(src)); in ldaptool_convert()
165 return (strdup(src)); in ldaptool_UTF82local()
176 return (strdup(src)); in ldaptool_local2UTF8()
185 utf8 = strdup(src); in ldaptool_local2UTF8()
237 locale = strdup(locale);
250 return strdup(locale);
[all …]
H A Dldapmodrdn.c71 if (( L_newParent = strdup( argv[argc - 1] )) == NULL ) in main()
77 if (( rdn = strdup( argv[argc - 2] )) == NULL ) in main()
83 if (( entrydn = strdup( argv[argc - 3] )) == NULL ) in main()
92 if (( rdn = strdup( argv[argc - 1] )) == NULL ) in main()
98 if (( entrydn = strdup( argv[argc - 2] )) == NULL ) in main()
151 if (( L_newParent = strdup( buf )) == NULL ) in main()
166 if (( rdn = strdup( buf )) == NULL ) in main()
176 if (( entrydn = strdup( buf )) == NULL) in main()
/illumos-gate/usr/src/lib/libadm/common/
H A Dfulldevnm.c115 return (strdup(path)); in getfullname()
118 return (strdup("")); in getfullname()
217 return (strdup("")); in getblkcomplete()
235 return (strdup("")); in getblkcomplete()
239 return (strdup("")); in getblkcomplete()
291 return (strdup("")); in getrawcomplete()
295 return (strdup("")); in getrawcomplete()
343 return (strdup("")); in getfullblkname()
356 return (strdup("")); in getfullblkname()
364 return (strdup("")); in getfullblkname()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A DSLPUtils.c115 if (!(*ppcScopes = strdup("default"))) { in SLPFindScopes()
156 if (!(*ppcScopes = strdup(useScopes))) { in slp_administrative_scopes()
164 if (return_default && !(*ppcScopes = strdup("default"))) { in slp_administrative_scopes()
192 if (!(ascope = strdup(s))) { /* no memory! */ in saadvert_callback()
363 if (!(url = strdup(u))) { in collate_scopes()
387 if (!(ascope = strdup(s))) { /* no memory! */ in collate_scopes()
572 if (!(pe->key = strdup(pcName))) { in SLPSetProperty()
578 if (!(pe->val = strdup(pcValue))) { in SLPSetProperty()
628 pe->key = strdup(SLP_CONFIG_ISBROADCASTONLY); in setDefaults()
629 pe->val = strdup("false"); in setDefaults()
[all …]
/illumos-gate/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.c109 i->path = strdup (path); in libhal_storage_policy_set_icon_path()
118 i->path = strdup (path); in libhal_storage_policy_set_icon_path()
178 result = strdup (buf); in libhal_volume_policy_compute_size_as_string()
181 result = strdup (buf); in libhal_volume_policy_compute_size_as_string()
232 vendormodel_str = strdup (""); in libhal_drive_policy_compute_display_name()
234 vendormodel_str = strdup (model); in libhal_drive_policy_compute_display_name()
237 vendormodel_str = strdup (vendor); in libhal_drive_policy_compute_display_name()
240 vendormodel_str = strdup (buf); in libhal_drive_policy_compute_display_name()
302 name = strdup (buf); in libhal_drive_policy_compute_display_name()
305 name = strdup (buf); in libhal_drive_policy_compute_display_name()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_fnmount.c239 root = strdup(""); in getmapent_fn()
360 nfsdir = strdup("/"); in process_ref()
363 nfsdir = strdup(colon + 1); in process_ref()
365 nfshost = strdup(addrdata); in process_ref()
382 mapents = new_mapent(root, strdup(""), strdup("nfs"), in process_ref()
390 homedir = strdup(addrdata); in process_ref()
392 mapents = new_mapent(root, strdup(""), strdup("lofs"), in process_ref()
393 strdup(opts), strdup(""), homedir); in process_ref()
418 return (new_mapent(root, strdup(""), strdup("autofs"), strdup(opts), in process_ref()
419 strdup(""), concat(map, '/', key))); in process_ref()
[all …]
H A Dautod_parse.c305 if ((me->map_root = strdup(w1)) == NULL) in mapline_to_mapent()
310 me->map_mntpnt = strdup(""); in mapline_to_mapent()
312 me->map_mntpnt = strdup(w); in mapline_to_mapent()
330 if ((me->map_mntopts = strdup(w)) == NULL) in mapline_to_mapent()
357 if (((me->map_fsw = strdup(w)) == NULL) || in mapline_to_mapent()
358 ((me->map_fswq = strdup(wq)) == NULL)) in mapline_to_mapent()
605 if ((me->map_mntopts = strdup(entryopts)) == NULL) in set_mapent_opts()
622 if (((me->map_fstype = strdup(fstype)) == NULL) || in set_mapent_opts()
623 ((me->map_mounter = strdup(mounter)) == NULL)) { in set_mapent_opts()
700 me->map_mntopts = strdup(pushentryopts); in fstype_opts()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrdup.c29 __STDPP__directive pragma pp:hide strdup
31 #define strdup ______strdup
39 __STDPP__directive pragma pp:nohide strdup
41 #undef strdup
54 strdup(register const char* s) in strdup() function
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_identity.c80 newlist[i] = strdup(src[i]); in copy_list()
166 newopts->identity = strdup(src_opts->identity); in pkinit_dup_identity_opts()
184 newopts->ocsp = strdup(src_opts->ocsp); in pkinit_dup_identity_opts()
190 newopts->cert_filename = strdup(src_opts->cert_filename); in pkinit_dup_identity_opts()
196 newopts->key_filename = strdup(src_opts->key_filename); in pkinit_dup_identity_opts()
203 newopts->p11_module_name = strdup(src_opts->p11_module_name); in pkinit_dup_identity_opts()
211 newopts->token_label = strdup(src_opts->token_label); in pkinit_dup_identity_opts()
217 newopts->cert_id_string = strdup(src_opts->cert_id_string); in pkinit_dup_identity_opts()
223 newopts->cert_label = strdup(src_opts->cert_label); in pkinit_dup_identity_opts()
228 newopts->PIN = strdup(src_opts->PIN); in pkinit_dup_identity_opts()
[all …]
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_shares.c146 strptr = strdup(cmd); in fs_parse_opts_for_sec_modes()
176 secstringarray[*count] = strdup(strptr); in fs_parse_opts_for_sec_modes()
193 secstringarray[*count] = strdup(temp_str); in fs_parse_opts_for_sec_modes()
231 list_copy = strdup(access_list); in fs_create_array_from_accesslist()
256 list_array[*count] = strdup(access_list); in fs_create_array_from_accesslist()
296 newp->path = strdup(sharetab_entry->sh_path); in create_sharelist_entry()
306 newp->resource = strdup(sharetab_entry->sh_res); in create_sharelist_entry()
316 newp->fstype = strdup(sharetab_entry->sh_fstype); in create_sharelist_entry()
326 newp->options = strdup(sharetab_entry->sh_opts); in create_sharelist_entry()
336 newp->description = strdup(sharetab_entry->sh_descr); in create_sharelist_entry()
H A Dfs_mounts.c433 optlist_copy = strdup(optlist); in fs_parse_optlist_for_option()
544 newp->resource = strdup(mnttab_entry.mnt_special); in create_mntlist_entry()
552 newp->mountp = strdup(mnttab_entry.mnt_mountp); in create_mntlist_entry()
560 newp->fstype = strdup(mnttab_entry.mnt_fstype); in create_mntlist_entry()
568 newp->mntopts = strdup(mnttab_entry.mnt_mntopts); in create_mntlist_entry()
576 newp->time = strdup(mnttab_entry.mnt_time); in create_mntlist_entry()
604 newp->resource = strdup(mnttab_entry.mnt_special); in create_extmntlist_entry()
612 newp->mountp = strdup(mnttab_entry.mnt_mountp); in create_extmntlist_entry()
620 newp->fstype = strdup(mnttab_entry.mnt_fstype); in create_extmntlist_entry()
628 newp->mntopts = strdup(mnttab_entry.mnt_mntopts); in create_extmntlist_entry()
[all …]
H A Dfs_mount_defaults.c257 char *orig_line = strdup(vfstab_line); in fs_edit_mount_defaults()
378 orig_line = strdup(vfstab_line); in fs_del_mount_default_ent()
497 newp->resource = strdup(vfstab_entry.vfs_special); in create_mntdefaults_entry()
510 newp->fsckdevice = strdup(vfstab_entry.vfs_fsckdev); in create_mntdefaults_entry()
522 newp->mountp = strdup(vfstab_entry.vfs_mountp); in create_mntdefaults_entry()
534 newp->fstype = strdup(vfstab_entry.vfs_fstype); in create_mntdefaults_entry()
546 newp->fsckpass = strdup(vfstab_entry.vfs_fsckpass); in create_mntdefaults_entry()
558 newp->mountatboot = strdup(vfstab_entry.vfs_automnt); in create_mntdefaults_entry()
570 newp->mntopts = strdup(vfstab_entry.vfs_mntopts); in create_mntdefaults_entry()
604 search_entry->vfs_special = strdup(filter->resource); in create_vfstab_filter()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dsharetab.c114 nsh->sh_path = strdup(sh->sh_path); in sharedup()
120 nsh->sh_res = strdup(sh->sh_res); in sharedup()
125 nsh->sh_fstype = strdup(sh->sh_fstype); in sharedup()
130 nsh->sh_opts = strdup(sh->sh_opts); in sharedup()
135 nsh->sh_descr = strdup(sh->sh_descr); in sharedup()
176 b = bb = strdup(optlist); in getshareopt()
185 val = strdup(pe + 1); in getshareopt()
190 val = strdup(""); in getshareopt()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_trans.c377 if ((transrec->path = strdup(transpath)) == NULL) { in nfslog_open_trans_file()
573 newte->pathname = strdup(path1); in trans_read()
585 newte->netid = strdup(logrec->re_netid); in trans_read()
587 newte->principal_name = strdup(logrec->re_principal_name); in trans_read()
643 newte->pathname = strdup(path1); in trans_write()
654 newte->netid = strdup(logrec->re_netid); in trans_write()
656 newte->principal_name = strdup(logrec->re_principal_name); in trans_write()
725 newte->pathname = strdup(path1); in trans_setattr()
736 newte->netid = strdup(logrec->re_netid); in trans_setattr()
738 newte->principal_name = strdup(logrec->re_principal_name); in trans_setattr()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_confmgr.c126 MKERROR(LOG_ERR, *error, NS_CONFIG_FILE, strdup(errstr), in read_file()
153 strdup(errstr), NS_PARSE_ERR); in read_file()
162 strdup(errstr), NS_PARSE_ERR); in read_file()
171 strdup(errstr), NS_PARSE_ERR); in read_file()
191 strdup(errstr), NS_PARSE_ERR); in read_file()
211 strdup(errstr), NS_PARSE_ERR); in read_file()
222 MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX, strdup(errstr), in read_file()
230 MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX, strdup(errstr), in read_file()
267 MKERROR(LOG_ERR, *errorp, NS_LDAP_CONFIG, strdup(errmsg), in set_attr()
307 MKERROR(LOG_ERR, *errorp, NS_LDAP_CONFIG, strdup(errmsg), NULL); in __s_api_create_config_door_str()
[all …]
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dns_bsd_addr.c100 return (strdup(buf)); in bsd_addr_to_string()
111 tmp = strdup(string); in string_to_bsd_addr()
144 return (strdup(buf)); in list_to_string()
169 return (strdup(buf)); in internal_list_to_string()
187 string = strdup((char *)value); in value_to_string()
267 char *addr = strdup(name); in posix_name()
286 printer = ns_printer_create(strdup(name), NULL, in posix_name()
389 addr->printer = strdup(printer->name); in ns_bsd_addr_get_name()
398 addr->pname = strdup(name); in ns_bsd_addr_get_name()
400 addr->pname = strdup(printer->name); in ns_bsd_addr_get_name()
[all …]
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_main.c106 label = strdup(optarg); in main()
118 tmp_ptr = strdup(optarg); in main()
140 tmp_ptr = strdup(optarg); in main()
171 tmp_ptr = strdup(optarg); in main()
185 slice_file = strdup(optarg); in main()
194 tmp_ptr = strdup(optarg); in main()
207 tmp_ptr = strdup(optarg); in main()
220 tmp_ptr = strdup(optarg); in main()
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c105 if ((arg = strdup(argv[0])) == NULL) in main()
116 dname = strdup("."); in main()
117 fname = strdup(arg); in main()
120 dname = strdup(arg); in main()
121 fname = strdup(slash + 1); in main()
147 fpath = strdup(argv[0]); in main()
149 fpath = strdup(argv[0]); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtminit.c186 …n && (n = strlen(v)) > 0 && (n < 2 || v[n-2] != '%' || v[n-1] != '?')) ? strdup(v) : tm_info.forma… in tmopt()
189 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0; in tmopt()
252 local.standard = strdup(tzname[0]); in tmlocal()
253 local.daylight = strdup(tzname[1]); in tmlocal()
300 local.standard = strdup(tzname[0]); in tmlocal()
302 local.daylight = strdup(tzname[1]); in tmlocal()
306 if ((s = getenv("TZNAME")) && *s && (s = strdup(s))) in tmlocal()
319 else if ((s = getenv("TZ")) && *s && *s != ':' && (s = strdup(s))) in tmlocal()
361 s = strdup(buf); in tmlocal()
375 local.standard = strdup(buf); in tmlocal()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Ddepchk.c199 eir->ier_packageName = strdup(a_pkginst); in depchkRecordError()
202 (eir->ier_zones)[eir->ier_numZones-1] = strdup(a_zoneName); in depchkRecordError()
204 (eir->ier_values)[eir->ier_numZones-1] = strdup(a_value); in depchkRecordError()
249 (erc->ier_zones)[erc->ier_numZones-1] = strdup(a_zoneName); in depchkRecordError()
252 (erc->ier_values)[erc->ier_numZones-1] = strdup(a_value); in depchkRecordError()
280 erc->ier_packageName = strdup(a_pkginst); in depchkRecordError()
283 (erc->ier_zones)[erc->ier_numZones-1] = strdup(a_zoneName); in depchkRecordError()
285 (erc->ier_values)[erc->ier_numZones-1] = strdup(a_value); in depchkRecordError()
336 zn = strdup(a_eir->ier_zones[a_errIndex]); in collectError()
/illumos-gate/usr/src/lib/fm/libfmnotify/common/
H A Dlibfmnotify.c204 *val = strdup(strval); in nd_get_astring_prop()
274 return (strdup((const char *)svcname)); in nd_get_event_fmri()
356 tmpstr = strdup(list); in nd_split_list()
367 (*arr)[0] = strdup(list); in nd_split_list()
369 tmpstr = strdup(list); in nd_split_list()
371 (*arr)[0] = strdup(item); in nd_split_list()
373 (*arr)[i++] = strdup(item); in nd_split_list()
397 tmparr[uniq] = strdup(arr1[uniq]); in nd_merge_strarray()
401 tmparr[uniq++] = strdup(arr2[j]); in nd_merge_strarray()
555 evi->ei_severity = strdup(ND_UNKNOWN); in nd_get_event_info()
[all …]
/illumos-gate/usr/src/lib/passwdutil/
H A Dutils.c90 if (((*d)->pw_name = strdup(s->pw_name)) == NULL) in dup_pw()
94 if (((*d)->pw_passwd = strdup(s->pw_passwd)) == NULL) in dup_pw()
101 if (((*d)->pw_gecos = strdup(s->pw_gecos)) == NULL) in dup_pw()
105 if (((*d)->pw_dir = strdup(s->pw_dir)) == NULL) in dup_pw()
109 if (((*d)->pw_shell = strdup(s->pw_shell)) == NULL) in dup_pw()
134 if (((*d)->sp_namp = strdup(s->sp_namp)) == NULL) in dup_spw()
137 if (((*d)->sp_pwdp = strdup(s->sp_pwdp)) == NULL) in dup_spw()
/illumos-gate/usr/src/cmd/hal/utils/
H A Dprinter.c68 *manufacturer = strdup(strip_ws(u)); in ieee1284_devid_to_printer_info()
72 *model = strdup(strip_ws(u)); in ieee1284_devid_to_printer_info()
76 *description = strdup(strip_ws(u)); in ieee1284_devid_to_printer_info()
80 *class = strdup(strip_ws(u)); in ieee1284_devid_to_printer_info()
84 *serial_no = strdup(strip_ws(u)); in ieee1284_devid_to_printer_info()
98 cmds[i++] = strdup(strip_ws(v)); in ieee1284_devid_to_printer_info()

12345678910>>...53