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

/system/media/audio_utils/
H A Dprimitives.c26 int32_t nr = r >> 12; local
28 r = clamp16(nr);
/system/core/init/
H A Dueventd.c53 int nr; local
94 nr = poll(&ufd, 1, -1);
95 if (nr <= 0)
H A Ddevices.c668 ssize_t nr; local
670 nr = read(fw_fd, buf, sizeof(buf));
671 if(!nr)
673 if(nr < 0) {
678 len_to_copy -= nr;
679 while (nr > 0) {
682 nw = write(data_fd, buf + nw, nr);
687 nr -= nw;
H A Dinit.c962 int nr, i, timeout = -1; local
1009 nr = poll(ufds, fd_count, timeout);
1010 if (nr <= 0)
/system/core/toolbox/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/liblog/
H A Dlogd_write.c45 static int __write_to_log_init(log_id_t, struct iovec *vec, size_t nr);
46 static int (*write_to_log)(log_id_t, struct iovec *vec, size_t nr) = __write_to_log_init;
73 static int __write_to_log_null(log_id_t log_fd, struct iovec *vec, size_t nr) argument
78 static int __write_to_log_kernel(log_id_t log_id, struct iovec *vec, size_t nr) argument
90 ret = log_writev(log_fd, vec, nr);
96 static int __write_to_log_init(log_id_t log_id, struct iovec *vec, size_t nr) argument
130 return write_to_log(log_id, vec, nr);
/system/core/toolbox/
H A Dcat.c158 ssize_t nr, nw, off; local
173 while ((nr = read(rfd, buf, bsize)) > 0)
174 for (off = 0; nr; nr -= nw, off += nw)
175 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
180 if (nr < 0) {
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...]
H A Ddd.c589 int bcnt, cnt, nr, warned; local
610 if ((nr = read(in.fd, in.db, bcnt)) > 0) {
612 if (!(bcnt -= nr)) {
621 if (nr == 0) {
/system/core/sh/
H A Dinput.c185 int nr; local
198 nr = 0;
200 nr = el_len;
201 if (nr > BUFSIZ - 8)
202 nr = BUFSIZ - 8;
203 memcpy(buf, rl_cp, nr);
204 if (nr != el_len) {
205 el_len -= nr;
206 rl_cp += nr;
233 nr
[all...]

Completed in 148 milliseconds