# osdep_get_name

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/osdep-linux.c#L30
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-osdep_get_name/

```c
char * osdep_get_name(int fd, char *tty)
```

## Parameters

- `fd` (`int`)
- `tty` (`char *`)

## Called by

- [`format_cb_current_command`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_current_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L812)
- [`window_tree_search`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_search/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L848)

## Calls

- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/osdep-linux.c#L41)
- [`xrealloc`](/en/tmux/3.2a/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/osdep-linux.c#L53)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
