# fdforkpty

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/compat.h#L368
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-fdforkpty/

```c
pid_t fdforkpty(int, int *, char *, struct termios *, struct winsize *)
```

## Parameters

- `` (`int`)
- `` (`int *`)
- `` (`char *`)
- `` (`struct termios *`)
- `` (`struct winsize *`)

## Called by

- [`job_run`](/en/tmux/3.2a/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/job.c#L97)
- [`spawn_pane`](/en/tmux/3.2a/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L362)
