diff options
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -5191,7 +5191,7 @@ static void clear_codeconv(rb_io_t *fptr); static void fptr_finalize_flush(rb_io_t *fptr, int noraise, int keepgvl, - struct list_head *busy) + struct ccan_list_head *busy) { VALUE err = Qnil; int fd = fptr->fd; @@ -5233,7 +5233,7 @@ fptr_finalize_flush(rb_io_t *fptr, int noraise, int keepgvl, // Ensure waiting_fd users do not hit EBADF. if (busy) { // Wait for them to exit before we call close(). - do rb_thread_schedule(); while (!list_empty(busy)); + do rb_thread_schedule(); while (!ccan_list_empty(busy)); } // Disable for now. @@ -5378,16 +5378,16 @@ rb_io_memsize(const rb_io_t *fptr) # define KEEPGVL FALSE #endif -int rb_notify_fd_close(int fd, struct list_head *); +int rb_notify_fd_close(int fd, struct ccan_list_head *); static rb_io_t * io_close_fptr(VALUE io) { rb_io_t *fptr; VALUE write_io; rb_io_t *write_fptr; - struct list_head busy; + struct ccan_list_head busy; - list_head_init(&busy); + ccan_list_head_init(&busy); write_io = GetWriteIO(io); if (io != write_io) { write_fptr = RFILE(write_io)->fptr; |
