/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 | 43 fprintf(stderr, "timeout pid %d signal %d\n", TT.pid, TT.nextsig); 44 kill(TT.pid, TT.nextsig); 46 if (TT.k_timeout) { 47 TT.k_timeout = 0; 48 TT.nextsig = SIGKILL; 50 TT.itv.it_value = TT.ktv; 51 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...] |
setfattr.c | 36 if (TT.x) rc = (h?lremovexattr:removexattr)(*s, TT.x); 37 else rc = (h?lsetxattr:setxattr)(*s, TT.n, TT.v, TT.v?strlen(TT.v):0, 0);
|
/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);
|
patch.c | 73 if (TT.state>1 && *dlist->data != TT.state) { 74 char *s = dlist->data+(TT.state>3 ? 1 : 0); 75 int i = TT.state == 2 ? 2 : TT.fileout; 82 fprintf(stderr, "DO %d: %s\n", TT.state, dlist->data); 90 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...] |
od.c | 58 char c = TT.buf[(*offset)++]; 79 memcpy(&fdl, TT.buf+*offset, t->size); 108 or = TT.buf[(*offset)++]; 134 if (TT.leftover<TT.width) memset(TT.buf+TT.leftover, 0, TT.width-TT.leftover); 137 if (!(flags&FLAG_v) && TT.jump_bytes != TT.pos && TT.leftove [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) 82 TT.bytes += sizeof(char *); 85 if (++TT.bytes >= TT.max_bytes && TT.max_bytes) return save [all...] |
nice.c | 32 if (!toys.optflags) TT.priority = 10; 35 if (nice(TT.priority)==-1 && errno) perror_exit("Can't set priority");
|
/external/toybox/toys/pending/ |
dd.c | 67 (TT.start.tv_sec * 1000000 + TT.start.tv_usec))/1000000.0; 69 if (TT.show_records) 71 TT.in_full, TT.in_part, TT.out_full, TT.out_part); 73 if (TT.show_xfer) { 74 human_readable(toybuf, TT.bytes, HR_SPACE|HR_B); 75 fprintf(stderr, "%llu bytes (%s) copied, ", TT.bytes, toybuf) [all...] |
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...] |
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/ |
nullopt_t.pass.cpp | 39 using TT = TestTypes::TestType; 40 TT::reset(); 42 optional<TT> opt; 44 assert(TT::destroyed == 0); 46 assert(TT::constructed == 0); 47 assert(TT::alive == 0); 48 assert(TT::destroyed == 0); 51 assert(TT::alive == 0); 52 assert(TT::destroyed == 0); 53 TT::reset() [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/optional/optional.object/optional.object.assign/ |
nullopt_t.pass.cpp | 39 using TT = TestTypes::TestType; 40 TT::reset(); 42 optional<TT> opt; 44 assert(TT::destroyed == 0); 46 assert(TT::constructed == 0); 47 assert(TT::alive == 0); 48 assert(TT::destroyed == 0); 51 assert(TT::alive == 0); 52 assert(TT::destroyed == 0); 53 TT::reset() [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/android/ |
getprop.c | 36 if (selabel_lookup(TT.handle, &context, property, 1)) { 45 if (!(TT.size&31)) TT.nv = xrealloc(TT.nv, (TT.size+32)*2*sizeof(char *)); 47 TT.nv[2*TT.size] = xstrdup((char *)name); 49 TT.nv[1+2*TT.size++] = get_property_context(name); 51 TT.nv[1+2*TT.size++] = xstrdup((char *)value) [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
XCoreSubtarget.cpp | 24 XCoreSubtarget::XCoreSubtarget(const std::string &TT, 26 : XCoreGenSubtargetInfo(TT, CPU, FS)
|
/external/llvm/lib/Target/AVR/MCTargetDesc/ |
AVRMCAsmInfo.cpp | 20 AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT) {
|
AVRMCAsmInfo.h | 26 explicit AVRMCAsmInfo(const Triple &TT);
|
/external/llvm/lib/Target/SystemZ/MCTargetDesc/ |
SystemZMCAsmInfo.h | 21 explicit SystemZMCAsmInfo(const Triple &TT);
|
/external/swiftshader/third_party/LLVM/lib/Target/Blackfin/MCTargetDesc/ |
BlackfinMCAsmInfo.cpp | 18 BlackfinMCAsmInfo::BlackfinMCAsmInfo(const Target &T, StringRef TT) {
|