/src/lib/libc/string/ |
strdup.c | 1 /* $NetBSD: strdup.c,v 1.14 2012/06/25 22:32:46 abs Exp $ */ 35 static char sccsid[] = "@(#)strdup.c 8.1 (Berkeley) 6/4/93"; 37 __RCSID("$NetBSD: strdup.c,v 1.14 2012/06/25 22:32:46 abs Exp $"); 49 __weak_alias(strdup,_strdup) 53 strdup(const char *str)
|
/src/usr.sbin/envstat/ |
config_lex.l | 65 {DEVICEPROP} { yylval.string = strdup(yytext); return DEVICE_PROP; } 66 {SENSOR} { yylval.string = strdup(yytext); return SENSOR; } 67 {SENSORPROP} { yylval.string = strdup(yytext); return SENSOR_PROP; } 68 \"{SP_STRING}\" { yylval.string = strdup(yytext + 1); 70 {STRING} { yylval.string = strdup(yytext); return STRING; }
|
/src/sys/arch/hpc/hpc/platid_gen/ |
scan.l | 53 #[^\n]*\n { yylval.str = strdup(yytext); yyline++; return DIRECTIVE; } 55 [a-zA-Z][0-9a-zA-Z]* { yylval.str = strdup(yytext); return FSYM; } 56 [a-zA-Z][_0-9a-zA-Z]* { yylval.str = strdup(yytext); return MOD; } 57 [0-9a-zA-Z]+ { yylval.str = strdup(yytext); return SYM; } 69 res = strdup(s + 1);
|
/src/usr.bin/chpass/ |
field.c | 69 if (!(pw->pw_name = strdup(p))) { 88 if (!(pw->pw_passwd = strdup(p))) { 164 if (!(pw->pw_class = strdup(p))) { 199 if (!(ep->save = strdup(p))) { 215 if (!(pw->pw_dir = strdup(p))) { 229 if (!(pw->pw_shell = strdup(_PATH_BSHELL))) { 248 if (!(pw->pw_shell = strdup(p))) {
|
pw_yp.c | 161 yppw.newpw.pw_name = strdup(pw->pw_name); 163 err(1, "strdup"); 166 yppw.newpw.pw_passwd = strdup(pw->pw_passwd); 168 err(1, "strdup"); 173 yppw.newpw.pw_gecos = strdup(pw->pw_gecos); 175 err(1, "strdup"); 178 yppw.newpw.pw_dir = strdup(pw->pw_dir); 180 err(1, "strdup"); 183 yppw.newpw.pw_shell = strdup(pw->pw_shell); 185 err(1, "strdup"); [all...] |
/src/usr.bin/error/ |
pi.c | 269 nwordv[0] = strdup(currentfilename); 270 nwordv[1] = strdup(c_linenumber); 272 nwordv[2] = Strdup("pascal errortype"); /* XXX leaked */ 274 nwordv[4] = strdup("%%%\n"); 295 nwordv[0] = strdup(currentfilename); 345 nwordv[0] = strdup(currentfilename); 357 nwordv[0] = strdup(currentfilename); 358 nwordv[1] = strdup(c_header[0]); 359 nwordv[2] = strdup(c_header[1]); 360 nwordv[3] = strdup(c_header[2]) [all...] |
/src/sys/arch/ia64/stand/common/ |
interp_backslash.c | 49 if ((new_str = strdup(str)) == NULL)
|
strdup.c | 1 /* $NetBSD: strdup.c,v 1.3 2009/07/20 04:59:03 kiyohara Exp $ */ 39 static char sccsid[] = "@(#)strdup.c 8.1 (Berkeley) 6/4/93"; 50 strdup(const char *str) function in typeref:typename:char *
|
load_elf64.c | 73 fp->f_name = strdup(filename); 74 fp->f_type = strdup(ELF64_KERNELTYPE);
|
/src/usr.sbin/wsmoused/ |
config_yacc.y | 78 Conf->b_name = strdup("global"); } 99 { $4->b_name = strdup($2); 103 $$->b_name = strdup($2); } 119 p->p_name = strdup($1); 120 p->p_value = strdup($3);
|
/src/usr.sbin/ypserv/revnetgroup/ |
hash.c | 165 new->key = strdup(key); 166 new->data = strdup(data); 197 tmp->groupname = strdup(data); 221 new->key = strdup(key); 222 new->domain = strdup(domain);
|
/src/usr.sbin/inetd/ |
ipsec.c | 63 p0 = p = strdup("in entrust; out entrust"); 65 p0 = p = strdup(policy); 97 p0 = p = strdup(policy);
|
/src/lib/libc/compat/stdlib/ |
compat_putenv.c | 75 if ((copy = strdup(name)) == NULL)
|
/src/tests/kernel/ |
h_ps_strings2.c | 58 if ((argv[i] = strdup(buf)) == NULL) 59 errx(1, "strdup failed");
|
/src/tests/lib/libc/stdlib/ |
h_getopt.c | 60 optstring = strdup(optstring); 73 args[nargs] = strdup(args[nargs]); 75 args[nargs] = strdup(args[nargs]); 91 result = strdup(result);
|
/src/usr.sbin/rpc.pcnfsd/ |
pcnfsd_print.c | 426 curr->pn = strdup(cp); 429 curr->cm = strdup("-"); 443 curr->remhost = strdup(cp); 447 curr->device = strdup(curr->pn); 464 curr->device = strdup(cp); 484 curr->device = strdup(cp); 495 curr->remhost = strdup(cp); 498 curr->device = strdup(cp); 499 curr->remhost = strdup(""); 552 curr->pn = strdup(cp) [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/ |
FuzzerUtilDarwin.cpp | 104 strdup("sh"), 105 strdup("-c"), 106 strdup(CommandCStr),
|
/src/lib/libcompat/4.3/ |
regex.c | 102 re_errstr = strdup(s);
|
/src/lib/libtelnet/ |
misc.c | 76 UserNameRequested = name ? strdup(name) : 0;
|
/src/sbin/mount/ |
vfslist.c | 78 if ((fsl = strdup(fslist)) == NULL) { 79 warn("strdup");
|
/src/usr.bin/menuc/ |
util.c | 102 char *res = strdup(mc_buff);
|
/src/usr.bin/mkdep/ |
findcc.c | 80 return strdup(buffer);
|
/src/usr.bin/systat/ |
ifcmds.c | 73 matchline = strdup(args);
|
/src/usr.bin/xlint/common/ |
mem.c | 85 return not_null(strdup(s));
|
/src/tests/kernel/kqueue/ |
t_proc1.c | 64 if ((argv[0] = strdup("true")) == NULL) 65 err(EXIT_FAILURE, "strdup(\"true\")"); 67 if ((envp[0] = strdup("FOO=BAZ")) == NULL) 68 err(EXIT_FAILURE, "strdup(\"FOO=BAZ\")");
|