Lines Matching refs:fds
83 static int open_pipe(int *fds);
1318 open_pipe(int *fds) /* O - Pipe file descriptors (2) */
1324 if (pipe(fds))
1326 fds[0] = -1;
1327 fds[1] = -1;
1336 if (fcntl(fds[0], F_SETFD, fcntl(fds[0], F_GETFD) | FD_CLOEXEC))
1338 close(fds[0]);
1339 close(fds[1]);
1341 fds[0] = -1;
1342 fds[1] = -1;
1347 if (fcntl(fds[1], F_SETFD, fcntl(fds[1], F_GETFD) | FD_CLOEXEC))
1349 close(fds[0]);
1350 close(fds[1]);
1352 fds[0] = -1;
1353 fds[1] = -1;