# file_push

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L442
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-file_push/

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

## Parameters

- `cf` (`struct client_file *`)

## Called by

- [`file_error`](/en/tmux/3.2a/reference/c-function-file_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L274)
- [`file_print_buffer`](/en/tmux/3.2a/reference/c-function-file_print_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L244)
- [`file_push_cb`](/en/tmux/3.2a/reference/c-function-file-c-file_push_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L436)
- [`file_vprint`](/en/tmux/3.2a/reference/c-function-file_vprint/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L217)
- [`file_write_ready`](/en/tmux/3.2a/reference/c-function-file_write_ready/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L773)

## Calls

- [`file_fire_done`](/en/tmux/3.2a/reference/c-function-file_fire_done/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L472)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L464)
- [`proc_send`](/en/tmux/3.2a/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L459)
- [`xmalloc`](/en/tmux/3.2a/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L448)
- [`xrealloc`](/en/tmux/3.2a/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L456)

## Other function references

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

## Referenced declarations

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