Lines Matching defs:InOut
89 int InOut; /* socket for stdin/stdout */
166 (void) send(InOut, "", 1, MSG_OOB);
181 if (ioctl(InOut, SIOCATMARK, &atmark) < 0) {
187 (void) read(InOut, waste, sizeof (waste));
189 (void) recv(InOut, &mark, 1, MSG_OOB);
426 rst.rst_port0 = makeport(&InOut);
536 doaccept(&InOut);
537 (void) fcntl(InOut, F_SETOWN, getpid());
539 FD_SET(InOut, &remmask);
558 shutdown(InOut, 1); /* 1=> further sends disallowed */
567 while (FD_ISSET(InOut, &remmask) || FD_ISSET(Err, &remmask)) {
568 if (FD_ISSET(InOut, &remmask))
569 FD_SET(InOut, &selmask);
571 FD_CLR(InOut, &selmask);
589 if (FD_ISSET(InOut, &selmask)) {
591 cc = read(InOut, buf, sizeof buf);
595 FD_CLR(InOut, &remmask);
611 write(InOut, buf, cc);
620 shutdown(InOut, 1); /* further sends disallowed */
625 close(InOut);