Lines Matching refs:l
55 struct fd_list *l, *last = NULL; in remove_control_data() local
57 for (l = fds; l != NULL; l = l->next) { in remove_control_data()
58 if (l == arg) { in remove_control_data()
59 close(l->fd); in remove_control_data()
60 delete_event(l->fd); in remove_control_data()
62 fds = l->next; in remove_control_data()
64 last->next = l->next; in remove_control_data()
65 free(l); in remove_control_data()
68 last = l; in remove_control_data()
75 struct fd_list *l = arg; in handle_control_data() local
81 bytes = read(l->fd, buffer, sizeof(buffer) - 1); in handle_control_data()
83 remove_control_data(l); in handle_control_data()
96 handle_args(l, argc, argvp); in handle_control_data()
105 struct fd_list *l; in handle_control() local
111 l = xmalloc(sizeof(*l)); in handle_control()
112 l->fd = f; in handle_control()
113 l->listener = 0; in handle_control()
114 l->next = fds; in handle_control()
115 fds = l; in handle_control()
116 add_event(l->fd, handle_control_data, l); in handle_control()
156 struct fd_list *l, *ll; in stop_control() local
165 l = fds; in stop_control()
166 while (l != NULL) { in stop_control()
167 ll = l->next; in stop_control()
168 delete_event(l->fd); in stop_control()
169 shutdown(l->fd, SHUT_RDWR); in stop_control()
170 free(l); in stop_control()
171 l = ll; in stop_control()