Lines Matching refs:bufpos
48 int bufpos; /* need to be able to hold -1 */ in shell_builtin_read() local
171 bufpos = 0; in shell_builtin_read()
177 if ((bufpos & 0xff) == 0) in shell_builtin_read()
178 buffer = xrealloc(buffer, bufpos + 0x101); in shell_builtin_read()
205 if (read(fd, &buffer[bufpos], 1) != 1) { in shell_builtin_read()
211 c = buffer[bufpos]; in shell_builtin_read()
246 buffer[bufpos] = '\0'; in shell_builtin_read()
247 bufpos = 0; in shell_builtin_read()
256 bufpos++; in shell_builtin_read()
261 while (--bufpos >= 0 in shell_builtin_read()
262 && isspace(buffer[bufpos]) in shell_builtin_read()
263 && strchr(ifs, buffer[bufpos]) != NULL in shell_builtin_read()
267 buffer[bufpos + 1] = '\0'; in shell_builtin_read()
280 if (bufpos >= 0 in shell_builtin_read()
281 && strchr(ifs, buffer[bufpos]) != NULL in shell_builtin_read()
285 while (--bufpos >= 0 in shell_builtin_read()
286 && isspace(buffer[bufpos]) in shell_builtin_read()
287 && strchr(ifs, buffer[bufpos]) != NULL in shell_builtin_read()
292 if (strcspn(buffer, ifs) >= ++bufpos) { in shell_builtin_read()
295 buffer[bufpos] = '\0'; in shell_builtin_read()
306 buffer[bufpos] = '\0'; in shell_builtin_read()