# file_write_close

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

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

## Parameters

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

## Called by

- [`client_dispatch_wait`](/en/tmux/3.2a/reference/c-function-client-c-client_dispatch_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L701)

## Calls

- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L626)
- [`file_free`](/en/tmux/3.2a/reference/c-function-file_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L638)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L630)

## Referenced declarations

- [`client_files`](/en/tmux/3.2a/reference/c-struct-client_files/) (struct)
- [`client_file.event`](/en/tmux/3.2a/reference/c-struct-client_file-event/) (attribute)
- [`client_file.fd`](/en/tmux/3.2a/reference/c-struct-client_file-fd/) (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)
