Lines Matching defs:fx
353 struct funix *fx, *fx1;
430 if ((fx = malloc(sizeof(struct funix))) == NULL)
432 fx->s = -1;
433 fx->name = name;
434 fx->mode = mode;
435 STAILQ_INSERT_TAIL(&funixes, fx, next);
531 STAILQ_FOREACH_SAFE(fx, &funixes, next, fx1) {
532 (void)unlink(fx->name);
535 (void)strlcpy(sunx.sun_path, fx->name, sizeof(sunx.sun_path));
536 fx->s = socket(PF_LOCAL, SOCK_DGRAM, 0);
537 if (fx->s < 0 ||
538 bind(fx->s, (struct sockaddr *)&sunx, SUN_LEN(&sunx)) < 0 ||
539 chmod(fx->name, fx->mode) < 0) {
541 "cannot create %s", fx->name);
543 dprintf("cannot create %s (%d)\n", fx->name, errno);
544 if (fx == &funix_default || fx == &funix_secure)
547 STAILQ_REMOVE(&funixes, fx, funix, next);
550 double_rbuf(fx->s);
602 STAILQ_FOREACH(fx, &funixes, next)
603 if (fx->s > fdsrmax)
604 fdsrmax = fx->s;
628 STAILQ_FOREACH(fx, &funixes, next)
629 FD_SET(fx->s, fdsr);
668 STAILQ_FOREACH(fx, &funixes, next) {
669 if (FD_ISSET(fx->s, fdsr)) {
671 l = recvfrom(fx->s, line, MAXLINE, 0,
1502 struct funix *fx;
1524 STAILQ_FOREACH(fx, &funixes, next)
1525 (void)unlink(fx->name);