Home
last modified time | relevance | path

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

12

/external/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()
Dwatch.c38 cmd = xmprintf("%s %s", oldcmd, toys.optargs[i]);
41 header = xmprintf("Every %us: %s", TT.interval, cmd);
Dlsof.c220 fi->name = xmprintf(af == 4 ? in match_ip()
226 fi->name = xmprintf(af == 4 ? "%s %s:%d->%s:%d" : "%s [%s]:%d->[%s]:%d", in match_ip()
322 fi->name = xmprintf("%s (readlink: %s)", toybuf, strerror(errno)); in visit_symlink()
370 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()
Dnetstat.c179 if (!lport) return xmprintf("%s", "*"); in get_servname()
181 if (ser) return xmprintf("%s", ser->s_name); in get_servname()
182 return xmprintf("%u", (unsigned)ntohs(lport)); in get_servname()
446 fd_dir = xmprintf("/proc/%d/fd", pid); in scan_pid()
Duserdel.c32 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()
Dtcpsvd.c82 if (flags & NI_NUMERICSERV) return xmprintf("%s:%s",hbuf, sbuf); in sock_to_address()
83 return xmprintf("%s",hbuf); in sock_to_address()
Dfsck.c203 args[0] = xmprintf("fsck.%s", type); in do_fsck()
205 if(toys.optflags & FLAG_C) args[i++] = xmprintf("%s %d","-C", TT.fd_num); in do_fsck()
/external/toybox/toys/posix/
Dln.c51 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try)); in ln_main()
59 new = xmprintf("%s_XXXXXX", new); in ln_main()
Dnohup.c32 temp = xmprintf("%s/%s", temp ? temp : "", "nohup.out"); in nohup_main()
Dsplit.c103 TT.outfile = xmprintf("%s%*c", (toys.optc == 2) ? toys.optargs[1] : "x", in split_main()
Dcp.c249 char *s2 = xmprintf("%*c%s", 3*dotdots, ' ', s); in cp_node()
411 if (destdir) TT.destname = xmprintf("%s/%s", destname, basename(src)); in cp_main()
/external/toybox/toys/other/
Dpwdx.c26 path = xmprintf("/proc/%s/cwd", *optargs); in pwdx_main()
Dmountpoint.c50 arg = xmprintf("%s/..", arg); in mountpoint_main()
Dsysctl.c105 path = xmprintf("/proc/sys/%s", key); in process_key()
Dlogin.c163 execl(pwd->pw_shell, xmprintf("-%s", pwd->pw_shell), (char *)0); in login_main()
/external/toybox/lib/
Dpassword.c118 filenamesfx = xmprintf("%s+", filename); in update_password()
152 namesfx = xmprintf("%s:",username); in update_password()
Dhelp.c29 s = xmprintf("See %s --help\n", ++s); in show_help()
Dgetmountlist.c39 temp = xmprintf("%s%s%s", atold, comma, new); in comma_collate()
/external/toybox/toys/lsb/
Dmktemp.c45 : xmprintf("%s/%s", TT.tmpdir, template);
Dsu.c37 if (s) return xmprintf("%s=%s", name, s);
Dpasswd.c170 encrypted = xmprintf("!%s",pass); in passwd_main()
/external/toybox/scripts/
Dconfig2help.c344 try = xmprintf("[-%.*s%.*s] ", ff, from, tt, to); in main()
355 dlist_add(&anchor, xmprintf("%*cusage: %.*s %s%s%s%s", in main()

12