Lines Matching refs:envsize
803 u_int envsize; in child_set_env() local
836 envsize = *envsizep; in child_set_env()
837 if (i >= envsize - 1) { in child_set_env()
838 if (envsize >= 1000) in child_set_env()
840 envsize += 50; in child_set_env()
841 env = (*envp) = xreallocarray(env, envsize, sizeof(char *)); in child_set_env()
842 *envsizep = envsize; in child_set_env()
860 read_environment_file(char ***env, u_int *envsize, in read_environment_file() argument
894 child_set_env(env, envsize, cp, value); in read_environment_file()
921 read_etc_default_login(char ***env, u_int *envsize, uid_t uid) in read_etc_default_login() argument
942 child_set_env(env, envsize, "PATH", var); in read_etc_default_login()
955 copy_environment(char **source, char ***env, u_int *envsize) in copy_environment() argument
972 child_set_env(env, envsize, var_name, var_val); in copy_environment()
983 u_int i, envsize; in do_setup_env() local
991 envsize = 100; in do_setup_env()
992 env = xcalloc(envsize, sizeof(char *)); in do_setup_env()
1004 copy_environment(p, &env, &envsize); in do_setup_env()
1013 ssh_gssapi_do_child(&env, &envsize); in do_setup_env()
1018 child_set_env(&env, &envsize, s->env[i].name, s->env[i].val); in do_setup_env()
1020 child_set_env(&env, &envsize, "USER", pw->pw_name); in do_setup_env()
1021 child_set_env(&env, &envsize, "LOGNAME", pw->pw_name); in do_setup_env()
1023 child_set_env(&env, &envsize, "LOGIN", pw->pw_name); in do_setup_env()
1025 child_set_env(&env, &envsize, "HOME", pw->pw_dir); in do_setup_env()
1028 child_set_env(&env, &envsize, "PATH", _PATH_STDPATH); in do_setup_env()
1030 child_set_env(&env, &envsize, "PATH", getenv("PATH")); in do_setup_env()
1040 read_etc_default_login(&env, &envsize, pw->pw_uid); in do_setup_env()
1044 child_set_env(&env, &envsize, "PATH", in do_setup_env()
1052 child_set_env(&env, &envsize, "MAIL", buf); in do_setup_env()
1055 child_set_env(&env, &envsize, "SHELL", shell); in do_setup_env()
1059 child_set_env(&env, &envsize, "TZ", getenv("TZ")); in do_setup_env()
1070 child_set_env(&env, &envsize, str, str + i + 1); in do_setup_env()
1081 child_set_env(&env, &envsize, "SSH_CLIENT", buf); in do_setup_env()
1088 child_set_env(&env, &envsize, "SSH_CONNECTION", buf); in do_setup_env()
1091 child_set_env(&env, &envsize, "SSH_TTY", s->tty); in do_setup_env()
1093 child_set_env(&env, &envsize, "TERM", s->term); in do_setup_env()
1095 child_set_env(&env, &envsize, "DISPLAY", s->display); in do_setup_env()
1097 child_set_env(&env, &envsize, "SSH_ORIGINAL_COMMAND", in do_setup_env()
1102 child_set_env(&env, &envsize, "TMPDIR", cray_tmpdir); in do_setup_env()
1114 child_set_env(&env, &envsize, "KRB5CCNAME", cp); in do_setup_env()
1122 child_set_env(&env, &envsize, "AUTHSTATE", cp); in do_setup_env()
1123 read_environment_file(&env, &envsize, "/etc/environment"); in do_setup_env()
1128 child_set_env(&env, &envsize, "KRB5CCNAME", in do_setup_env()
1140 copy_environment(p, &env, &envsize); in do_setup_env()
1144 copy_environment(p, &env, &envsize); in do_setup_env()
1150 child_set_env(&env, &envsize, SSH_AUTHSOCKET_ENV_NAME, in do_setup_env()
1157 read_environment_file(&env, &envsize, buf); in do_setup_env()