/third_party/toybox/toys/posix/ |
H A D | cpio.c | 166 if (!test) xwrite(fd, data, data == toybuf ? sizeof(toybuf) : size); in cpio_main() 249 xwrite(afd, toybuf, llen); in cpio_main() 250 xwrite(afd, name, nlen); in cpio_main() 254 if (llen) xwrite(afd, &zero, 4-llen); in cpio_main() 260 xwrite(afd, toybuf, llen); in cpio_main() 268 xwrite(afd, toybuf, nlen); in cpio_main() 271 if (llen) xwrite(afd, &zero, 4-llen); in cpio_main() 279 xwrite(afd, toybuf, in cpio_main()
|
H A D | tail.c | 61 xwrite(1, list->data, list->len); in dump_chunk() 209 if (offset<len) xwrite(1, toybuf+offset, len-offset); in do_tail() 245 xwrite(1, toybuf, len); in tail_main()
|
H A D | cat.c | 61 } else xwrite(1, toybuf, len); in do_cat()
|
H A D | uname.c | 80 xwrite(1, c, len); in uname_main()
|
H A D | head.c | 55 xwrite(1, toybuf, i); in do_head()
|
H A D | tar.c | 141 xwrite(TT.fd, &tmp, 512); in write_longname() 142 xwrite(TT.fd, name, sz); in write_longname() 143 if (sz%512) xwrite(TT.fd, toybuf, 512-(sz%512)); in write_longname() 344 xwrite(TT.fd, &hdr, 512); in add_to_tar() 355 xwrite(TT.fd, buf, 512); in add_to_tar() 885 xwrite(0, hdr, len); in tar_main() 892 xwrite(0, toybuf, i); in tar_main()
|
H A D | iconv.c | 59 if (out != outstart) xwrite(1, outstart, out-outstart); in do_iconv()
|
H A D | split.c | 87 xwrite(outfd, toybuf+pos, j); in do_split()
|
/third_party/toybox/toys/pending/ |
H A D | fold.c | 50 xwrite(1, buf, pos); in do_fold() 81 xwrite(1, buf, split + 1); in do_fold() 89 xwrite(1, buf, bufsz); in do_fold()
|
H A D | mke2fs.c | 492 xwrite(TT.fsfd, toybuf, out); in put_zeroes() 659 xwrite(TT.fsfd, &sb, sizeof(struct ext2_superblock)); in mke2fs_main() 663 xwrite(TT.fsfd, toybuf, temp); in mke2fs_main() 674 if (j) xwrite(TT.fsfd, bg, TT.blocksize); in mke2fs_main() 709 xwrite(TT.fsfd, bg, TT.blocksize); in mke2fs_main() 725 xwrite(TT.fsfd, toybuf, TT.blocksize); in mke2fs_main() 737 xwrite(TT.fsfd, toybuf, TT.blocksize); in mke2fs_main() 743 if (j) xwrite(TT.fsfd, in, TT.blocksize); in mke2fs_main() 754 xwrite(TT.fsfd, in, TT.blocksize); in mke2fs_main()
|
H A D | telnet.c | 105 xwrite(1,"\r\nConsole escape. Commands are:\r\n\n" in handle_esc() 148 xwrite(1, "continuing...\r\n", 15); in handle_esc() 262 if (i) xwrite(STDIN_FILENO, toybuf, i); in read_server() 284 if(i) xwrite(TT.sfd, toybuf, i); in write_server()
|
H A D | wget.c | 206 xwrite(TT.sock, buf, len); in wget_write() 350 xwrite(fd, toybuf, len); in wget_main() 354 xwrite(fd, toybuf, c_len); in wget_main() 380 xwrite(fd, toybuf, len); in wget_main()
|
H A D | bootchartd.c | 44 xwrite(wfd, TT.timestamp, strlen(TT.timestamp)); in dump_data_in_file() 47 xwrite(wfd, "\n", 1); in dump_data_in_file()
|
/third_party/toybox/toys/other/ |
H A D | dos2unix.c | 61 xwrite(outfd, toybuf, out); in do_dos2unix() 63 if (catch) xwrite(outfd, "\r", 1); in do_dos2unix()
|
H A D | mkswap.c | 38 xwrite(fd, swap, 129*sizeof(unsigned int)); in mkswap_main() 40 xwrite(fd, "SWAPSPACE2", 10); in mkswap_main()
|
H A D | reset.c | 25 xwrite(fd<0 ? 1 : fd, "\033c\033[?7h", 2); in reset_main()
|
H A D | count.c | 30 xwrite(1, buf, len); in count_main()
|
/third_party/toybox/toys/net/ |
H A D | microcom.c | 66 if (n > 0) xwrite(0, buf, n); in microcom_main() 79 xwrite(TT.fd, buf, 1); in microcom_main()
|
H A D | rfkill.c | 72 xwrite(fd, &rfevent, sizeof(rfevent)); in rfkill_main()
|
/third_party/toybox/lib/ |
H A D | deflate.c | 113 xwrite(bb->fd, bb->buf, (bb->bitpos+7)>>3); in bitbuf_flush() 145 xwrite(dd->outfd, dd->data, 32768); in output_byte() 317 xwrite(dd->outfd, dd->data, dd->pos&32767); in inflate() 459 xwrite(bb->fd, "\x1f\x8b\x08\0\0\0\0\0\x02\xff", 10); in gzip_fd()
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | cat.c | 61 } else xwrite(1, toybuf, len); in do_cat()
|
H A D | uname.c | 80 xwrite(1, c, len); in uname_main()
|
/third_party/toybox/toys/android/ |
H A D | sendevent.c | 36 xwrite(fd, &ev, sizeof(ev)); in sendevent_main()
|
/third_party/alsa-utils/aplay/ |
H A D | aplay.c | 445 static ssize_t xwrite(int fd, const void *buf, size_t count) in xwrite() function 2605 if (xwrite(2, data, l) != l) { /* to stderr */ 2662 if (xwrite(fd, &vh, sizeof(VocHeader)) != sizeof(VocHeader)) { 2671 if (xwrite(fd, &bt, sizeof(VocBlockType)) != sizeof(VocBlockType)) { 2678 if (xwrite(fd, &eb, sizeof(VocExtBlock)) != sizeof(VocExtBlock)) { 2688 if (xwrite(fd, &bt, sizeof(VocBlockType)) != sizeof(VocBlockType)) { 2694 if (xwrite(fd, &vd, sizeof(VocVoiceData)) != sizeof(VocVoiceData)) { 2763 if (xwrite(fd, &h, sizeof(WaveHeader)) != sizeof(WaveHeader) || 2764 xwrite(fd, &cf, sizeof(WaveChunkHeader)) != sizeof(WaveChunkHeader) || 2765 xwrite(f [all...] |
/third_party/toybox/toys/example/ |
H A D | logwrapper.c | 52 xwrite(i, s, ss-s); in logwrapper_main()
|