# file_push

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

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

## Parameters

- `cf` (`struct client_file *`)

## Called by

- [`file_error`](/en/tmux/latest/reference/c-function-file_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L284)
- [`file_print_buffer`](/en/tmux/latest/reference/c-function-file_print_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L254)
- [`file_push_cb`](/en/tmux/latest/reference/c-function-file-c-file_push_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L468)
- [`file_vprint`](/en/tmux/latest/reference/c-function-file_vprint/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L227)
- [`file_write_ready`](/en/tmux/latest/reference/c-function-file_write_ready/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L827)

## Calls

- [`file_fire_done`](/en/tmux/latest/reference/c-function-file_fire_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L504)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L496)
- [`proc_send`](/en/tmux/latest/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L491)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L480)
- [`xrealloc`](/en/tmux/latest/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L488)

## Other function references

- [`file_push_cb`](/en/tmux/latest/reference/c-function-file-c-file_push_cb/) (function)

## Referenced declarations

- [`client_file.buffer`](/en/tmux/latest/reference/c-struct-client_file-buffer/) (attribute)
- [`client_file`](/en/tmux/latest/reference/c-struct-client_file/) (struct)
- [`MSG_WRITE`](/en/tmux/latest/reference/c-enum-msgtype-msg_write/) (constant)
- [`MSG_WRITE_CLOSE`](/en/tmux/latest/reference/c-enum-msgtype-msg_write_close/) (constant)
- [`client_file.peer`](/en/tmux/latest/reference/c-struct-client_file-peer/) (attribute)
- [`client_file.references`](/en/tmux/latest/reference/c-struct-client_file-references/) (attribute)
- [`client_file.stream`](/en/tmux/latest/reference/c-struct-client_file-stream/) (attribute)
- [`msg_write_close.stream`](/en/tmux/latest/reference/c-struct-msg_write_close-stream/) (attribute)
