Searched defs:nr (Results 1 - 12 of 12) sorted by relevance

/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dposition.c69 int bcnt, cnt, nr, warned; local
88 if ((nr = ddop_read(in, in.fd, in.db, bcnt)) > 0) {
90 if (!(bcnt -= nr)) {
99 if (nr == 0) {
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dfile.c80 ssize_t nr; local
88 nr = gzread(gzbufdesc, buffer, MAXBUFSIZ);
90 nr = BZ2_bzRead(&bzerr, bzbufdesc, buffer, MAXBUFSIZ);
94 /* No problem, nr will be okay */
109 nr = read(f->fd, buffer, MAXBUFSIZ);
113 nr = -1;
117 nr = read(f->fd, buffer, MAXBUFSIZ);
119 if (nr < 0)
122 bufrem = nr;
/system/core/init/
H A Dueventd.c54 int nr; local
105 nr = poll(&ufd, 1, -1);
106 if (nr <= 0)
H A Dproperty_service.c272 int nr; local
288 nr = TEMP_FAILURE_RETRY(poll(ufds, 1, timeout_ms));
289 if (nr == 0) {
293 } else if (nr < 0) {
H A Ddevices.c804 ssize_t nr; local
806 nr = read(fw_fd, buf, sizeof(buf));
807 if(!nr)
809 if(nr < 0) {
814 len_to_copy -= nr;
815 while (nr > 0) {
818 nw = write(data_fd, buf + nw, nr);
823 nr -= nw;
H A Dinit.c1112 int nr, i, timeout = -1; local
1159 nr = poll(ufds, fd_count, timeout);
1160 if (nr <= 0)
/system/core/toolbox/upstream-netbsd/bin/cat/
H A Dcat.c297 ssize_t nr, nw, off; local
321 while ((nr = read(rfd, buf, bsize)) > 0)
322 for (off = 0; nr; nr -= nw, off += nw)
323 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
325 if (nr < 0) {
/system/core/liblog/
H A Dlogd_write.c50 static int __write_to_log_init(log_id_t, struct iovec *vec, size_t nr);
51 static int (*write_to_log)(log_id_t, struct iovec *vec, size_t nr) = __write_to_log_init;
89 size_t nr __unused)
140 static int __write_to_log_kernel(log_id_t log_id, struct iovec *vec, size_t nr) argument
152 ret = fakeLogWritev(log_fd, vec, nr);
159 struct iovec newVec[nr + header_length];
217 for (payload_size = 0, i = header_length; i < nr + header_length; i++) {
252 ret = writev(logd_fd, newVec, nr + header_length);
285 static int __write_to_log_init(log_id_t log_id, struct iovec *vec, size_t nr) argument
309 return write_to_log(log_id, vec, nr);
[all...]
H A Dlogd_write_kern.c58 static int __write_to_log_init(log_id_t, struct iovec *vec, size_t nr);
59 static int (*write_to_log)(log_id_t, struct iovec *vec, size_t nr) = __write_to_log_init;
91 size_t nr __unused)
96 static int __write_to_log_kernel(log_id_t log_id, struct iovec *vec, size_t nr) argument
111 ret = log_writev(log_fd, vec, nr);
120 static int __write_to_log_init(log_id_t log_id, struct iovec *vec, size_t nr) argument
154 return write_to_log(log_id, vec, nr);
/system/core/toolbox/
H A Diftop.c104 int ret, nr, fd; local
140 for (nr = 0; nr < MAX_IF; nr++) {
172 nr++;
185 return nr;
196 static int print_interfaces(struct if_stats *old, struct if_stats *new, int nr) argument
200 while (nr--) {
265 int nr; local
268 nr
[all...]
/system/media/audio_utils/
H A Dprimitives.c28 int32_t nr = r >> 12; local
30 r = clamp16(nr);
/system/extras/f2fs_utils/
H A Df2fs_sparseblock.c472 int f2fs_test_bit(unsigned int nr, const char *p) argument
477 addr += (nr >> 3);
478 mask = 1 << (7 - (nr & 0x07));

Completed in 1749 milliseconds