Home
last modified time | relevance | path

Searched refs:xmprintf (Results 1 – 25 of 43) sorted by relevance

12

/external/toybox/toys/pending/
Dgit.c255 …case 1: p = xmprintf("commit %d", count); break; //count is used as o can contain \0 in the string in set_object()
256 case 2: p = xmprintf("tree %d", count); break; in set_object()
257 case 3: p = xmprintf("blob %d", count); break; in set_object()
258 case 4: p = xmprintf("tag %d", count); break; in set_object()
303 mkdir(xmprintf("%s%s", name, "/.git"), 0755); in gitinit()
304 mkdir(xmprintf("%s%s", name, "/.git/objects"), 0755); in gitinit()
305 mkdir(xmprintf("%s%s", name, "/.git/objects/pack"), 0755); in gitinit()
306 mkdir(xmprintf("%s%s", name, "/.git/branches"), 0755); in gitinit()
307 …mkdir(xmprintf("%s%s", name, "/.git/hooks"), 0755); //hook files skipped as implementations does n… in gitinit()
308 mkdir(xmprintf("%s%s", name, "/.git/info"), 0755); in gitinit()
[all …]
Duseradd.c67 pwd.pw_dir = TT.dir ? TT.dir : xmprintf("/home/%s", *toys.optargs);
105 char *s = xmprintf("-g%ld", (long)pwd.pw_gid);
119 entry = xmprintf("%s:%s:%ld:%ld:%s:%s:%s", pwd.pw_name, pwd.pw_passwd,
126 entry = xmprintf("%s:!!:%u::::::", pwd.pw_name,
128 else entry = xmprintf("%s:!!:%u:0:99999:7:::", pwd.pw_name,
144 xmprintf("%lu:%lu", TT.uid, TT.gid), p, 0});
Dgroupadd.c52 entry = xmprintf("%s:%s:%ld:", *toys.optargs, "x", TT.gid);
55 entry = xmprintf("%s:%s::", *toys.optargs, "!");
73 if (!grp->gr_mem) entry = xmprintf("%s", *toys.optargs); in groupadd_main()
Dman.c152 char *s = xmprintf("%s/man%s/%s.%s.bz2", TT.m, *TT.sct, name, *TT.sct), **suf; in tryfile()
181 d = xmprintf("%s/man%s", TT.m, *TT.sct); in man_main()
185 f = xmprintf("%s/%s", d, TT.k = entry->d_name); in man_main()
Dsh.c418 s = xreadlink(ss = xmprintf("/proc/self/fd/%s", DE->d_name)); in debug_show_fds()
664 if (cc && !noa) setvar(xmprintf("%.*s=%lld", (int)(val-var), var, ee)); in recalculate()
848 ss = xmprintf("%.*s%s", vlen, s, s+vlen+1); in setvar_found()
858 ss = xmprintf("%.*s%s", (vlen = varend(var->str)-var->str)+1, var->str, ss); in setvar_found()
904 ss = xmprintf("%.*s=%lld", vlen, s, ll); in setvar_found()
909 ss = xmprintf("%s%s", var->str, ss); in setvar_found()
993 return setvar(xmprintf("%s=%s", name, val)); in setvarval()
1214 environ[1] = xmprintf("@%d,%d", getpid(), getppid()); in subshell_callback()
1215 environ[2] = xmprintf("$=%d", TT.pid); in subshell_callback()
1438 } else if (cc == '?') s = xmprintf("%d", toys.exitval); in getvar_special()
[all …]
Dgetty.c62 if (*(TT.tty_name) != '/') TT.tty_name = xmprintf("/dev/%s", TT.tty_name); in open_tty()
220 if (*++toys.optargs) TT.tty_name = xmprintf("%s", *toys.optargs); in getty_main()
222 TT.tty_name = xmprintf("%s", *toys.optargs); in getty_main()
Dlsof.c201 fi->name = xmprintf(af == 4 ? in scan_ip()
207 fi->name = xmprintf(af == 4 ? "%s %s:%d->%s:%d" : "%s [%s]:%d->[%s]:%d", in scan_ip()
320 fi->name = xmprintf("%s (readlink: %s)", toybuf, strerror(errno)); in visit_symlink()
366 fi->name = xmprintf("%s (opendir: %s)", toybuf, strerror(errno)); in visit_fds()
Dexpr.c75 else return xmprintf("%lld", v->i); in get_str()
116 ret->s = xmprintf("%.*s", (int)(m[1].rm_eo-m[1].rm_so), in re()
Duserdel.c33 filenamesfx = xmprintf("%s+", filename); in update_groupfiles()
/external/toybox/toys/net/
Dhttpd.c154 header_time(200, "Ok", ss = xmprintf("Content-Type: %s\r\n" in handle()
160 header_time(302, "Found", path = xmprintf("Location: %s/\r\n", word[1])); in handle()
169 path = xmprintf("%s%s", path, ss); in handle()
/external/toybox/toys/posix/
Dln.c57 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try));
76 new = xmprintf("%s_XXXXXX", new);
Dnohup.c30 xcreate(temp ? temp = xmprintf("%s/nohup.out", temp) : "nohup.out", in nohup_main()
Dcp.c227 char *s2 = xmprintf("%*c%s", 3*dotdots, ' ', s); in cp_node()
347 catch = xmprintf("%s%s", TT.destname, s+strlen(try->name)); in cp_node()
418 TT.destname = xmprintf("%s/%s", destname, s); in cp_main()
Dtar.c417 buf = xmprintf("%u RHT.%s=%.*s", start+len+1, sec, sz = len, ""); in add_to_tar()
827 TT.hdr.name = xmprintf("%.*s%s%.*s", i, tar.prefix, in unpack_tar()
914 xsetenv(xmprintf("TAR_MODE=%o", TT.hdr.mode), 0); in unpack_tar()
915 xsetenv(xmprintf("TAR_SIZE=%lld", TT.hdr.ssize), 0); in unpack_tar()
919 xsetenv(xmprintf("TAR_MTIME=%llo", (long long)TT.hdr.mtime), 0); in unpack_tar()
920 xsetenv(xmprintf("TAR_UID=%o", TT.hdr.uid), 0); in unpack_tar()
921 xsetenv(xmprintf("TAR_GID=%o", TT.hdr.gid), 0); in unpack_tar()
Dsplit.c104 TT.outfile = xmprintf("%s%*c", (toys.optc == 2) ? toys.optargs[1] : "x", in split_main()
/external/toybox/lib/
Denv.c55 if (val) new = xmprintf("%s=%s", name, val); in xsetenv()
122 stuff[i] = (s = getenv(stuff[i])) ? xmprintf("%s=%s", stuff[i], s) : 0; in reset_env()
Dcommas.c38 temp = xmprintf("%s%s%s", atold, comma, new); in comma_collate()
/external/toybox/scripts/
Dconfig2help.c42 char *xmprintf(char *format, ...) in xmprintf() function
443 try = xmprintf("[-%.*s%.*s] ", ff, from, tt, to); in main()
454 dlist_add(&anchor, xmprintf("%*cusage: %.*s %s%s%s%s", in main()
/external/toybox/toys/other/
Dmountpoint.c50 arg = xmprintf("%s/..", arg); in mountpoint_main()
Dlogin.c135 execl(pwd->pw_shell, xmprintf("-%s", pwd->pw_shell), (char *)0); in login_main()
Dmodinfo.c121 char *path = xmprintf("%s/lib/modules/%s", TT.b, TT.k); in modinfo_main()
Dsysctl.c105 path = xmprintf("/proc/sys/%s", key); in process_key()
/external/toybox/toys/lsb/
Dmktemp.c55 template = dir ? xmprintf("%s/%s", dir, template) : xstrdup(template); in mktemp_main()
Dpasswd.c76 encrypted = xmprintf("!%s", pass); in passwd_main()
Dgzip.c135 if (!FLAG(d)) out = xmprintf("%s%s", in, ".gz"); in do_gzip()

12