rem: struct io_context *ioContext = get_current_io_context(true); struct file_descriptor *descriptor = get_fd(ioContext, fd); int status;
add: struct io_context *io = get_current_io_context(true); struct file_descriptor *descriptor = get_fd(io, fd);
context: sys_close(int fd){	struct io_context *ioContext = get_current_io_context(true);	struct file_descriptor *descriptor = get_fd(ioContext, fd);	int status;	if (descriptor == NULL)		return EBADF;	if (descriptor->ops->fd_close)		status = descriptor->ops->fd_close(descriptor, fd, ioContext);	else		status = EOPNOTSUPP;	put_fd(descriptor);	return status;}