Home | History | Annotate | Download | only in huntd

Lines Matching defs:newsock

61 	int newsock;
76 newsock = accept(huntsock, (struct sockaddr *)&newaddr, &socklen);
77 if (newsock < 0) {
112 (void) write(newsock, &version, sizeof(version));
113 (void) read(newsock, &uid, sizeof(uid));
115 (void) read(newsock, name, sizeof(name));
116 (void) read(newsock, &team, 1);
117 (void) read(newsock, &enter_status, sizeof(enter_status));
119 (void) read(newsock, Ttyname, sizeof(Ttyname));
120 (void) read(newsock, &mode, sizeof(mode));
133 flags = fcntl(newsock, F_GETFL, 0);
135 (void) fcntl(newsock, F_SETFL, flags);
161 while ((n = read(newsock, buf, BUFSIZ)) > 0)
170 (void) close(newsock);
181 (void) write(newsock, &socklen,
183 (void) close(newsock);
193 (void) write(newsock, &socklen,
195 (void) close(newsock);
204 pp->p_output = fdopen(newsock, "w");
206 pp->p_fd = newsock;
207 fdset[i].fd = newsock;