# file_cancel

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

```c
void file_cancel(struct client_file *cf)
```

## Parameters

- `cf` (`struct client_file *`)

## Called by

- [`window_pane_input_callback`](/en/tmux/latest/reference/c-function-window-c-window_pane_input_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1805)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L451)
- [`proc_send`](/en/tmux/latest/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L458)

## Referenced declarations

- [`client_file`](/en/tmux/latest/reference/c-struct-client_file/) (struct)
- [`client_file.closed`](/en/tmux/latest/reference/c-struct-client_file-closed/) (attribute)
- [`MSG_READ_CANCEL`](/en/tmux/latest/reference/c-enum-msgtype-msg_read_cancel/) (constant)
- [`client_file.peer`](/en/tmux/latest/reference/c-struct-client_file-peer/) (attribute)
- [`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)
