# environ_for_session

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

```c
struct environ * environ_for_session(struct session *s, int no_TERM)
```

## Parameters

- `s` (`struct session *`)
- `no_TERM` (`int`)

## Called by

- [`job_run`](/en/tmux/latest/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/job.c#L92)
- [`spawn_pane`](/en/tmux/latest/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L322)

## Calls

- [`environ_clear`](/en/tmux/latest/reference/c-function-environ_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L272)
- [`environ_copy`](/en/tmux/latest/reference/c-function-environ_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L259)
- [`environ_create`](/en/tmux/latest/reference/c-function-environ_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L258)
- [`environ_set`](/en/tmux/latest/reference/c-function-environ_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L265)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L264)

## Other function references

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

## Referenced declarations

- [`environ`](/en/tmux/latest/reference/c-struct-environ/) (struct)
- [`session.environ`](/en/tmux/latest/reference/c-struct-session-environ/) (attribute)
- [`global_environ`](/en/tmux/latest/reference/c-variable-global_environ/) (attribute)
- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`session.id`](/en/tmux/latest/reference/c-struct-session-id/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`socket_path`](/en/tmux/latest/reference/c-variable-socket_path/) (attribute)
