Lines Matching refs:sd
43 int sd;
381 if (fnode->sd >= 0) {
382 close(fnode->sd);
442 tsd->sd = socket(AF_UNIX, SOCK_DGRAM, 0);
443 if (tsd->sd < 0) {
448 if (bind(tsd->sd, (struct sockaddr *) &tsd->sdu, sizeof(tsd->sdu))) {
450 close(tsd->sd);
486 for (tsd = TT.lsocks; tsd; tsd = tsd->next) FD_SET(tsd->sd, &rfds);
525 int sd = tsd->sd;
526 if (FD_ISSET(sd, &rfds)) {
527 int len = read(sd, buffer, 1023); //buffer is of 1K, hence readingonly 1023 bytes, 1 for NUL