# file_read_cancel

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L794
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-file_read_cancel/

```c
void file_read_cancel(struct client_files *files, struct imsg *imsg)
```

## Parameters

- `files` (`struct client_files *`)
- `imsg` (`struct imsg *`)

## Called by

- [`client_dispatch_wait`](/en/tmux/latest/reference/c-function-client-c-client_dispatch_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L703)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L801)
- [`file_read_error_callback`](/en/tmux/latest/reference/c-function-file-c-file_read_error_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L807)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L805)

## Referenced declarations

- [`client_files`](/en/tmux/latest/reference/c-struct-client_files/) (struct)
- [`client_file.stream`](/en/tmux/latest/reference/c-struct-client_file-stream/) (attribute)
- [`msg_read_cancel.stream`](/en/tmux/latest/reference/c-struct-msg_read_cancel-stream/) (attribute)
