HomeSort by: relevance | last modified time | path
    Searched defs:cli_fd (Results 1 - 2 of 2) sorted by relevancy

  /src/usr.sbin/apmd/
apmd.c 182 int cli_fd; local in function:handle_client
188 cli_fd = accept(sock_fd, (struct sockaddr *)&from, &fromlen);
189 if (cli_fd == -1) {
193 if (recv(cli_fd, &cmd, sizeof(cmd), 0) != sizeof(cmd)) {
194 (void) close(cli_fd);
199 close(cli_fd); /* terminate client */
216 if (send(cli_fd, &reply, sizeof(reply), 0) != sizeof(reply)) {
219 close(cli_fd);
apmd.c 182 int cli_fd; local in function:handle_client
188 cli_fd = accept(sock_fd, (struct sockaddr *)&from, &fromlen);
189 if (cli_fd == -1) {
193 if (recv(cli_fd, &cmd, sizeof(cmd), 0) != sizeof(cmd)) {
194 (void) close(cli_fd);
199 close(cli_fd); /* terminate client */
216 if (send(cli_fd, &reply, sizeof(reply), 0) != sizeof(reply)) {
219 close(cli_fd);

Completed in 25 milliseconds