Searched refs:peek_be (Results 1 – 6 of 6) sorted by relevance
/external/toybox/toys/net/ |
D | host.c | 133 printf("rcode = %d, ancount = %d\n", rcode, (int)peek_be(abuf+6, 2)); in host_main() 144 count = peek_be(abuf+4+2*sec, 2); in host_main() 152 type = peek_be(p, 2); in host_main() 155 ttl = peek_be(p, 4); in host_main() 157 pllen = peek_be(p, 2); in host_main() 173 "\t\t%u\t;default ttl\n\t\t)", (unsigned)peek_be(ss, 4), in host_main() 174 (unsigned)peek_be(ss+4, 4), (unsigned)peek_be(ss+8, 4), in host_main() 175 (unsigned)peek_be(ss+12, 4), (unsigned)peek_be(ss+16, 4)); in host_main() 177 j = peek_be(p, 2); in host_main() 181 j = sprintf(t2, "%u %u %u ", (int)peek_be(p, 2), (int)peek_be(p+2, 2), in host_main() [all …]
|
/external/toybox/toys/posix/ |
D | file.c | 37 int64_t (*elf_int)(void *ptr, unsigned size) = (endian==2)?peek_be:peek_le; 223 int chunk_length = peek_be(s, 4); in do_regular_file() 235 xprintf(", %d x %d, %d-bit/%s, %sinterlaced", (int)peek_be(s, 4), in do_regular_file() 236 (int)peek_be(s+4, 4), s[8], c ? : "unknown", s[12] ? "" : "non-"); in do_regular_file() 250 unsigned count = peek_be(s, 4), i, arch; in do_regular_file() 260 arch = peek_be(s, 4); in do_regular_file() 272 (int)peek_be(s+2, 2), (int)peek_be(s, 2), (int)peek_be(s+2, 2)-44); in do_regular_file() 307 else if (len>31 && peek_be(s, 7) == 0xfd377a585a0000UL) in do_regular_file() 350 int format = le ? peek_le(s+20, 2) : peek_be(s+20, 2); in do_regular_file() 351 int channels = le ? peek_le(s+22, 2) : peek_be(s+22, 2); in do_regular_file() [all …]
|
D | tar.c | 1063 else if (peek_be(hdr, 7) == 0xfd377a585a0000UL) toys.optflags |= FLAG_J; in tar_main()
|
/external/toybox/lib/ |
D | lib.c | 678 int64_t peek_be(void *ptr, unsigned size) in peek_be() function 690 return (IS_BIG_ENDIAN ? peek_be : peek_le)(ptr, size); in peek()
|
D | lib.h | 213 int64_t peek_be(void *ptr, unsigned size);
|
/external/toybox/toys/other/ |
D | readelf.c | 62 result = ((TT.endian == 2) ? peek_be : peek_le)(*p, len); in elf_get()
|