Lines Matching refs:type
51 int type;
67 static int _socket(int type) {
73 switch (type) {
120 static int _bind(int fd, int type) {
125 switch (type) {
157 static int _listen(int fd, int type) {
168 static int _accept(int fd, int type) {
173 switch (type) {
221 _accept(args->fd, args->type);
225 static int do_accept_shutdown(int type) {
228 struct thread_args args = {-1, type, 0};
230 fd = _socket(type);
233 if (_bind(fd, type) < 0) goto error;
235 if (_listen(fd, type) < 0) goto error;
263 enum sock_type type;
289 int type = -1;
297 type = type_table[i].type;
301 if (type == -1) {
307 printf("TYPE = %s ACTION = %s\n", type_table[type].name,
309 return (*action_table[i].ptr)(type);