| /freebsd-12-stable/lib/libypclnt/ |
| D | ypclnt_passwd.c | 155 yppwd.oldpass = strdup(""); in yppasswd_local() 156 yppwd.domain = strdup(ypclnt->domain); in yppasswd_local() 157 if ((yppwd.newpw.pw_name = strdup(pwd->pw_name)) == NULL || in yppasswd_local() 158 (yppwd.newpw.pw_passwd = strdup(pwd->pw_passwd)) == NULL || in yppasswd_local() 159 (yppwd.newpw.pw_class = strdup(pwd->pw_class)) == NULL || in yppasswd_local() 160 (yppwd.newpw.pw_gecos = strdup(pwd->pw_gecos)) == NULL || in yppasswd_local() 161 (yppwd.newpw.pw_dir = strdup(pwd->pw_dir)) == NULL || in yppasswd_local() 162 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) { in yppasswd_local() 250 if ((yppwd.newpw.pw_name = strdup(pwd->pw_name)) == NULL || in yppasswd_remote() 251 (yppwd.newpw.pw_passwd = strdup(pwd->pw_passwd)) == NULL || in yppasswd_remote() [all …]
|
| D | ypclnt_new.c | 51 if (domain != NULL && (ypclnt->domain = strdup(domain)) == NULL) in ypclnt_new() 53 if (map != NULL && (ypclnt->map = strdup(map)) == NULL) in ypclnt_new() 55 if (server != NULL && (ypclnt->server = strdup(server)) == NULL) in ypclnt_new()
|
| /freebsd-12-stable/crypto/heimdal/lib/hdb/ |
| D | dbinfo.c | 67 di->label = strdup(label); in get_dbinfo() 68 di->dbname = strdup(p); in get_dbinfo() 72 di->realm = strdup(p); in get_dbinfo() 75 di->mkey_file = strdup(p); in get_dbinfo() 78 di->acl_file = strdup(p); in get_dbinfo() 81 di->log_file = strdup(p); in get_dbinfo() 143 di->label = strdup("default"); in hdb_get_dbinfo() 148 di->dbname = strdup(default_dbname); in hdb_get_dbinfo() 150 di->mkey_file = strdup(default_mkey); in hdb_get_dbinfo() 164 di->acl_file = strdup(default_acl); in hdb_get_dbinfo()
|
| /freebsd-12-stable/contrib/gcclibs/libiberty/ |
| D | lrealpath.c | 88 return strdup (rp); in lrealpath() 99 return strdup (filename); in lrealpath() 124 ret = strdup (rp ? rp : filename); in lrealpath() 143 return strdup (filename); in lrealpath() 150 return strdup (buf); in lrealpath() 156 return strdup (filename); in lrealpath()
|
| /freebsd-12-stable/contrib/binutils/libiberty/ |
| D | lrealpath.c | 88 return strdup (rp); in lrealpath() 99 return strdup (filename); in lrealpath() 124 ret = strdup (rp ? rp : filename); in lrealpath() 143 return strdup (filename); in lrealpath() 150 return strdup (buf); in lrealpath() 156 return strdup (filename); in lrealpath()
|
| /freebsd-12-stable/crypto/heimdal/lib/kadm5/ |
| D | context_s.c | 101 ctx->config.dbname = strdup(p); in find_db_spec() 105 ctx->config.acl_file = strdup(p); in find_db_spec() 109 ctx->config.stash_file = strdup(p); in find_db_spec() 113 ctx->log_context.log_file = strdup(p); in find_db_spec() 122 ctx->config.dbname = strdup(hdb_default_db(context)); in find_db_spec() 153 (*ctx)->config.realm = strdup(params->realm); in _kadm5_s_init_context() 157 (*ctx)->config.dbname = strdup(params->dbname); in _kadm5_s_init_context() 159 (*ctx)->config.acl_file = strdup(params->acl_file); in _kadm5_s_init_context() 161 (*ctx)->config.stash_file = strdup(params->stash_file); in _kadm5_s_init_context()
|
| /freebsd-12-stable/sbin/mount_msdosfs/ |
| D | mount_msdosfs.c | 123 cs_local = strdup(quirk); in main() 127 cs_dos = strdup(optarg); in main() 132 char *val = strdup(""); in main() 144 cs_local = strdup("ISO8859-2"); in main() 145 cs_dos = strdup("CP852"); in main() 147 cs_local = strdup("ISO8859-7"); in main() 148 cs_dos = strdup("CP737"); in main() 150 cs_local = strdup("KOI8-R"); in main() 151 cs_dos = strdup("CP866"); in main() 153 cs_local = strdup("KOI8-U"); in main() [all …]
|
| /freebsd-12-stable/gnu/usr.bin/gdb/kgdb/ |
| D | main.c | 109 kernel = strdup(path); in kernel_from_dumpnr() 116 kernel = strdup(path); in kernel_from_dumpnr() 149 kernel = strdup(path); in kernel_from_dumpnr() 281 remote = strdup(path); in verify_remote() 360 vmcore = strdup(optarg); in main() 388 remote = strdup(optarg); in main() 413 kernel = strdup(argv[optind++]); in main() 426 vmcore = strdup(path); in main() 431 vmcore = strdup(argv[optind++]); in main() 435 vmcore = strdup(_PATH_MEM); in main() [all …]
|
| /freebsd-12-stable/bin/ps/ |
| D | print.c | 133 str = strdup(k->ki_p->ki_comm); in command() 190 str = strdup(k->ki_p->ki_comm); in ucomm() 204 str = strdup(" "); in tdnam() 215 return (strdup(k->ki_p->ki_login)); in logname() 317 return (strdup(user_from_uid(k->ki_p->ki_uid, 0))); in uname() 324 return (strdup(group_from_gid(k->ki_p->ki_groups[0], 0))); in egroupname() 331 return (strdup(group_from_gid(k->ki_p->ki_rgid, 0))); in rgroupname() 338 return (strdup(user_from_uid(k->ki_p->ki_ruid, 0))); in runame() 349 str = strdup("-"); in tdev() 364 str = strdup("- "); in tname() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ |
| D | TargetMachineC.cpp | 74 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple() 163 return strdup(StringRep.c_str()); in LLVMGetTargetMachineTriple() 168 return strdup(StringRep.c_str()); in LLVMGetTargetMachineCPU() 173 return strdup(StringRep.c_str()); in LLVMGetTargetMachineFeatureString() 209 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit() 224 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile() 246 return strdup(sys::getDefaultTargetTriple().c_str()); in LLVMGetDefaultTargetTriple() 250 return strdup(Triple::normalize(StringRef(triple)).c_str()); in LLVMNormalizeTargetTriple() 254 return strdup(sys::getHostCPUName().data()); in LLVMGetHostCPUName() 265 return strdup(Features.getString().c_str()); in LLVMGetHostCPUFeatures()
|
| /freebsd-12-stable/usr.bin/chpass/ |
| D | field.c | 78 if (!(pw->pw_name = strdup(p))) { in p_login() 96 if (!(pw->pw_passwd = strdup(p))) { in p_passwd() 163 if (!(pw->pw_class = strdup(p))) { in p_class() 195 if (!(ep->save = strdup(p))) { in p_gecos() 210 if (!(pw->pw_dir = strdup(p))) { in p_hdir() 224 pw->pw_shell = strdup(_PATH_BSHELL); in p_shell() 237 pw->pw_shell = strdup(p); in p_shell()
|
| /freebsd-12-stable/usr.bin/calendar/ |
| D | locale.c | 92 if ((ndays[i].name = strdup(buf)) == NULL) in setnnames() 104 if ((fndays[i].name = strdup(buf)) == NULL) in setnnames() 120 if ((nmonths[i].name = strdup(buf)) == NULL) in setnnames() 132 if ((fnmonths[i].name = strdup(buf)) == NULL) in setnnames() 161 nsequences[i].name = strdup(nsequences[i].name); in setnsequences() 164 nsequences[i].name = strdup(nsequences[i].name); in setnsequences()
|
| /freebsd-12-stable/usr.sbin/lpr/common_source/ |
| D | ctlinfo.c | 129 char *strdup(const char *_src); 310 cpriv->pub.cji_curqueue = strdup(ptrname); in ctl_readcf() 339 cpriv->pub.cji_class = strdup(lbuff); in ctl_readcf() 344 cpriv->pub.cji_accthost = strdup(lbuff); in ctl_readcf() 347 cpriv->pub.cji_jobname = strdup(lbuff); in ctl_readcf() 350 cpriv->pub.cji_headruser = strdup(lbuff); in ctl_readcf() 362 cpriv->pub.cji_mailto = strdup(lbuff); in ctl_readcf() 370 cpriv->pub.cji_acctuser = strdup(lbuff); in ctl_readcf() 383 cpriv->pub.cji_accthost = strdup(".na."); in ctl_readcf() 385 cpriv->pub.cji_acctuser = strdup(".na."); in ctl_readcf() [all …]
|
| /freebsd-12-stable/contrib/ofed/opensm/opensm/ |
| D | osm_qos_parser_l.l | 53 #define HANDLE_IF_IN_DESCRIPTION if (in_description) { yylval = strdup(yytext); return TK_TEXT; } 271 {ROUTER} { SAVE_POS; if (in_node_type) return TK_NODE_TYPE_ROUTER; yylval = strdup… 272 {CA} { SAVE_POS; if (in_node_type) return TK_NODE_TYPE_CA; yylval = strdup… 273 {SWITCH} { SAVE_POS; if (in_node_type) return TK_NODE_TYPE_SWITCH; yylval = strdup… 274 {SELF} { SAVE_POS; if (in_node_type) return TK_NODE_TYPE_SELF; yylval = strdup… 275 {ALL} { SAVE_POS; if (in_node_type) return TK_NODE_TYPE_ALL; yylval = strdup… 300 yylval = strdup(yytext); 308 yylval = strdup(yytext); 319 yylval = strdup(yytext); 329 yylval = strdup(yytext); [all …]
|
| /freebsd-12-stable/libexec/revnetgroup/ |
| D | hash.c | 157 new->key = strdup(key); in store() 158 new->data = strdup(data); in store() 188 tmp->groupname = strdup(data); in mstore() 203 new->key = strdup(key); in mstore() 204 new->domain = domain ? strdup(domain) : "*"; in mstore()
|
| /freebsd-12-stable/crypto/openssh/regress/unittests/authopt/ |
| D | tests.c | 74 ocp = cp = strdup(s); in commasplit() 79 cp2 = strdup(cp2); in commasplit() 235 expected->var = strdup(val); \ in test_authkeys_parse() 240 expected->var = strdup(val); \ in test_authkeys_parse() 345 expected->force_command = strdup("foo"); in test_cert_parse() 354 expected->required_from_host_cert = strdup("127.0.0.1/32,::1/128"); in test_cert_parse() 486 expected->required_from_host_cert = strdup("127.0.0.1/32,::1/128"); in test_merge() 488 expected->required_from_host_keys = strdup("127.0.0.1"); in test_merge() 500 expected->required_from_host_keys = strdup("127.0.0.1"); in test_merge() 507 expected->required_from_host_cert = strdup("127.0.0.1/32,::1/128"); in test_merge() [all …]
|
| /freebsd-12-stable/crypto/heimdal/lib/krb5/ |
| D | expand_path.c | 71 *ret = strdup(tpath); in _expand_temp_folder() 120 *ret = strdup(path); in _expand_bin_dir() 217 *ret = strdup(strSid); in _expand_userid() 262 *ret = strdup(path); in _expand_csidl() 276 *ret = strdup(postfix); in _expand_path() 292 *ret = strdup(p); in _expand_temp_folder() 294 *ret = strdup("/tmp"); in _expand_temp_folder() 321 *ret = strdup(""); in _expand_null() 411 *ppath_out = strdup(""); in _krb5_expand_path_tokens() 452 append = strdup(path_left); in _krb5_expand_path_tokens()
|
| D | digest.c | 94 digest->init.channel->cb_type = strdup(type); in krb5_digest_set_server_cb() 98 digest->init.channel->cb_binding = strdup(binding); in krb5_digest_set_server_cb() 122 digest->init.type = strdup(type); in krb5_digest_set_type() 144 *digest->init.hostname = strdup(hostname); in krb5_digest_set_hostname() 170 digest->request.serverNonce = strdup(nonce); in krb5_digest_set_server_nonce() 194 digest->request.opaque = strdup(opaque); in krb5_digest_set_opaque() 225 *digest->request.identifier = strdup(id); in krb5_digest_set_identifier() 480 *digest->request.clientNonce = strdup(nonce); in krb5_digest_set_client_nonce() 500 digest->request.digest = strdup(dgst); in krb5_digest_set_digest() 517 digest->request.username = strdup(username); in krb5_digest_set_username() [all …]
|
| /freebsd-12-stable/lib/libc/tests/nss/ |
| D | getpw_test.c | 89 dest->pw_name = strdup(src->pw_name); in IMPLEMENT_TEST_FILE_SNAPSHOT() 91 dest->pw_passwd = strdup(src->pw_passwd); in IMPLEMENT_TEST_FILE_SNAPSHOT() 93 dest->pw_class = strdup(src->pw_class); in IMPLEMENT_TEST_FILE_SNAPSHOT() 95 dest->pw_gecos = strdup(src->pw_gecos); in IMPLEMENT_TEST_FILE_SNAPSHOT() 97 dest->pw_dir = strdup(src->pw_dir); in IMPLEMENT_TEST_FILE_SNAPSHOT() 99 dest->pw_shell = strdup(dest->pw_shell); in IMPLEMENT_TEST_FILE_SNAPSHOT() 177 pwd->pw_name = strdup(s); in passwd_read_snapshot_func() 181 pwd->pw_passwd = strdup(s); in passwd_read_snapshot_func() 200 pwd->pw_class = strdup(s); in passwd_read_snapshot_func() 204 pwd->pw_gecos = strdup(s); in passwd_read_snapshot_func() [all …]
|
| /freebsd-12-stable/contrib/sendmail/contrib/ |
| D | rmail.oldsys.patch | 28 + #define strdup(s) strcpy(xalloc(strlen(s) + 1), s) 59 if ((args[i++] = strdup(buf)) == NULL) 64 if ((args[i++] = strdup(buf)) == NULL) 70 if ((args[i++] = strdup(buf)) == NULL) 88 if ((args[i++] = strdup(buf)) == NULL) 95 if ((args[i++] = strdup(buf)) == NULL) 104 if ((args[i++] = strdup(buf)) == NULL)
|
| /freebsd-12-stable/crypto/heimdal/lib/sl/ |
| D | Makefile.am | 6 ES = strtok_r.c snprintf.c strdup.c strupr.c getprogname.c 32 CLEANFILES = snprintf.c strtok_r.c strdup.c strupr.c getprogname.c slc-lex.c 42 strdup.c: 43 $(LN_S) $(srcdir)/../roken/strdup.c .
|
| /freebsd-12-stable/crypto/openssh/regress/misc/fuzz-harness/ |
| D | authkeys_fuzz.cc | 41 if ((o = tmp = strdup(pubkey)) == NULL || in LLVMFuzzerTestOneInput() 45 if ((o = tmp = strdup(certtext)) == NULL || in LLVMFuzzerTestOneInput() 62 if ((tmp = strdup(cp)) == NULL) in LLVMFuzzerTestOneInput() 70 if ((tmp = strdup(cp)) == NULL) in LLVMFuzzerTestOneInput()
|
| /freebsd-12-stable/usr.bin/ldd/ |
| D | ldd.c | 99 argv[i++] = strdup(_PATH_LDD32); in execldd32() 101 argv[i++] = strdup("-a"); in execldd32() 103 argv[i++] = strdup("-v"); in execldd32() 105 argv[i++] = strdup("-f"); in execldd32() 106 argv[i++] = strdup(fmt1); in execldd32() 109 argv[i++] = strdup("-f"); in execldd32() 110 argv[i++] = strdup(fmt2); in execldd32() 112 argv[i++] = strdup(file); in execldd32()
|
| /freebsd-12-stable/usr.sbin/kbdmap/ |
| D | kbdmap.c | 138 km->desc = strdup(desc); in add_keymap() 145 km_new->desc = strdup(desc); in add_keymap() 146 km_new->keym = strdup(keym); in add_keymap() 245 fnt = strdup(buf); in get_font() 277 tmp = strdup(fnt); in vidcontrol() 334 tmp = strdup(km->keym); in do_vidfont() 447 buffer_copy = strdup(buffer); in find_token() 645 char *tmp = strdup(lng); in menu_read() 713 title = strdup(km->desc); in menu_read() 717 menu = strdup(km->desc); in menu_read() [all …]
|
| /freebsd-12-stable/contrib/tcpdump/ |
| D | addrtoname.c | 273 p->name = strdup(hp->h_name); in getname() 286 p->name = strdup(intoa(addr)); in getname() 335 p->name = strdup(hp->h_name); in getname6() 349 p->name = strdup(cp); in getname6() 529 tp->e_name = strdup(buf2); in etheraddr_string() 552 tp->e_name = strdup(buf); in etheraddr_string() 581 tp->bs_name = strdup(buf); in le64addr_string() 645 tp->name = strdup(buf); in etherproto_string() 674 tp->p_name = strdup(buf); in protoid_string() 727 tp->name = strdup(buf); in tcpport_string() [all …]
|