HomeSort by relevance Sort by last modified time
    Searched refs:TT (Results 1 - 25 of 392) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/toybox/toys/other/
truncate.c 39 if (TT.type == -1) size = TT.size;
42 if (TT.type<2) size += TT.size*(1-(2*TT.type));
43 else if (TT.type<4) {
44 if ((TT.type==2) ? (size <= TT.size) : (size >= TT.size)) return;
45 size = TT.size
    [all...]
timeout.c 42 fprintf(stderr, "timeout pid %d signal %d\n", TT.pid, TT.nextsig);
43 kill(TT.pid, TT.nextsig);
45 if (TT.k_timeout) {
46 TT.k_timeout = 0;
47 TT.nextsig = SIGKILL;
49 TT.itv.it_value = TT.ktv;
50 setitimer(ITIMER_REAL, &TT.itv, (void *)toybuf)
    [all...]
ionice.c 50 return syscall(__NR_ioprio_get, 1, (int)TT.pid);
55 int prio = ((int)TT.class << 13) | (int)TT.level;
57 return syscall(__NR_ioprio_set, 1, (int)TT.pid, prio);
62 if (!TT.pid && !toys.optc) error_exit("Need -p or COMMAND");
70 if (!TT.pid) xexec(toys.optargs);
78 TT.pid = atolx(*toys.optargs);
83 TT.class = (p>>13)&3;
86 TT.pid, classes[TT.class], TT.class, p)
    [all...]
hexedit.c 63 tty_jump(0, TT.height);
73 yy = (TT.base+yy)*16;
74 if (yy+xx>=TT.len) xx = TT.len-yy;
76 if (yy<TT.len) {
77 printf("\r%0*llX ", TT.numlen, yy);
78 for (x=0; x<xx; x++) printf(" %02X", TT.data[yy+x]);
80 for (x=0; x<xx; x++) draw_char(stdout, TT.data[yy+x]);
91 for (y = 0; y<TT.height; y++) {
101 char cc = TT.data[16*(TT.base+yy)+xx]
    [all...]
mkpasswd.c 37 if (!TT.method) TT.method = "des";
39 if (TT.salt) error_exit("duplicate salt");
40 TT.salt = toys.optargs[1];
43 if (-1 == (i = get_salt(salt, TT.method))) error_exit("bad -m");
44 if (TT.salt) {
45 char *s = TT.salt;
51 snprintf(salt+i, sizeof(salt)-i, "%s", TT.salt);
55 if (TT.pfd) {
56 if (dup2(TT.pfd, 0) == -1) perror_exit("fd")
    [all...]
shred.c 44 if (!(toys.optflags & FLAG_n)) TT.iterations++;
45 TT.ufd = xopen("/dev/urandom", O_RDONLY);
51 off_t pos = 0, len = TT.size;
78 if (++iter == TT.iterations && (toys.optargs && FLAG_z)) {
82 if (iter >= TT.iterations) break;
85 if (pos < TT.offset) {
86 if (TT.offset != lseek(fd, TT.offset, SEEK_SET)) {
90 pos = TT.offset;
99 if (iter != TT.iterations) xread(TT.ufd, toybuf, throw)
    [all...]
  /external/toybox/toys/posix/
nl.c 46 int w = TT.w, slen = strlen(TT.s);
51 int match = *TT.b != 'n';
58 if (*TT.b == 'p') match = !regexec((void *)(toybuf+16), line, 0, 0, 0);
59 if (TT.l || *TT.b == 't')
60 if (*line == '\n') match = TT.l && ++TT.lcount >= TT.l;
62 TT.lcount = 0
    [all...]
mkfifo.c 41 TT.mode = 0666;
42 if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0);
45 if (0>lsm_set_create(TT.Z))
46 perror_exit("-Z '%s' failed", TT.Z);
49 if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) perror_msg_raw(*s);
od.c 56 char c = TT.buf[(*offset)++];
77 memcpy(&fdl, TT.buf+*offset, t->size);
106 or = TT.buf[(*offset)++];
132 if (TT.leftover<16) memset(TT.buf+TT.leftover, 0, 16-TT.leftover);
135 if (!(flags&FLAG_v) && TT.jump_bytes != TT.pos && TT.leftove
    [all...]
patch.c 70 if (TT.state>1 && *dlist->data != TT.state) {
71 char *s = dlist->data+(TT.state>3 ? 1 : 0);
72 int i = TT.state == 2 ? 2 : TT.fileout;
79 fprintf(stderr, "DO %d: %s\n", TT.state, dlist->data);
87 if (TT.tempname) replace_tempfile(TT.filein, TT.fileout, &TT.tempname)
    [all...]
chgrp.c 55 ret = fchownat(fd, node->name, TT.owner, TT.group,
62 TT.owner_name ? TT.owner_name : "",
63 toys.which->name[2]=='o' && TT.group_name ? ":" : "",
64 TT.group_name ? TT.group_name : "", path);
66 perror_msg("'%s' to '%s:%s'", path, TT.owner_name, TT.group_name);
79 TT.owner = TT.group = -1
    [all...]
nice.c 32 if (!toys.optflags) TT.priority = 10;
35 if (nice(TT.priority)==-1 && errno) perror_exit("Can't set priority");
mkdir.c 45 if (0>lsm_set_create(TT.arg_context))
46 perror_exit("-Z '%s' failed", TT.arg_context);
48 if (TT.arg_mode) mode = string_to_mode(TT.arg_mode, 0777);
split.c 59 if ((TT.bytes && !bytesleft) || (TT.lines && !linesleft)) {
60 char *s = TT.outfile + strlen(TT.outfile);
63 for (i = 0; i<TT.suflen; i++) {
68 bytesleft = TT.bytes;
69 linesleft = TT.lines;
71 outfd = xcreate(TT.outfile, O_RDWR|O_CREAT|O_TRUNC, st.st_mode & 0777);
75 if (TT.lines) {
93 free(TT.outfile)
    [all...]
xargs.c 54 // If out==NULL count TT.bytes and TT.entries, stopping at max.
64 if (TT.delim) {
76 if (TT.max_entries && TT.entries >= TT.max_entries)
83 if (++TT.bytes >= TT.max_bytes && TT.max_bytes) return save;
87 if (TT.eofstr)
    [all...]
  /external/toybox/toys/lsb/
killall.c 40 if (pid == TT.cur_pid) return 0;
48 kill(pid, TT.signum);
50 if (TT.names[offset] == name) {
51 TT.err[offset] = errno;
58 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
67 TT.names = toys.optargs;
68 TT.signum = SIGTERM;
75 if (TT.sig || (*TT.names && **TT.names == '-'))
    [all...]
mktemp.c 41 if (!TT.tmpdir) TT.tmpdir = getenv("TMPDIR");
42 if (!TT.tmpdir || !*TT.tmpdir) TT.tmpdir = "/tmp";
45 : xmprintf("%s/%s", TT.tmpdir, template);
50 d_flag ? "directory" : "file", TT.tmpdir, template);
  /external/toybox/toys/pending/
telnet.c 55 if (TT.flags & UF_ECHO) {
56 if (TT.term_mode == CM_TRY) {
57 TT.term_mode = CM_ON;
59 if (TT.term_ok) tcsetattr(0, TCSADRAIN, &TT.raw_term);
62 if (TT.term_mode != CM_OFF) {
63 TT.term_mode = CM_OFF;
65 if (TT.term_ok) tcsetattr(0, TCSADRAIN, &TT.def_term);
73 int wlen = write(TT.sfd, TT.iac, TT.piac)
    [all...]
getty.c 98 TT.sc = 0;
100 TT.speeds[TT.sc] = encode(ptr);
101 if (TT.speeds[TT.sc] < 0) perror_exit("bad speed");
102 if (++TT.sc > 10) perror_exit("too many speeds, max is 10");
111 if (*++toys.optargs) TT.tty_name = xmprintf("%s", *toys.optargs);
113 TT.tty_name = xmprintf("%s", *toys.optargs);
122 if (strcmp(TT.tty_name, "-")) {
123 if (*(TT.tty_name) != '/') TT.tty_name = xmprintf("/dev/%s", TT.tty_name)
    [all...]
mke2fs.c 118 uint32_t dblocks = (uint32_t)((size+(TT.blocksize-1))/TT.blocksize);
119 uint32_t idx=TT.blocksize/4, iblocks=0, diblocks=0, tiblocks=0;
162 // Writes total block count to TT.treeblocks and inode count to TT.treeinodes.
175 TT.treeblocks += that->st.st_blocks;
179 TT.treeblocks += blocks = file_blocks_used(*size, 0);
180 TT.treeinodes++;
228 temp = (inodes + TT.groups - 1) / TT.groups
    [all...]
vi.c 43 if (!(TT.ls = linestack_load(*toys.optargs)))
44 TT.ls = xzalloc(sizeof(struct linestack));
46 for (i=0; i<TT.ls->len; i++)
47 printf("%.*s\n", (int)TT.ls->idx[i].len, (char *)TT.ls->idx[i].ptr);
  /external/toybox/toys/android/
getprop.c 38 if (selabel_lookup(TT.handle, &context, property, 1)) {
46 if (!(TT.size&31)) TT.nv = xrealloc(TT.nv, (TT.size+32)*2*sizeof(char *));
48 TT.nv[2*TT.size] = xstrdup(name);
50 TT.nv[1+2*TT.size++] = get_property_context(name);
52 TT.nv[1+2*TT.size++] = xstrdup(value)
    [all...]
  /external/llvm/lib/Target/SystemZ/MCTargetDesc/
SystemZMCAsmInfo.h 21 explicit SystemZMCAsmInfo(const Triple &TT);
  /external/toybox/toys/example/
hello.c 34 if (getpid() == 1) wait(&TT.unused);
skeleton.c 75 if (toys.optflags & FLAG_b) printf("b=%s\n", TT.s.b_string);
76 if (toys.optflags & FLAG_c) printf("c=%ld\n", TT.s.c_number);
77 while (TT.s.d_list) {
78 printf("d=%s\n", TT.s.d_list->arg);
79 TT.s.d_list = TT.s.d_list->next;
81 if (TT.s.e_count) printf("e was seen %ld times\n", TT.s.e_count);
85 if (TT.s.blubber_string) printf("--blubber=%s\n", TT.s.blubber_string)
    [all...]

Completed in 156 milliseconds

1 2 3 4 5 6 7 8 91011>>