Searched refs:strdup (Results 1 - 25 of 123) sorted by relevance

12345

/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) function
H A Dstropt.c72 else if (!(x = s = strdup(as))) n = -1;
/ast/src/lib/libast/astsa/
H A Dstrdup.c31 strdup(register const char* s) function
/ast/src/lib/libast/path/
H A Dpathbin.c41 if (!*(bin = astconf("PATH", NiL, NiL)) || !(bin = strdup(bin)))
H A Dpathpath.c69 cmd = a ? strdup(a) : (char*)0;
85 return (path == buf) ? strdup(path) : path;
103 cmd = strdup(s);
115 return path == buf ? strdup(s) : s;
126 return (s && path == buf) ? strdup(s) : s;
H A Dpathshell.c107 if (!*(sh = astconf("SH", NiL, NiL)) || *sh != '/' || eaccess(sh, X_OK) || !(sh = strdup(sh)))
H A Dpathprog.c122 if ((n = prog(command, path, size)) > 0 && n < size && *path != '/' && (rel = strdup(path)))
H A Dpathtemp.c137 tmp.pfx = dir ? strdup(dir) : (char*)0;
164 tmp.tmpdir = dir ? strdup(dir) : (char*)0;
176 tmp.tmppath = dir ? strdup(dir) : (char*)0;
/ast/src/lib/libast/stdio/
H A Dvasprintf.c35 if (!(*s = strdup(sfstruse(f))))
/ast/src/lib/libast/vec/
H A Dvecstring.c43 if (!str || !*str || !(buf = strdup(str))) vec = 0;
/ast/src/lib/libast/comp/
H A Dsetenv.c51 if (!(s = sfprints("%s=%s", name, value)) || !(s = strdup(s)))
/ast/src/cmd/3d/
H A Dast.c107 #undef strdup macro
113 extern char* strdup(const char*);
119 extern char* _ast_strdup(const char* s) { return strdup(s); }
/ast/src/cmd/cs/vcs_src/
H A Dmnt_mtab.c46 entry->mpoint = strdup(mpoint);
47 entry->vcscmd = strdup(cmd);
93 istate.cs_svc = strdup(s);
H A Dmnt_touch.c51 istate.cs_svc = strdup(s);
H A Dmnt_umount.c56 istate.cs_svc = strdup(s);
H A Dvcs_dir.c76 dp->link = strdup(link);
88 ndp->link = strdup(link);
101 ndp->link = strdup(link);
H A Dmnt_list.c59 istate.cs_svc = strdup(s);
H A Difs_agent.c49 newitem->name = strdup( name );
203 mi->lpath = strdup( localpath );
204 mi->proto = strdup( proto );
208 mi->rpath = strdup( ptr );
211 mi->rpath = strdup( "" );
222 mi->user = strdup( host );
231 mi->host = strdup( host );
726 physical = strdup(srv.lpath);
/ast/src/lib/libast/tm/
H A Dtminit.c186 tm_info.deformat = (n && (n = strlen(v)) > 0 && (n < 2 || v[n-2] != '%' || v[n-1] != '?')) ? strdup(v) : tm_info.format[TM_DEFAULT];
189 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0;
252 local.standard = strdup(tzname[0]);
253 local.daylight = strdup(tzname[1]);
300 local.standard = strdup(tzname[0]);
302 local.daylight = strdup(tzname[1]);
306 if ((s = getenv("TZNAME")) && *s && (s = strdup(s)))
319 else if ((s = getenv("TZ")) && *s && *s != ':' && (s = strdup(s)))
361 s = strdup(buf);
375 local.standard = strdup(bu
[all...]
/ast/src/lib/libmam/
H A Dmam.c231 mamvar(pp, arg, strdup(val));
273 a->data = strdup(s);
295 if (val) r->bound = strdup(val);
315 mp->version = strdup(arg);
346 pp->pwd = strdup(val);
351 pp->view = strdup(val);
/ast/src/lib/libast/preroot/
H A Dgetpreroot.c62 return(path == buf ? strdup(path) : path);
116 if (path == buf) return(strdup(p));
/ast/src/cmd/dss/
H A Ddss.c233 if (!(action = strdup(sfprints("{write %s}", fmtquote(opt_info.arg, "'", "'", strlen(opt_info.arg), FMT_ALWAYS|FMT_ESCAPED)))))
251 if (!(action = strdup(sfprints("{print %s}", fmtquote(opt_info.arg, "'", "'", strlen(opt_info.arg), FMT_ALWAYS|FMT_ESCAPED)))))
/ast/src/cmd/pax/
H A Dpax-flash.c99 ap->package = strdup(sfprints("%s %s", fp->name, version));
H A Dpax.c606 ap->delta->base = initarchive(strdup(v), O_RDONLY);
648 state.checksum.name = strdup(e);
661 state.mode = strdup(v);
670 state.header.comment = y ? strdup(v) : (char*)0;
769 eomprompt = y ? strdup(v) : (char*)0;
775 state.header.extended = y ? strdup(v) : (char*)0;
781 ap->name = strdup(v);
796 else if (s = strdup(v))
894 state.header.global = y ? strdup(v) : (char*)0;
897 v = y ? strdup(
[all...]
/ast/src/lib/libast/include/
H A Dvmalloc.h273 #ifndef strdup
274 #define strdup(s) ( _VMFL_(Vmregion), (strdup)((char*)(s)) )
291 #ifndef strdup
292 #define strdup(s) ( _VMFL_(Vmregion), _VMNM_(strdu,/,*,*,/,p)\

Completed in 99 milliseconds

12345