Lines Matching refs:fdp
817 int fdp[3][2]; in uncompressbuf() local
847 for (i = 0; i < __arraycount(fdp); i++) in uncompressbuf()
848 fdp[i][0] = fdp[i][1] = -1; in uncompressbuf()
864 if ((fd == -1 && file_pipe_closexec(fdp[STDIN_FILENO]) == -1) || in uncompressbuf()
865 file_pipe_closexec(fdp[STDOUT_FILENO]) == -1 || in uncompressbuf()
866 file_pipe_closexec(fdp[STDERR_FILENO]) == -1) { in uncompressbuf()
867 closep(fdp[STDIN_FILENO]); in uncompressbuf()
868 closep(fdp[STDOUT_FILENO]); in uncompressbuf()
892 if (copydesc(STDIN_FILENO, fdp[STDIN_FILENO][0])) in uncompressbuf()
893 (void) close(fdp[STDIN_FILENO][0]); in uncompressbuf()
894 if (fdp[STDIN_FILENO][1] > 2) in uncompressbuf()
895 (void) close(fdp[STDIN_FILENO][1]); in uncompressbuf()
900 if (copydesc(STDOUT_FILENO, fdp[STDOUT_FILENO][1])) in uncompressbuf()
901 (void) close(fdp[STDOUT_FILENO][1]); in uncompressbuf()
902 if (fdp[STDOUT_FILENO][0] > 2) in uncompressbuf()
903 (void) close(fdp[STDOUT_FILENO][0]); in uncompressbuf()
906 if (copydesc(STDERR_FILENO, fdp[STDERR_FILENO][1])) in uncompressbuf()
907 (void) close(fdp[STDERR_FILENO][1]); in uncompressbuf()
908 if (fdp[STDERR_FILENO][0] > 2) in uncompressbuf()
909 (void) close(fdp[STDERR_FILENO][0]); in uncompressbuf()
920 for (i = 1; i < __arraycount(fdp); i++) in uncompressbuf()
921 closefd(fdp[i], 1); in uncompressbuf()
924 closefd(fdp[STDIN_FILENO], 0); in uncompressbuf()
925 writepid = writechild(fdp[STDIN_FILENO][1], old, *n); in uncompressbuf()
926 closefd(fdp[STDIN_FILENO], 1); in uncompressbuf()
936 r = sread(fdp[STDOUT_FILENO][0], *newch, bytes_max, 0); in uncompressbuf()
938 DPRINTF("Read stdout failed %d (%s)\n", fdp[STDOUT_FILENO][0], in uncompressbuf()
943 (r = sread(fdp[STDERR_FILENO][0], *newch, bytes_max, 0)) > 0) in uncompressbuf()
961 closefd(fdp[STDIN_FILENO], 1); in uncompressbuf()
962 closefd(fdp[STDOUT_FILENO], 0); in uncompressbuf()
963 closefd(fdp[STDERR_FILENO], 0); in uncompressbuf()
986 closefd(fdp[STDIN_FILENO], 0); //why? it is already closed here! in uncompressbuf()