Lines Matching refs:curr
417 struct win_netmap_fd_list *curr; in win_insert_fd_record() local
419 for (curr = win_netmap_fd_list_head; curr; curr = curr->next) { in win_insert_fd_record()
420 if (fd == curr->win_netmap_fd) { in win_insert_fd_record()
424 curr = calloc(1, sizeof(*curr)); in win_insert_fd_record()
425 curr->next = win_netmap_fd_list_head; in win_insert_fd_record()
426 curr->win_netmap_fd = fd; in win_insert_fd_record()
427 curr->win_netmap_handle = IntToPtr(_get_osfhandle(fd)); in win_insert_fd_record()
428 win_netmap_fd_list_head = curr; in win_insert_fd_record()
434 struct win_netmap_fd_list *curr = win_netmap_fd_list_head; in win_remove_fd_record() local
436 for (; curr ; prev = curr, curr = curr->next) { in win_remove_fd_record()
437 if (fd != curr->win_netmap_fd) in win_remove_fd_record()
441 win_netmap_fd_list_head = curr->next; in win_remove_fd_record()
443 prev->next = curr->next; in win_remove_fd_record()
445 free(curr); in win_remove_fd_record()
454 struct win_netmap_fd_list *curr; in win_get_netmap_handle() local
456 for (curr = win_netmap_fd_list_head; curr; curr = curr->next) { in win_get_netmap_handle()
457 if (fd == curr->win_netmap_fd) { in win_get_netmap_handle()
458 return curr->win_netmap_handle; in win_get_netmap_handle()