pub fn did_close(&mut self, fd: i32, active_task: &mut dyn Task) {
        log!(LogDebug, "Close fd {}", fd);
        if fd >= SYSCALLBUF_FDS_DISABLED_SIZE && self.fds.contains_key(&fd) {
            self.fd_count_beyond_limit -= 1;
        }
        self.fds.remove(&fd);
        self.update_syscallbuf_fds_disabled(fd, active_task);
    }
/// DIFF NOTE: Additional param `active_task` to solve borrow issues.
DIFF NOTE: Additional param `active_task` to solve borrow issues.
DIFF NOTE : Additional param ` active_task ` to solve borrow issues .
pub fn did_close(&mut self, fd: i32, active_task: &mut dyn Task) {
        log!(LogDebug, "Close fd {}", fd);
        if fd >= SYSCALLBUF_FDS_DISABLED_SIZE && self.fds.contains_key(&fd) {
            self.fd_count_beyond_limit -= 1;
        }
        self.fds.remove(&fd);
        self.update_syscallbuf_fds_disabled(fd, active_task);
    }
pub fn did_close ( & mut self , fd : i32 , active_task : & mut dyn Task ) { log ! ( LogDebug " " fd ) ; if fd >= SYSCALLBUF_FDS_DISABLED_SIZE && self . fds . contains_key ( & fd ) { self . fd_count_beyond_limit -= 1 ; } self . fds . remove ( & fd ) ; self . update_syscallbuf_fds_disabled ( fd , active_task ) ; }
DIFF NOTE: Additional param `active_task` to solve borrow issues.
DIFF NOTE : Additional param ` active_task ` to solve borrow issues .
&mut self
fd
i32
active_task
&mut dyn Task