/illumos-gate/usr/src/lib/auditd_plugins/remote/ |
H A D | audit_remote.c | 306 *error = strdup(gettext( in parsehosts() 339 *error = strdup(gettext("no memory")); in parsehosts() 379 rc_msg = strdup("ok"); in auditd_message() 382 rc_msg = strdup("retry after a delay"); in auditd_message() 385 rc_msg = strdup("can't allocate memory"); in auditd_message() 388 rc_msg = strdup("bad input"); in auditd_message() 394 rc_msg = strdup("other error"); in auditd_message() 397 rc_msg = strdup("other non-fatal error"); in auditd_message() 636 *error = strdup(gettext("no memory")); in auditd_plugin() 727 *error = strdup( in auditd_plugin_open() [all …]
|
/illumos-gate/usr/src/cmd/locale/ |
H A D | locale.c | 153 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() 174 _dtconv.date_format = strdup(nl_langinfo(D_FMT)); in localedtconv() 175 _dtconv.time_format = strdup(nl_langinfo(T_FMT)); in localedtconv() 177 _dtconv.am_string = strdup(nl_langinfo(AM_STR)); in localedtconv() 178 _dtconv.pm_string = strdup(nl_langinfo(PM_STR)); in localedtconv() 217 _dtconv.era = strdup(nl_langinfo(ERA)); in localedtconv() 238 _locdef.charmap = strdup(nl_langinfo(CODESET)); in localeldconv() [all …]
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | convutf8.c | 76 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() 253 return strdup("C"); 683 return strdup(src); [all …]
|
H A D | ldapmodrdn.c | 71 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 D | fulldevnm.c | 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() 369 return (strdup(dp)); in getfullblkname() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPUtils.c | 115 if (!(*ppcScopes = strdup("default"))) { in SLPFindScopes() 363 if (!(url = strdup(u))) { in collate_scopes() 572 if (!(pe->key = strdup(pcName))) { in SLPSetProperty() 578 if (!(pe->val = strdup(pcValue))) { in SLPSetProperty() 629 pe->val = strdup("false"); in setDefaults() 634 pe->val = strdup("255"); in setDefaults() 639 pe->val = strdup("15000"); in setDefaults() 644 pe->val = strdup("2000,2000,2000"); in setDefaults() 658 pe->val = strdup("-1"); in setDefaults() 663 pe->val = strdup("false"); in setDefaults() [all …]
|
/illumos-gate/usr/src/lib/hal/libhal-storage/common/ |
H A D | libhal-storage.c | 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() 302 name = strdup (buf); in libhal_drive_policy_compute_display_name() 305 name = strdup (buf); in libhal_drive_policy_compute_display_name() 323 name = strdup (buf); in libhal_drive_policy_compute_display_name() 326 name = strdup (buf); in libhal_drive_policy_compute_display_name() 495 name = strdup (buf); in libhal_volume_policy_compute_display_name() 498 name = strdup (buf); in libhal_volume_policy_compute_display_name() 534 return strdup (name); in libhal_drive_policy_compute_icon_name() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | ns_fnmount.c | 239 root = strdup(""); in getmapent_fn() 360 nfsdir = strdup("/"); in process_ref() 382 mapents = new_mapent(root, strdup(""), strdup("nfs"), 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() 553 : strdup("direct"); in frontier_aux() 554 me = new_mapent(noroot, strdup(mntpnt), strdup("autofs"), opts, in frontier_aux() 555 strdup(""), strdup(map)); in frontier_aux() 713 return (strdup(opts)); in safe_opts() [all …]
|
H A D | autod_parse.c | 310 me->map_mntpnt = strdup(""); in mapline_to_mapent() 312 me->map_mntpnt = strdup(w); in mapline_to_mapent() 1067 me->map_root = strdup(w1); in mark_and_fake_level1_noroot() 1483 mfs->mfs_dir = strdup(path); in parse_nfs() 1825 ms->map_root = strdup(name); in do_mapent_hosts() 1828 ms->map_mntpnt = strdup(""); in do_mapent_hosts() 1836 mfs->mfs_host = strdup(host); in do_mapent_hosts() 1839 mfs->mfs_dir = strdup("/"); in do_mapent_hosts() 1976 me->map_root = strdup(name); in do_mapent_hosts() 1986 me->map_mntpnt = strdup(name); in do_mapent_hosts() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | strdup.c | 29 __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/libfsmgt/common/ |
H A D | fs_shares.c | 146 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 D | fs_mounts.c | 433 optlist_copy = strdup(optlist); in fs_parse_optlist_for_option() 552 newp->mountp = strdup(mnttab_entry.mnt_mountp); in create_mntlist_entry() 560 newp->fstype = strdup(mnttab_entry.mnt_fstype); in create_mntlist_entry() 576 newp->time = strdup(mnttab_entry.mnt_time); in create_mntlist_entry() 636 newp->time = strdup(mnttab_entry.mnt_time); in create_extmntlist_entry() 670 search_entry->mnt_special = strdup(resource); in create_mnttab_filter() 681 search_entry->mnt_mountp = strdup(mountp); in create_mnttab_filter() 692 search_entry->mnt_fstype = strdup(fstype); in create_mnttab_filter() 703 search_entry->mnt_mntopts = strdup(mntopts); in create_mnttab_filter() 714 search_entry->mnt_time = strdup(time); in create_mnttab_filter() [all …]
|
H A D | fs_mount_defaults.c | 257 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() 570 newp->mntopts = strdup(vfstab_entry.vfs_mntopts); in create_mntdefaults_entry() 629 search_entry->vfs_mountp = strdup(filter->mountp); in create_vfstab_filter() 641 search_entry->vfs_fstype = strdup(filter->fstype); in create_vfstab_filter() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_identity.c | 80 newlist[i] = strdup(src[i]); in copy_list() 184 newopts->ocsp = strdup(src_opts->ocsp); in pkinit_dup_identity_opts() 228 newopts->PIN = strdup(src_opts->PIN); in pkinit_dup_identity_opts() 290 s = strdup(residual); in parse_pkcs11_options() 301 idopts->p11_module_name = strdup(cp); in parse_pkcs11_options() 310 idopts->p11_module_name = strdup(vp); in parse_pkcs11_options() 327 idopts->token_label = strdup(vp); in parse_pkcs11_options() 333 idopts->cert_id_string = strdup(vp); in parse_pkcs11_options() 339 idopts->cert_label = strdup(vp); in parse_pkcs11_options() 363 certname = strdup(residual); in parse_fs_options() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | sharetab.c | 114 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 D | nfslog_trans.c | 573 newte->pathname = strdup(path1); in trans_read() 643 newte->pathname = strdup(path1); in trans_write() 1041 pte->pathname = strdup(path2); in trans_rename() 1045 pte->pathname = strdup(path2); in trans_rename() 1049 pte->pathname = strdup(path2); in trans_rename() 1053 pte->pathname = strdup(path2); in trans_rename() 1664 pte->pathname = strdup(path2); in trans_rename3() 1668 pte->pathname = strdup(path2); in trans_rename3() 1672 pte->pathname = strdup(path2); in trans_rename3() 1676 pte->pathname = strdup(path2); in trans_rename3() [all …]
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_confmgr.c | 153 strdup(errstr), NS_PARSE_ERR); in read_file() 162 strdup(errstr), NS_PARSE_ERR); in read_file() 319 strdup(errmsg), NULL); in __s_api_create_config_door_str() 381 strdup(errstr), NULL); in __ns_ldap_LoadConfiguration() 497 strdup(errstr), NULL); in __ns_ldap_LoadDoorInfo() 520 strdup(errstr), NULL); in __ns_ldap_LoadDoorInfo() 553 strdup(errstr), NULL); in __ns_ldap_LoadDoorInfo() 600 strdup(errstr), NULL); in __ns_ldap_DumpLdif() 712 strdup(errstr), NULL); in __ns_ldap_DumpConfigFiles() 784 strdup(errstr), NULL); in __ns_ldap_DumpConfigFiles() [all …]
|
/illumos-gate/usr/src/lib/print/libprint/common/ |
H A D | ns_bsd_addr.c | 100 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() 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() 460 addr->printer = strdup(*aliases); in ns_bsd_addr_get_list() [all …]
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_main.c | 106 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 D | mkbusy.c | 105 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 D | tminit.c | 186 …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 D | depchk.c | 199 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/passwdutil/ |
H A D | utils.c | 90 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/lib/fm/libfmnotify/common/ |
H A D | libfmnotify.c | 204 *val = strdup(strval); in nd_get_astring_prop() 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() 559 evi->ei_url = strdup(ND_UNKNOWN); in nd_get_event_info() 564 evi->ei_uuid = strdup(uuid); in nd_get_event_info() [all …]
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | printer.c | 68 *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()
|