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

  /src/dist/pf/sbin/pflogd/
privsep.c 77 int i, fd, socks[2], cmd; local in function:priv_init
85 if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, socks) == -1)
123 close(socks[0]);
124 priv_fd = socks[1];
138 close(socks[1]);
141 if (may_read(socks[0], &cmd, sizeof(int)))
147 must_read(socks[0], &snaplen, sizeof(int));
156 must_write(socks[0], &ret, sizeof(int));
167 send_fd(socks[0], fd);
180 must_write(socks[0], &ret, sizeof(int))
    [all...]
  /src/usr.sbin/lpr/lpd/
lpd.c 149 struct pollfd *socks; local in function:main
284 socks = socksetup(PF_UNSPEC, options, port, &nfds);
315 rv = poll(socks, nfds, INFTIM);
323 if (socks[i].revents & POLLIN) {
325 s = accept(socks[i].fd,
343 (void)close(socks[i].fd);
711 struct pollfd *socks, *newsocks; local in function:socksetup
716 socks = malloc(1 * sizeof(socks[0]));
717 if (!socks) {
    [all...]
  /src/libexec/identd/
identd.c 97 int IPv4or6, ch, error, i, *socks, timeout; local in function:main
108 socks = NULL;
250 socks = socketsetup(address, portno, IPv4or6);
270 rfds = malloc(*socks * sizeof(struct pollfd));
273 nfds = *socks;
275 rfds[i].fd = socks[i+1];
584 int error, maxs, *s, *socks; local in function:socketsetup
602 socks = malloc((maxs + 1) * sizeof(int));
603 if (socks == NULL) {
608 *socks = 0
    [all...]
  /src/usr.sbin/syslogd/
tls.c 824 struct socketEvent *s, *socks; local in function:socksetup_tls
846 socks = malloc((maxs+1) * sizeof(*socks));
847 if (!socks) {
852 socks->fd = 0; /* num of sockets counter at start of array */
853 s = socks + 1;
890 socks->fd = socks->fd + 1; /* num counter */
894 if (socks->fd == 0) {
895 free (socks);
    [all...]
syslogd.c 186 int SecureMode = 0; /* listen only on unix domain socks */
4127 struct socketEvent *s, *socks; local in function:socksetup
4146 socks = calloc(maxs+1, sizeof(*socks));
4147 if (!socks) {
4152 socks->fd = 0; /* num of sockets counter at start of array */
4153 s = socks + 1;
4187 socks->fd++; /* num counter */
4193 if (socks->fd == 0) {
4194 free (socks);
    [all...]
  /src/libexec/ftpd/
ftpd.c 510 int error, fd, i, n, *socks; local in function:main
540 socks = malloc(n * sizeof(int));
542 if (socks == NULL || fds == NULL) {
548 socks[n] = socket(res->ai_family, res->ai_socktype,
550 if (socks[n] == -1)
552 (void)setsockopt(socks[n], SOL_SOCKET, SO_REUSEADDR,
554 if (bind(socks[n], res->ai_addr, res->ai_addrlen)
556 (void)close(socks[n]);
559 if (listen(socks[n], 12) == -1) {
560 (void)close(socks[n])
    [all...]

Completed in 17 milliseconds