Lines Matching defs:it

6    This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
11 This program is distributed in the hope that it will be useful,
22 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
71 _ctrl_slave_t *it, *ns;
79 it = _ctrl_slaves;
82 while (it && it->next)
83 it = it->next;
86 if (it)
88 it->next = ns;
89 ns->prev = it;
101 _ctrl_slave_t *it;
106 it = _ctrl_slaves;
109 while (it->next && it->sock != sock)
110 it = it->next;
112 if (it->sock == sock)
119 if (it == _ctrl_slaves)
121 if (it->next)
122 _ctrl_slaves = it->next;
127 if (it->prev)
129 (it->prev)->next = it->next;
130 if (it->next)
131 (it->next)->prev = it->prev;
133 else if (it->next)
134 (it->next)->prev = NULL;
136 xfree(it);
354 _ctrl_slave_t *it;
363 it = _ctrl_slaves;
364 while (it)
366 FD_SET(it->sock, rfds);
367 *n = MAX(*n, it->sock);
368 it = it->next;
378 _ctrl_slave_t *it;
402 it = _ctrl_slaves;
403 while (it)
405 if (FD_ISSET(it->sock, rfds))
407 offs = strlen(it->linebuf);
408 res = recv(it->sock, it->linebuf + offs, CTRL_LINEBUF_SIZE - offs, 0);
409 FD_CLR(it->sock, rfds);
412 if (it->linebuf[CTRL_LINEBUF_SIZE - 1] != '\0' &&
413 it->linebuf[CTRL_LINEBUF_SIZE - 1] != '\n')
415 _ctrl_slave_disconnect(it->sock);
423 if ((p = strchr(it->linebuf, '\n')) == NULL)
430 if (p > it->linebuf && *(p - 1) != '\\')
441 _ctrl_dispatch_command(it);
442 memset(it->linebuf, 0, CTRL_LINEBUF_SIZE);
447 _ctrl_slave_disconnect(it->sock);
451 it = it->next;