Lines Matching defs:pos
80 size_t len, pos;
108 pos = 0;
109 while (pos < len) {
110 n = write(fd, cmd + pos, len - pos);
113 pos += n;
124 size_t pos, len, copysize;
139 pos = 0;
144 if (pos == 0 ||
145 (pos > 0 && memchr(buff + pos, '\n', len - pos) == NULL)) {
146 memmove(buff, buff + pos, len - pos);
147 len -= pos;
148 pos = 0;
183 if (pos == len)
188 for (; pos < len; pos++) {
189 if (isdigit(buff[pos])) {
190 status_running = status_running * 10 + (buff[pos] - '0');
201 switch (buff[pos]) {
216 pos++;
222 for (; pos < len; pos++) {
223 if (buff[pos] == '\n') {
224 pos++;