/external/toybox/toys/pending/ |
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...] |
setfattr.c | 35 if ((h ? lremovexattr : removexattr)(file, TT.x)) 38 if ((h ? lsetxattr : setxattr)(file, TT.n, TT.v, TT.v?strlen(TT.v):0, 0))
|
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);
|
useradd.c | 66 pwd.pw_gecos = TT.gecos ? TT.gecos : "Linux User,"; 67 pwd.pw_dir = TT.dir ? TT.dir : xmprintf("/home/%s", *toys.optargs); 69 if (!TT.shell) { 70 TT.shell = getenv("SHELL"); 72 if (!TT.shell) { 75 if (pw && pw->pw_shell && *pw->pw_shell) TT.shell = xstrdup(pw->pw_shell); 76 else TT.shell = "/bin/sh"; 79 pwd.pw_shell = TT.shell [all...] |
compress.c | 169 int pos = TT.pos++ & 32767; 171 TT.data[pos] = sym; 174 xwrite(TT.outfd, TT.data, 32768); 175 if (TT.crcfunc) TT.crcfunc(TT.data, 32768); 229 // Decompress deflated data from bitbuf to TT.outfd. 232 TT.crc = ~0; 311 lithuff = TT.fixlithuff [all...] |
traceroute.c | 114 struct payload_s *send_data4 = (struct payload_s *)(TT.packet); 115 struct icmp *send_icmp4 = (struct icmp *)(TT.packet); 119 send_data4->ident = TT.ident; 120 ((struct sockaddr_in *)&dest)->sin_port = TT.port + seq; 124 send_icmp4->icmp_id = htons(TT.ident); 127 send_icmp4->icmp_cksum = in_cksum((uint16_t *) send_icmp4, TT.msg_len); 132 res = setsockopt(TT.snd_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); 135 len = TT.msg_len; 136 res = sendto(TT.snd_sock, out, len, 0, (struct sockaddr *) &dest, 145 struct payload_s *send_data6 = (struct payload_s *) (TT.packet) [all...] |
/external/toybox/toys/example/ |
skeleton.c | 76 if (toys.optflags & FLAG_b) printf("b=%s\n", TT.s.b_string); 77 if (toys.optflags & FLAG_c) printf("c=%ld\n", TT.s.c_number); 78 while (TT.s.d_list) { 79 printf("d=%s\n", TT.s.d_list->arg); 80 TT.s.d_list = TT.s.d_list->next; 82 if (TT.s.e_count) printf("e was seen %ld times\n", TT.s.e_count); 86 if (TT.s.blubber_string) printf("--blubber=%s\n", TT.s.blubber_string) [all...] |
/external/toybox/toys/posix/ |
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...] |
expand.c | 73 if (TT.tabcount < 2) { 74 width = TT.tabcount ? *TT.tab : 8; 76 } else while (stop < TT.tabcount) { 77 if (TT.tab[stop] > x) { 78 width = TT.tab[stop] - x; 96 for (tabs = TT.tabs; tabs; tabs = tabs->next) { 118 TT.tabcount = parse_tablist(NULL); 121 if (TT.tabcount) { 122 TT.tab = xmalloc(sizeof(unsigned)*TT.tabcount) [all...] |
/external/toybox/toys/other/ |
mkpasswd.c | 38 if (!TT.method) TT.method = "des"; 40 if (TT.salt) error_exit("duplicate salt"); 41 TT.salt = toys.optargs[1]; 44 if (-1 == (i = get_salt(salt, TT.method))) error_exit("bad -m"); 45 if (TT.salt) { 46 char *s = TT.salt; 52 snprintf(salt+i, sizeof(salt)-i, "%s", TT.salt); 56 if (TT.pfd) { 57 if (dup2(TT.pfd, 0) == -1) perror_exit("fd") [all...] |
shred.c | 44 if (!(toys.optflags & FLAG_n)) TT.iterations++; 45 TT.ufd = xopenro("/dev/urandom"); 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...] |
free.c | 31 long long ll = d*TT.units; 32 char *s = TT.buf; 35 else sprintf(s, "%llu",ll>>TT.bits); 36 TT.buf += strlen(TT.buf)+1; 46 TT.units = in.mem_unit ? in.mem_unit : 1; 47 while ((toys.optflags&(FLAG_h-1)) && !(toys.optflags&(1<<TT.bits))) TT.bits++; 48 TT.bits *= 10; 49 TT.buf = toybuf [all...] |
mix.c | 38 if (!TT.dev) TT.dev = "/dev/mixer"; 39 fd = xopen(TT.dev, O_RDWR|O_NONBLOCK); 44 if (TT.chan) { 45 if (!strcmp(channels[channel], TT.chan)) break; 52 else if (channel == SOUND_MIXER_NRDEVICES) error_exit("bad -c '%s'", TT.chan); 58 TT.dev, channels[channel], level>>8, level & 0xFF); 59 else xprintf("%s:%s = %d\n", TT.dev, channels[channel], level); 61 level = TT.level; 62 if (!(toys.optflags & FLAG_r)) level = TT.right | (level<<8) [all...] |
/external/toybox/toys/android/ |
log.c | 36 if (TT.pri) { 37 i = stridx("defisvw", tolower(*TT.pri)); 38 if (i==-1 || strlen(TT.pri)!=1) error_exit("bad -p '%s'", TT.pri); 43 if (!TT.tag) TT.tag = "log"; 57 __android_log_write(pri, TT.tag, toybuf);
|
/external/llvm/lib/Target/X86/ |
X86TargetMachine.cpp | 46 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) { 47 if (TT.isOSBinFormatMachO()) { 48 if (TT.getArch() == Triple::x86_64) 53 if (TT.isOSLinux() || TT.isOSNaCl()) 55 if (TT.isOSBinFormatELF()) 57 if (TT.isKnownWindowsMSVCEnvironment() || TT.isWindowsCoreCLREnvironment()) 59 if (TT.isOSBinFormatCOFF()) 64 static std::string computeDataLayout(const Triple &TT) { [all...] |
/external/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
AMDGPUMCAsmInfo.h | 29 explicit AMDGPUMCAsmInfo(const Triple &TT);
|
/external/llvm/lib/Target/Hexagon/MCTargetDesc/ |
HexagonMCAsmInfo.h | 26 explicit HexagonMCAsmInfo(const Triple &TT);
|
/external/llvm/lib/Target/MSP430/MCTargetDesc/ |
MSP430MCAsmInfo.cpp | 19 MSP430MCAsmInfo::MSP430MCAsmInfo(const Triple &TT) {
|
MSP430MCAsmInfo.h | 26 explicit MSP430MCAsmInfo(const Triple &TT);
|
/external/llvm/lib/Target/XCore/MCTargetDesc/ |
XCoreMCAsmInfo.h | 26 explicit XCoreMCAsmInfo(const Triple &TT);
|
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/MCTargetDesc/ |
AlphaMCAsmInfo.cpp | 17 AlphaMCAsmInfo::AlphaMCAsmInfo(const Target &T, StringRef TT) {
|
AlphaMCAsmInfo.h | 24 explicit AlphaMCAsmInfo(const Target &T, StringRef TT);
|
/external/swiftshader/third_party/LLVM/lib/Target/Blackfin/MCTargetDesc/ |
BlackfinMCAsmInfo.h | 24 explicit BlackfinMCAsmInfo(const Target &T, StringRef TT);
|
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/MCTargetDesc/ |
SPUMCAsmInfo.h | 24 explicit SPULinuxMCAsmInfo(const Target &T, StringRef TT);
|