Lines Matching refs:newsock
57 int newsock;
77 newsock = accept(Socket, (struct sockaddr *) &sockstruct, &socklen);
78 if (newsock < 0)
97 (void) write(newsock, &version, LONGLEN);
98 (void) read(newsock, &uid, LONGLEN);
100 (void) read(newsock, name, NAMELEN);
101 (void) read(newsock, &team, 1);
102 (void) read(newsock, &enter_status, LONGLEN);
104 (void) read(newsock, Ttyname, NAMELEN);
105 (void) read(newsock, &mode, sizeof mode);
118 flags = fcntl(newsock, F_GETFL, 0);
120 (void) fcntl(newsock, F_SETFL, flags);
147 while ((n = read(newsock, buf, BUFSIZ)) > 0)
156 (void) close(newsock);
168 (void) write(newsock, &socklen,
170 (void) close(newsock);
180 (void) write(newsock, &socklen,
182 (void) close(newsock);
191 pp->p_output = fdopen(newsock, "w");
193 pp->p_fd = newsock;
194 fdset[i].fd = newsock;