Home
last modified time | relevance | path

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

12345678910>>...52

/freebsd/lib/libypclnt/
H A Dypclnt_passwd.c153 yppwd.oldpass = strdup(""); in yppasswd_local()
154 yppwd.domain = strdup(ypclnt->domain); in yppasswd_local()
155 if ((yppwd.newpw.pw_name = strdup(pwd->pw_name)) == NULL || in yppasswd_local()
156 (yppwd.newpw.pw_passwd = strdup(pwd->pw_passwd)) == NULL || in yppasswd_local()
157 (yppwd.newpw.pw_class = strdup(pwd->pw_class)) == NULL || in yppasswd_local()
158 (yppwd.newpw.pw_gecos = strdup(pwd->pw_gecos)) == NULL || in yppasswd_local()
159 (yppwd.newpw.pw_dir = strdup(pwd->pw_dir)) == NULL || in yppasswd_local()
160 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) { in yppasswd_local()
248 if ((yppwd.newpw.pw_name = strdup(pwd->pw_name)) == NULL || in yppasswd_remote()
249 (yppwd.newpw.pw_passwd = strdup(pwd->pw_passwd)) == NULL || in yppasswd_remote()
[all …]
H A Dypclnt_new.c49 if (domain != NULL && (ypclnt->domain = strdup(domain)) == NULL) in ypclnt_new()
51 if (map != NULL && (ypclnt->map = strdup(map)) == NULL) in ypclnt_new()
53 if (server != NULL && (ypclnt->server = strdup(server)) == NULL) in ypclnt_new()
/freebsd/crypto/heimdal/lib/hdb/
H A Ddbinfo.c67 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/crypto/heimdal/lib/kadm5/
H A Dcontext_s.c101 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/sbin/mount_msdosfs/
H A Dmount_msdosfs.c118 cs_local = strdup(quirk); in main()
122 cs_dos = strdup(optarg); in main()
127 char *val = strdup(""); in main()
139 cs_local = strdup("ISO8859-2"); in main()
140 cs_dos = strdup("CP852"); in main()
142 cs_local = strdup("ISO8859-7"); in main()
143 cs_dos = strdup("CP737"); in main()
145 cs_local = strdup("KOI8-R"); in main()
146 cs_dos = strdup("CP866"); in main()
148 cs_local = strdup("KOI8-U"); in main()
[all …]
/freebsd/usr.bin/chpass/
H A Dfield.c69 if (!(pw->pw_name = strdup(p))) { in p_login()
87 if (!(pw->pw_passwd = strdup(p))) { in p_passwd()
154 if (!(pw->pw_class = strdup(p))) { in p_class()
186 if (!(ep->save = strdup(p))) { in p_gecos()
201 if (!(pw->pw_dir = strdup(p))) { in p_hdir()
215 pw->pw_shell = strdup(_PATH_BSHELL); in p_shell()
228 pw->pw_shell = strdup(p); in p_shell()
H A Dedit.c149 if ((bp = gecos = strdup(pw->pw_gecos)) == NULL) { in display()
156 p = strdup(p ? p : ""); in display()
162 p = strdup(p ? p : ""); in display()
168 p = strdup(p ? p : ""); in display()
174 p = strdup(p ? p : ""); in display()
179 bp = strdup(bp ? bp : ""); in display()
/freebsd/bin/ps/
H A Dprint.c123 str = strdup(k->ki_p->ki_comm); in command()
180 str = strdup(k->ki_p->ki_comm); in ucomm()
194 str = strdup(" "); in tdnam()
205 return (strdup(k->ki_p->ki_login)); in logname()
305 return (strdup(user_from_uid(k->ki_p->ki_uid, 0))); in username()
312 return (strdup(group_from_gid(k->ki_p->ki_groups[0], 0))); in egroupname()
319 return (strdup(group_from_gid(k->ki_p->ki_rgid, 0))); in rgroupname()
326 return (strdup(user_from_uid(k->ki_p->ki_ruid, 0))); in runame()
337 str = strdup("-"); in tdev()
352 str = strdup("- "); in tname()
[all …]
/freebsd/contrib/kyua/m4/
H A Dgetopt.m445 strdup("conftest"),
46 strdup("-+"),
47 strdup("-a"),
48 strdup("bar"),
138 argv@<:@0@:>@ = strdup("progname");
139 argv@<:@1@:>@ = strdup("-a");
140 argv@<:@2@:>@ = strdup("foo");
141 argv@<:@3@:>@ = strdup("bar");
166 argv@<:@0@:>@ = strdup("progname");
167 argv@<:@1@:>@ = strdup("-b");
[all …]
/freebsd/usr.bin/calendar/
H A Dlocale.c90 if ((ndays[i].name = strdup(buf)) == NULL) in setnnames()
102 if ((fndays[i].name = strdup(buf)) == NULL) in setnnames()
118 if ((nmonths[i].name = strdup(buf)) == NULL) in setnnames()
130 if ((fnmonths[i].name = strdup(buf)) == NULL) in setnnames()
159 nsequences[i].name = strdup(nsequences[i].name); in setnsequences()
162 nsequences[i].name = strdup(nsequences[i].name); in setnsequences()
/freebsd/libexec/revnetgroup/
H A Dhash.c152 new->key = strdup(key); in store()
153 new->data = strdup(data); in store()
183 tmp->groupname = strdup(data); in mstore()
198 new->key = strdup(key); in mstore()
199 new->domain = domain ? strdup(domain) : "*"; in mstore()
/freebsd/usr.sbin/lpr/common_source/
H A Dctlinfo.c127 char *strdup(const char *_src);
308 cpriv->pub.cji_curqueue = strdup(ptrname); in ctl_readcf()
337 cpriv->pub.cji_class = strdup(lbuff); in ctl_readcf()
342 cpriv->pub.cji_accthost = strdup(lbuff); in ctl_readcf()
345 cpriv->pub.cji_jobname = strdup(lbuff); in ctl_readcf()
348 cpriv->pub.cji_headruser = strdup(lbuff); in ctl_readcf()
360 cpriv->pub.cji_mailto = strdup(lbuff); in ctl_readcf()
368 cpriv->pub.cji_acctuser = strdup(lbuff); in ctl_readcf()
381 cpriv->pub.cji_accthost = strdup(".na."); in ctl_readcf()
383 cpriv->pub.cji_acctuser = strdup(".na."); in ctl_readcf()
[all …]
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_qos_parser_l.l53 #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/contrib/libfido2/src/
H A Dhid_freebsd.c86 (di->path = strdup(path)) == NULL || in copy_info_hidraw()
87 (di->manufacturer = strdup(UHID_VENDOR)) == NULL || in copy_info_hidraw()
88 (di->product = strdup(rawname)) == NULL) in copy_info_hidraw()
93 if ((di->path = strdup(path)) == NULL || in copy_info_hidraw()
94 (di->manufacturer = strdup(udi.udi_vendor)) == NULL || in copy_info_hidraw()
95 (di->product = strdup(udi.udi_product)) == NULL) in copy_info_hidraw()
137 if ((di->path = strdup(path)) == NULL || in copy_info_uhid()
138 (di->manufacturer = strdup(udi.udi_vendor)) == NULL || in copy_info_uhid()
139 (di->product = strdup(udi.udi_product)) == NULL) in copy_info_uhid()
/freebsd/crypto/openssh/regress/unittests/authopt/
H A Dtests.c74 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/crypto/heimdal/lib/krb5/
H A Dexpand_path.c71 *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()
H A Ddigest.c94 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/contrib/llvm-project/llvm/lib/Target/
H A DTargetMachineC.cpp90 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple()
237 return strdup(StringRep.c_str()); in LLVMGetTargetMachineTriple()
242 return strdup(StringRep.c_str()); in LLVMGetTargetMachineCPU()
247 return strdup(StringRep.c_str()); in LLVMGetTargetMachineFeatureString()
314 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit()
331 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile()
353 return strdup(sys::getDefaultTargetTriple().c_str()); in LLVMGetDefaultTargetTriple()
357 return strdup(Triple::normalize(StringRef(triple)).c_str()); in LLVMNormalizeTargetTriple()
361 return strdup(sys::getHostCPUName().data()); in LLVMGetHostCPUName()
369 return strdup(Features.getString().c_str()); in LLVMGetHostCPUFeatures()
/freebsd/lib/libc/tests/nss/
H A Dgetpw_test.c86 dest->pw_name = strdup(src->pw_name); in IMPLEMENT_TEST_FILE_SNAPSHOT()
88 dest->pw_passwd = strdup(src->pw_passwd); in IMPLEMENT_TEST_FILE_SNAPSHOT()
90 dest->pw_class = strdup(src->pw_class); in IMPLEMENT_TEST_FILE_SNAPSHOT()
92 dest->pw_gecos = strdup(src->pw_gecos); in IMPLEMENT_TEST_FILE_SNAPSHOT()
94 dest->pw_dir = strdup(src->pw_dir); in IMPLEMENT_TEST_FILE_SNAPSHOT()
96 dest->pw_shell = strdup(dest->pw_shell); in IMPLEMENT_TEST_FILE_SNAPSHOT()
174 pwd->pw_name = strdup(s); in passwd_read_snapshot_func()
178 pwd->pw_passwd = strdup(s); in passwd_read_snapshot_func()
197 pwd->pw_class = strdup(s); in passwd_read_snapshot_func()
201 pwd->pw_gecos = strdup(s); in passwd_read_snapshot_func()
[all …]
/freebsd/contrib/sendmail/contrib/
H A Drmail.oldsys.patch28 + #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/crypto/openssh/regress/misc/fuzz-harness/
H A Dauthkeys_fuzz.cc41 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/crypto/heimdal/lib/sl/
H A DMakefile.am6 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/usr.sbin/kbdmap/
H A Dkbdmap.c136 km->desc = strdup(desc); in add_keymap()
143 km_new->desc = strdup(desc); in add_keymap()
144 km_new->keym = strdup(keym); in add_keymap()
243 fnt = strdup(buf); in get_font()
275 tmp = strdup(fnt); in vidcontrol()
332 tmp = strdup(km->keym); in do_vidfont()
428 buffer_copy = strdup(buffer); in find_token()
626 char *tmp = strdup(lng); in menu_read()
694 title = strdup(km->desc); in menu_read()
698 menu = strdup(km->desc); in menu_read()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/stdlib/
H A Dh_getopt.c67 optstring = strdup(optstring); in main()
80 args[nargs] = strdup(args[nargs]); in main()
82 args[nargs] = strdup(args[nargs]); in main()
98 result = strdup(result); in main()
/freebsd/sbin/devd/
H A Dparse.y139 { $$ = new_match(strdup("device-name"), $2); }
141 { $$ = new_media(strdup("media-type"), $2); }
143 { $$ = new_match(strdup("class"), $2); }
145 { $$ = new_match(strdup("subdevice"), $2); }

12345678910>>...52