Lines Matching defs:args

331 static void thread_delay_close(struct thread_args *args) {
333 sleep(args->delay);
334 _close(args->fd, args->type);
338 static void thread_poll(void *args) {
339 int fd = (int)args;
348 static void thread_read(void *args) {
349 int fd = (int)args;
355 static void thread_pollin(void *args) {
356 int fd = (int)args;
372 static void thread_accept(struct thread_args *args) {
374 sleep(args->delay);
375 _accept(args->fd, args->type);
379 static void thread_connect(struct thread_args *args) {
381 sleep(args->delay);
382 _connect(args->fd, args->type);
386 static void thread_delay_close_write(struct thread_args *args) {
388 sleep(args->delay);
389 _close(args->fd, args->type);
390 sleep(args->delay);
391 _write(args->fd, args->type);
395 static void thread_accept_write(struct thread_args *args) {
397 sleep(args->delay);
398 _accept(args->fd, args->type);
399 sleep(args->delay);
400 _write(args->fd, args->type);
404 static void thread_delay_connect(struct thread_args *args) {
406 sleep(args->delay);
407 args->fd = _socket(args->type);
408 _connect(args->fd, args->type);
435 struct thread_args args = {-1, type, 1};
444 args.fd = fd;
445 pthread_create(&thread, NULL, (void *)thread_delay_close, (void *)&args);
460 struct thread_args args = {-1, type, 0};
469 args.fd = fd;
470 pthread_create(&thread, NULL, (void *)thread_accept, (void *)&args);
488 struct thread_args args = {-1, type, 0};
493 args.fd = fd;
494 pthread_create(&thread, NULL, (void *)thread_connect, (void *)&args);
513 struct thread_args args = {-1, type, 0};
543 struct thread_args args = {-1, type, 0};
571 struct thread_args args = {-1, type, 1};
580 args.fd = fd;
581 pthread_create(&thread, NULL, (void *)thread_delay_close_write, (void *)&args);