Lines Matching refs:out
910 int sh_coaccept(Shell_t *shp,int *pv,int out)
917 if((pv[out]=sh_fcntl(fd,F_DUPFD,10)) >=10)
920 pv[out] = sh_iomovefd(fd);
922 VALIDATE_FD(shp, pv[out]);
924 if(fcntl(pv[out],F_SETFD,FD_CLOEXEC) >=0)
925 shp->fdstatus[pv[out]] |= IOCLEX;
926 shp->fdstatus[pv[out]] = (out?IOWRITE:IOREAD);
927 shp->fdstatus[pv[out]] |= IONOSEEK;
928 sh_subsavefd(pv[out]);
930 shutdown(pv[out],out?SHUT_RD:SHUT_WR);
935 int sh_copipe(Shell_t *shp, int *pv, int out)
940 if ((pv[out] = socket (AF_INET, SOCK_STREAM, 0)) < 0)
949 while ((r=bind (pv[out], (struct sockaddr *) &sin, slen)) == -1 && errno==EADDRINUSE);
950 if(r<0 || listen(pv[out],5) <0)
952 close(pv[out]);
955 fcntl(pv[out],F_SETFD,FD_CLOEXEC);
957 VALIDATE_FD(shp, pv[out]);
959 shp->fdstatus[pv[out]] |= IOCLEX;
960 pv[1-out] = -1;
1873 * called when slowread times out
2124 /* print out line number if not !! */