Lines Matching refs:sd
44 int sd;
382 if (fnode->sd >= 0) {
383 close(fnode->sd);
443 tsd->sd = socket(AF_UNIX, SOCK_DGRAM, 0);
444 if (tsd->sd < 0) {
449 if (bind(tsd->sd, (struct sockaddr *) &tsd->sdu, sizeof(tsd->sdu))) {
451 close(tsd->sd);
487 for (tsd = TT.lsocks; tsd; tsd = tsd->next) FD_SET(tsd->sd, &rfds);
526 int sd = tsd->sd;
527 if (FD_ISSET(sd, &rfds)) {
528 int len = read(sd, buffer, 1023); //buffer is of 1K, hence readingonly 1023 bytes, 1 for NUL