Searched refs:nw (Results 1 – 3 of 3) sorted by relevance
/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | dd.c | 486 int64_t cnt, n, nw; in dd_out() local 507 for (cnt = n;; cnt -= nw) { in dd_out() 520 nw = 0; in dd_out() 530 nw = bwrite(&out, outp, cnt); in dd_out() 531 if (nw <= 0) { in dd_out() 532 if (nw == 0) in dd_out() 539 nw = 0; in dd_out() 547 outp += nw; in dd_out() 548 st.bytes += nw; in dd_out() 549 if (nw == n) { in dd_out() [all …]
|
/system/core/toolbox/upstream-netbsd/bin/cat/ |
D | cat.c | 297 ssize_t nr, nw, off; in raw_cat() local 322 for (off = 0; nr; nr -= nw, off += nw) in raw_cat() 323 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0) in raw_cat()
|
/system/core/init/ |
D | devices.c | 816 ssize_t nw = 0; in load_firmware() local 818 nw = write(data_fd, buf + nw, nr); in load_firmware() 819 if(nw <= 0) { in load_firmware() 823 nr -= nw; in load_firmware()
|