HomeSort by relevance Sort by last modified time
    Searched refs:toys (Results 151 - 175 of 220) sorted by null

1 2 3 4 5 67 8 9

  /external/toybox/toys/other/
makedevs.c 36 #include "toys.h"
48 xprintf("rootdir = %s\n", *toys.optargs);
49 if (toys.optflags & FLAG_d && strcmp(TT.fname, "-")) {
53 xchdir(*toys.optargs);
switch_root.c 21 #include "toys.h"
46 char *newroot = *toys.optargs, **cmdline = toys.optargs+1;
115 if (toys.optflags & FLAG_h) for (;;) wait(NULL);
blkid.c 28 #include "toys.h"
110 if (*toys.which->name == 'f') {
139 if (*toys.optargs) loopfiles(toys.optargs, do_blkid);
164 loopfiles(toys.optargs, do_blkid);
tac.c 16 #include "toys.h"
48 loopfiles(toys.optargs, do_tac);
vmstat.c 29 #include "toys.h"
80 unsigned loop, rows = (toys.optflags & FLAG_n) ? 0 : 25,
86 if (toys.optc) loop_delay = atolx_range(toys.optargs[0], 0, INT_MAX);
87 if (toys.optc > 1) loop_max = atolx_range(toys.optargs[1], 1, INT_MAX) - 1;
  /external/toybox/toys/pending/
crontab.c 27 #include "toys.h"
245 char *fname = *toys.optargs ? *toys.optargs : "-";
314 printf("%s: no changes made to crontab\n", toys.which->name);
318 printf("%s: installing new crontab\n", toys.which->name);
336 long FLAG_elr = toys.optflags & (FLAG_e|FLAG_l|FLAG_r);
342 if (toys.optflags & FLAG_u) {
347 if (!toys.optc) {
349 if (toys.optflags & FLAG_u)
353 else if (toys.optflags & FLAG_e) do_edit(pwd)
    [all...]
sulogin.c 24 #include "toys.h"
88 if (toys.optargs[0]) {
91 dup2((fd = xopen(toys.optargs[0], O_RDWR)), 0);
92 if (!isatty(0)) error_exit("%s: it is not a tty", toys.optargs[0]);
userdel.c 23 #include "toys.h"
96 pwd = xgetpwnam(*toys.optargs);
106 update_groupfiles("/etc/group", *toys.optargs);
107 update_groupfiles("/etc/gshadow", *toys.optargs);
109 if (toys.optflags & FLAG_r) {
vi.c 20 #include "toys.h"
43 if (!(TT.ls = linestack_load(*toys.optargs)))
klogd.c 26 #include "toys.h"
70 if (toys.optflags & FLAG_c) set_log_level(TT.level); //set log level
71 if (!(toys.optflags & FLAG_n)) daemon(0, 0); //Make it daemon
tar.c 37 #include "toys.h"
251 if (toys.optflags & FLAG_v) printf("%s\n",hname);
274 return ((DIRTREE_RECURSE | ((toys.optflags & FLAG_h)?DIRTREE_SYMFOLLOW:0)));
281 if (toys.optflags & FLAG_no_recursion) return 0;
282 return ((DIRTREE_RECURSE | ((toys.optflags & FLAG_h)?DIRTREE_SYMFOLLOW:0)));
379 if (!(toys.optflags & FLAG_k) && !S_ISDIR(file_hdr->mode)
396 if (toys.optflags & FLAG_overwrite) flags = O_WRONLY|O_CREAT|O_TRUNC;
426 if (!(toys.optflags & FLAG_o)) {
431 if (!(toys.optflags & FLAG_numeric_owner)) {
441 if (toys.optflags & FLAG_p) // || !(toys.optflags & FLAG_no_same_permissions)
    [all...]
bootchartd.c 28 #include "toys.h"
175 while (--tcnt && !toys.signal) {
262 if (*toys.optargs) {
263 if (!strcmp("start", *toys.optargs)) bchartd_opt = 1;
264 else if (!strcmp("stop", *toys.optargs)) bchartd_opt = 2;
265 else if (!strcmp("init", *toys.optargs)) bchartd_opt = 3;
266 else error_exit("Unknown option '%s'", *toys.optargs);
296 stop_logging(tmp_dir, bchartd_opt == 1 ? toys.optargs[1] : NULL);
309 if (bchartd_opt == 1 && toys.optargs[1]) {
312 if (!(prog_pid = xfork())) xexec(toys.optargs+1)
    [all...]
brctl.c 35 #include "toys.h"
316 while (*toys.optargs) {
320 if (strcmp(t->cmd, *toys.optargs)) continue;
322 toys.optargs++, toys.optc--;
323 if (toys.optc < t->nargs) help_exit("check args");
324 t->f(toys.optargs);
325 toys.optargs += t->nargs;
326 toys.optc -= t->nargs;
330 if (i == ARRAY_LEN(cc)) help_exit("invalid option '%s'", *toys.optargs)
    [all...]
telnet.c 21 #include "toys.h"
104 if(toys.signal && TT.term_ok) tcsetattr(0, TCSADRAIN, &TT.raw_term);
118 if (!toys.signal) {
128 if (toys.signal) {
149 if (toys.signal && TT.term_ok) tcsetattr(0, TCSADRAIN, &TT.def_term);
152 toys.signal = 0;
296 if (toys.optc == 2) port = toys.optargs[1];
309 TT.sfd = xconnect(*toys.optargs, port, 0, SOCK_STREAM, IPPROTO_TCP, 0);
322 if (toys.signal) handle_esc()
    [all...]
diff.c 34 #include "toys.h"
210 if (toys.optflags & FLAG_i)
213 if (toys.optflags & FLAG_w && is_space) continue;
215 if (toys.optflags & FLAG_b) {
393 if (toys.optflags & FLAG_a) return create_j_vector();
423 if (toys.optflags & FLAG_T) putchar('\t');
430 if ((cc == '\t') && (toys.optflags & FLAG_t))
456 int len = strlen(toys.optargs[TT.dir_num]), ret = 0;
463 tmp = concat_file_path(toys.optargs[1 - TT.dir_num], ptr);
494 if (S_ISDIR(node->st.st_mode) && (toys.optflags & FLAG_r))
    [all...]
  /external/toybox/toys/posix/
split.c 28 #include "toys.h"
103 TT.outfile = xmprintf("%s%*c", (toys.optc == 2) ? toys.optargs[1] : "x",
107 loopfiles(toys.optargs, do_split);
uudecode.c 21 #include "toys.h"
33 if (toys.optc) ifd = xopen(*toys.optargs, O_RDONLY);
45 string_to_mode(mode, 0777^toys.old_umask));
kill.c 44 #include "toys.h"
60 char *tmp, **args = toys.optargs;
64 if (toys.optflags & FLAG_l) {
89 if (CFG_KILLALL5 && toys.which->name[4]=='a') {
96 if (toys.optflags & FLAG_o) {
uname.c 26 #include "toys.h"
43 int i, flags = toys.optflags, needspace=0;
od.c 26 #include "toys.h"
127 unsigned flags = toys.optflags;
203 if (toys.optflags & FLAG_N) {
276 if (toys.optflags & FLAG_b) append_base("o1");
277 if (toys.optflags & FLAG_c) append_base("c");
278 if (toys.optflags & FLAG_d) append_base("u2");
279 if (toys.optflags & FLAG_o) append_base("o2");
280 if (toys.optflags & FLAG_s) append_base("d2");
281 if (toys.optflags & FLAG_x) append_base("x2");
284 loopfiles(toys.optargs, do_od)
    [all...]
tail.c 31 #include "toys.h"
138 if (toys.optflags & FLAG_f) {
148 if (toys.optc > 1) {
225 char **args = toys.optargs;
227 if (!(toys.optflags&(FLAG_n|FLAG_c))) {
233 toys.optc--;
241 if (toys.optflags&FLAG_f) {
243 TT.files = xmalloc(toys.optc*8);
245 loopfiles_rw(args, O_RDONLY|(O_CLOEXEC*!(toys.optflags&FLAG_f)),
248 if ((toys.optflags & FLAG_f) && TT.file_no)
    [all...]
nl.c 29 #include "toys.h"
89 REG_NOSUB | (toys.optflags&FLAG_E)*REG_EXTENDED);
92 loopfiles (toys.optargs, do_nl);
  /external/toybox/lib/
help.c 3 #include "toys.h"
20 int i = toys.which-toy_list;
  /external/toybox/scripts/
genconfig.sh 98 for j in $(ls toys/*/README | sort -r)
124 toys() function
132 toys toys/*/*.c | (
make.sh 31 echo "Generate headers from toys/*/*.c..."
35 if isnewer generated/Config.in toys
37 echo "Extract configuration information from toys/*.c files..."
46 if isnewer generated/newtoys.h toys
51 sed -n -e 's/^USE_[A-Z0-9_]*(/&/p' toys/*/*.c \
58 # Extract a list of toys/*/*.c files to compile from the data in $KCONFIG_CONFIG
64 TOYFILES="$(egrep -l "TOY[(]($TOYFILES)[ ,]" toys/*/*.c)"
71 echo -e "\n\033[1;31mwarning: using unfinished code from toys/pending\033[0m"
189 # Extract global structure definitions and flag definitions from toys/*/*.c
193 for i in toys/*/*.
    [all...]

Completed in 535 milliseconds

1 2 3 4 5 67 8 9