Lines Matching refs:i
201 fail_output (FILE **descriptors, char **files, int i) in fail_output() argument
207 if (descriptors[i] == stdout) in fail_output()
213 w_errno, "%s", quotef (files[i])); in fail_output()
215 descriptors[i] = nullptr; in fail_output()
232 int i; in tee_files() local
258 for (i = 1; i <= nfiles; i++) in tee_files()
261 descriptors[i] = fopen (files[i], mode_string); in tee_files()
262 if (descriptors[i] == nullptr) in tee_files()
265 out_pollable[i] = false; in tee_files()
268 errno, "%s", quotef (files[i])); in tee_files()
274 out_pollable[i] = iopoll_output_ok (fileno (descriptors[i])); in tee_files()
275 setvbuf (descriptors[i], nullptr, _IONBF, 0); in tee_files()
313 for (i = 0; i <= nfiles; i++) in tee_files()
314 if (descriptors[i] in tee_files()
315 && ! fwrite_wait (buffer, bytes_read, descriptors[i])) in tee_files()
317 if (fail_output (descriptors, files, i)) in tee_files()
320 if (i == first_out) in tee_files()
332 for (i = 1; i <= nfiles; i++) in tee_files()
333 if (descriptors[i] && ! fclose_wait (descriptors[i])) in tee_files()
335 error (0, errno, "%s", quotef (files[i])); in tee_files()