Lines Matching defs:fx
354 struct funix *fx, *fx1;
431 if ((fx = malloc(sizeof(struct funix))) == NULL)
433 fx->s = -1;
434 fx->name = name;
435 fx->mode = mode;
436 STAILQ_INSERT_TAIL(&funixes, fx, next);
532 STAILQ_FOREACH_SAFE(fx, &funixes, next, fx1) {
533 (void)unlink(fx->name);
536 (void)strlcpy(sunx.sun_path, fx->name, sizeof(sunx.sun_path));
537 fx->s = socket(PF_LOCAL, SOCK_DGRAM, 0);
538 if (fx->s < 0 ||
539 bind(fx->s, (struct sockaddr *)&sunx, SUN_LEN(&sunx)) < 0 ||
540 chmod(fx->name, fx->mode) < 0) {
542 "cannot create %s", fx->name);
544 dprintf("cannot create %s (%d)\n", fx->name, errno);
545 if (fx == &funix_default || fx == &funix_secure)
548 STAILQ_REMOVE(&funixes, fx, funix, next);
552 increase_rcvbuf(fx->s);
603 STAILQ_FOREACH(fx, &funixes, next)
604 if (fx->s > fdsrmax)
605 fdsrmax = fx->s;
629 STAILQ_FOREACH(fx, &funixes, next)
630 FD_SET(fx->s, fdsr);
669 STAILQ_FOREACH(fx, &funixes, next) {
670 if (FD_ISSET(fx->s, fdsr)) {
672 l = recvfrom(fx->s, line, MAXLINE, 0,
1505 struct funix *fx;
1527 STAILQ_FOREACH(fx, &funixes, next)
1528 (void)unlink(fx->name);