Home
last modified time | relevance | path

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

12

/third_party/toybox/toys/pending/
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:%d:", *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()
Dlsof.c205 fi->name = xmprintf(af == 4 ? in scan_ip()
211 fi->name = xmprintf(af == 4 ? "%s %s:%d->%s:%d" : "%s [%s]:%d->[%s]:%d", in scan_ip()
324 fi->name = xmprintf("%s (readlink: %s)", toybuf, strerror(errno)); in visit_symlink()
372 fi->name = xmprintf("%s (opendir: %s)", toybuf, strerror(errno)); in visit_fds()
Dgetty.c111 if (*++toys.optargs) TT.tty_name = xmprintf("%s", *toys.optargs); in parse_arguments()
113 TT.tty_name = xmprintf("%s", *toys.optargs); in parse_arguments()
123 if (*(TT.tty_name) != '/') TT.tty_name = xmprintf("/dev/%s", TT.tty_name); in open_tty()
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()
Dinit.c152 tty_name = xmprintf("%s",extracted_token); in inittab_parsing()
153 else tty_name = xmprintf("/dev/%s",extracted_token); in inittab_parsing()
/third_party/toybox/toys/posix/
Dln.c58 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try));
66 new = xmprintf("%s_XXXXXX", new);
Dnohup.c33 temp = xmprintf("%s/%s", temp ? temp : "", "nohup.out"); in nohup_main()
Dcp.c231 char *s2 = xmprintf("%*c%s", 3*dotdots, ' ', s); in cp_node()
356 catch = xmprintf("%s%s", TT.destname, f+strlen(try->name)); in cp_node()
415 TT.destname = xmprintf("%s/%s", destname, s); in cp_main()
Dsplit.c101 TT.outfile = xmprintf("%s%*c", (toys.optc == 2) ? toys.optargs[1] : "x", in split_main()
Dtar.c675 TT.hdr.name = xmprintf("%.*s%s%.*s", i, tar.prefix, in unpack_tar()
739 xsetenv(xmprintf("TAR_MODE=%o", TT.hdr.mode), 0); in unpack_tar()
740 xsetenv(xmprintf("TAR_SIZE=%lld", TT.hdr.ssize), 0); in unpack_tar()
744 xsetenv(xmprintf("TAR_MTIME=%llo", (long long)TT.hdr.mtime), 0); in unpack_tar()
745 xsetenv(xmprintf("TAR_UID=%o", TT.hdr.uid), 0); in unpack_tar()
746 xsetenv(xmprintf("TAR_GID=%o", TT.hdr.gid), 0); in unpack_tar()
/third_party/toybox/lib/
Denv.c53 if (val) new = xmprintf("%s=%s", name, val); in xsetenv()
97 stuff[i] = (s = getenv(stuff[i])) ? xmprintf("%s=%s", stuff[i], s) : 0; in reset_env()
Dpassword.c118 filenamesfx = xmprintf("%s+", filename); in update_password()
152 namesfx = xmprintf("%s:",username); in update_password()
Dcommas.c38 temp = xmprintf("%s%s%s", atold, comma, new); in comma_collate()
/third_party/toybox/toys/other/
Dmountpoint.c53 arg = xmprintf("%s/..", arg); in mountpoint_main()
Dlogin.c131 execl(pwd->pw_shell, xmprintf("-%s", pwd->pw_shell), (char *)0); in login_main()
Dmodinfo.c127 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()
/third_party/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()
/third_party/toybox/toys/lsb/
Dmktemp.c55 template = dir ? xmprintf("%s/%s", dir, template) : xstrdup(template); in mktemp_main()
Dpasswd.c78 encrypted = xmprintf("!%s", pass); in passwd_main()
Dgzip.c132 if (!FLAG(d)) out = xmprintf("%s%s", in, ".gz"); in do_gzip()
/third_party/toybox/porting/liteos_a/toys/posix/
Dcp.c204 char *s2 = xmprintf("%*c%s", 3*dotdots, ' ', s); in cp_node()
329 catch = xmprintf("%s%s", TT.destname, f+strlen(try->name)); in cp_node()
409 TT.destname = xmprintf("%s/%s", destname, s); in cp_main()

12