Home
last modified time | relevance | path

Searched refs:xwrite (Results 1 – 25 of 31) sorted by relevance

12

/external/toybox/toys/other/
Dcount.c28 xwrite(1, toybuf, len); in count_main()
29 xwrite(2, buf, sprintf(buf, "%"PRIu64" bytes\r", size)); in count_main()
31 xwrite(2, "\n", 1); in count_main()
Dmkswap.c38 xwrite(fd, swap, 129*sizeof(unsigned int));
40 xwrite(fd, "SWAPSPACE2", 10);
Ddos2unix.c61 xwrite(outfd, toybuf, out);
63 if (catch) xwrite(outfd, "\r", 1);
Dnsenter.c85 xwrite(fd, toybuf, bytes);
94 xwrite(fd, "deny", 4); in handle_r()
Dclear.c18 xwrite(1, "\e[2J\e[H", 7); in clear_main()
Dreset.c22 xwrite(xgettty(), "\033c", 2); in reset_main()
/external/toybox/toys/posix/
Dcpio.c168 if (!test) xwrite(fd, data, data == toybuf ? sizeof(toybuf) : size); in cpio_main()
251 xwrite(afd, toybuf, llen); in cpio_main()
252 xwrite(afd, name, nlen); in cpio_main()
256 if (llen) xwrite(afd, &zero, 4-llen); in cpio_main()
262 xwrite(afd, toybuf, llen); in cpio_main()
270 xwrite(afd, toybuf, nlen); in cpio_main()
273 if (llen) xwrite(afd, &zero, 4-llen); in cpio_main()
281 xwrite(afd, toybuf, in cpio_main()
Dtail.c69 xwrite(1, list->data, list->len); in dump_chunk()
219 if (offset<len) xwrite(1, toybuf+offset, len-offset); in do_tail()
266 xwrite(1, toybuf, len); in tail_main()
Duname.c69 xwrite(1, c, len); in uname_main()
Dcat.c89 } else xwrite(1, toybuf, len); in do_cat()
Dhead.c56 xwrite(1, toybuf, i);
Duudecode.c101 xwrite(ofd, line, out-line);
Dsplit.c86 xwrite(outfd, toybuf+pos, j);
Dpatch.c77 xwrite(i, s, strlen(s));
78 xwrite(i, "\n", 1);
/external/toybox/toys/pending/
Dfold.c50 xwrite(1, buf, pos);
81 xwrite(1, buf, split + 1);
89 xwrite(1, buf, bufsz);
Dmke2fs.c356 xwrite(TT.fsfd, toybuf, out); in put_zeroes()
522 xwrite(TT.fsfd, &TT.sb, sizeof(struct ext2_superblock)); in mke2fs_main()
526 xwrite(TT.fsfd, toybuf, temp); in mke2fs_main()
537 if (j) xwrite(TT.fsfd, bg, TT.blocksize); in mke2fs_main()
572 xwrite(TT.fsfd, bg, TT.blocksize); in mke2fs_main()
588 xwrite(TT.fsfd, toybuf, TT.blocksize); in mke2fs_main()
600 xwrite(TT.fsfd, toybuf, TT.blocksize); in mke2fs_main()
606 if (j) xwrite(TT.fsfd, in, TT.blocksize); in mke2fs_main()
617 xwrite(TT.fsfd, in, TT.blocksize); in mke2fs_main()
Dtelnet.c105 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()
Dcompress.c142 xwrite(bb->fd, bb->buf, (bb->bitpos+7)/8); in bitbuf_flush()
174 xwrite(TT.outfd, TT.data, 32768); in output_byte()
344 xwrite(TT.outfd, TT.data, TT.pos & 32767); in inflate()
468 xwrite(bb->fd, "\x1f\x8b\x08\0\0\0\0\0\x02\xff", 10); in do_gzip()
Diconv.c61 xwrite(1, outstart, out-outstart);
Dbootchartd.c60 xwrite(wfd, TT.buf, strlen(TT.buf)); in dump_data_in_file()
63 xwrite(wfd, "\n", 1); in dump_data_in_file()
/external/toybox/toys/net/
Dmicrocom.c90 if (n > 0) xwrite(0, buf, n); in microcom_main()
103 xwrite(TT.fd, buf, 1); in microcom_main()
Drfkill.c72 xwrite(fd, &rfevent, sizeof(rfevent)); in rfkill_main()
/external/toybox/toys/android/
Dsendevent.c36 xwrite(fd, &ev, sizeof(ev)); in sendevent_main()
/external/toybox/lib/
Dnet.c82 else xwrite(i ? out2 : out1, libbuf, len); in pollinate()
Dxwrap.c441 void xwrite(int fd, void *buf, size_t len) in xwrite() function
736 xwrite(fd, spid, sprintf(spid, "%ld\n", (long)getpid())); in xpidfile()
751 xwrite(out, libbuf, len); in xsendfile()

12