Home
last modified time | relevance | path

Searched refs:envp (Results 1 – 25 of 101) sorted by relevance

12345

/titanic_44/usr/src/lib/libkvm/common/
H A Dkvm_getcmd.c88 char **envp = NULL; in kvm_getcmd32() local
149 if (env && (envp = calloc(1, esize + sizeof (uintptr_t))) == NULL) { in kvm_getcmd32()
178 if (envp) { in kvm_getcmd32()
180 envp[i] = (char *)(uintptr_t)(*(caddr32_t *)stackp); in kvm_getcmd32()
183 envp[envc] = 0; in kvm_getcmd32()
198 if (envp) in kvm_getcmd32()
199 (void) memcpy(envp + eptrcount, (void *)stackp, strpoolsz); in kvm_getcmd32()
225 if (envp) { in kvm_getcmd32()
226 char *envp_null = (char *)envp + esize; in kvm_getcmd32()
229 reloc = (char *)(envp + eptrcount) - (char *) in kvm_getcmd32()
[all …]
H A Dtest.c83 main(int argc, char *argv[], char *envp[]) in main() argument
92 for (envc = 0; *envp++ != NULL; envc++) in main()
94 envp -= 2; in main()
95 ccnt = (*envp - *argv) + strlen(*envp) + 1; in main()
98 &argv[0], *envp + strlen(*envp)); in main()
/titanic_44/usr/src/lib/efcode/extend/
H A Dfthread.c33 static int envp; variable
60 envp = (envp+1)%4; in do_switch()
61 env = envs[envp]; in do_switch()
71 destroy_environment(envs[envp]); in do_release()
72 envs[envp] = NULL; in do_release()
74 envp = (envp+1)%4; in do_release()
75 env = envs[envp]; in do_release()
90 envp = 0; in _init()
/titanic_44/usr/src/uts/sun4u/montecarlo/io/
H A Dpcf8574_nct.c765 envctrl_pwrsupp_t *envp = in pcf8574_intr() local
767 dev_presence = envp->ps_present; in pcf8574_intr()
771 envctrl_fantray_t *envp = in pcf8574_intr() local
773 dev_presence = envp->fan_present; in pcf8574_intr()
800 envctrl_pwrsupp_t *envp = in pcf8574_intr() local
808 envp->ps_ok = PCF8574_PS_FAULT(value); in pcf8574_intr()
809 envp->temp_ok = PCF8574_PS_TEMPOK(value); in pcf8574_intr()
810 envp->psfan_ok = PCF8574_PS_FANOK(value); in pcf8574_intr()
811 envp->on_state = PCF8574_PS_ONOFF(value); in pcf8574_intr()
812 envp->ps_ver = PCF8574_PS_TYPE(value); in pcf8574_intr()
[all …]
/titanic_44/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c435 ndmp_pval *envp = envs; in ndmpd_config_get_butype_info_v3() local
450 NDMP_SETENV(envp, "PREFIX", ""); in ndmpd_config_get_butype_info_v3()
451 NDMP_SETENV(envp, "TYPE", ""); in ndmpd_config_get_butype_info_v3()
452 NDMP_SETENV(envp, "DIRECT", "n"); in ndmpd_config_get_butype_info_v3()
453 NDMP_SETENV(envp, "HIST", "n"); in ndmpd_config_get_butype_info_v3()
454 NDMP_SETENV(envp, "FILESYSTEM", ""); in ndmpd_config_get_butype_info_v3()
455 NDMP_SETENV(envp, "LEVEL", "0"); in ndmpd_config_get_butype_info_v3()
456 NDMP_SETENV(envp, "UPDATE", "TRUE"); in ndmpd_config_get_butype_info_v3()
457 NDMP_SETENV(envp, "BASE_DATE", ""); in ndmpd_config_get_butype_info_v3()
540 ndmp_pval *envp, *save; in ndmpd_config_get_fs_info_v3() local
[all …]
H A Dndmpd_callbacks.c855 ndmp_pval *envp; in ndmpd_api_find_env() local
860 envp = session->ns_data.dd_env; in ndmpd_api_find_env()
861 for (i = 0; envp && i < session->ns_data.dd_env_len; envp++, i++) in ndmpd_api_find_env()
862 if (strcmp(name, envp->name) == NULL) in ndmpd_api_find_env()
863 return (envp); in ndmpd_api_find_env()
886 ndmp_pval *envp; in ndmpd_api_get_env() local
888 envp = ndmpd_api_find_env(cookie, name); in ndmpd_api_get_env()
889 if (envp) in ndmpd_api_get_env()
890 return (envp->value); in ndmpd_api_get_env()
969 ndmp_pval *envp; in ndmpd_api_set_env() local
[all …]
H A Dndmpd_tar3.c134 split_env(char *envp, char sep) in split_env() argument
141 if (!envp) in split_env()
144 while (isspace(*envp)) in split_env()
145 envp++; in split_env()
147 if (!*envp) in split_env()
150 bp = save = strdup(envp); in split_env()
834 char *envp; in get_update_env_v3() local
836 envp = MOD_GETENV(params, "UPDATE"); in get_update_env_v3()
837 if (!envp) { in get_update_env_v3()
842 NDMP_LOG(LOG_DEBUG, "env(UPDATE): \"%s\"", envp); in get_update_env_v3()
[all …]
H A Dndmpd_zfs.c504 char *envp; in ndmpd_zfs_send_fhist() local
506 envp = MOD_GETENV(ndmpd_zfs_params, "HIST"); in ndmpd_zfs_send_fhist()
507 if (!envp) in ndmpd_zfs_send_fhist()
510 if (!(strchr("YT", toupper(*envp)))) { in ndmpd_zfs_send_fhist()
1450 char *envp; in ndmpd_zfs_getenv_zfs_mode() local
1452 envp = MOD_GETENV(ndmpd_zfs_params, "ZFS_MODE"); in ndmpd_zfs_getenv_zfs_mode()
1454 if (envp == NULL) { in ndmpd_zfs_getenv_zfs_mode()
1461 if ((strcmp(envp, "dataset") == 0) || (strcmp(envp, "d") == 0)) { in ndmpd_zfs_getenv_zfs_mode()
1463 } else if ((strcmp(envp, "recursive") == 0) || in ndmpd_zfs_getenv_zfs_mode()
1464 (strcmp(envp, "r") == 0)) { in ndmpd_zfs_getenv_zfs_mode()
[all …]
/titanic_44/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.copyinto.d43 envp = alloca(sizeof (uint32_t));
44 copyinto(curpsinfo->pr_envp, sizeof (uint32_t), envp);
45 printf("envp[0] = \"%s\"", copyinstr(*(uint32_t *)envp));
52 envp = alloca(sizeof (uint64_t));
53 copyinto(curpsinfo->pr_envp, sizeof (uint64_t), envp);
54 printf("envp[0] = \"%s\"", copyinstr(*(uint64_t *)envp));
H A Dtst.copyin.d45 envp = *(uint32_t *)copyin(curpsinfo->pr_envp, sizeof (uint32_t));
46 printf("envp[0] = \"%s\"", copyinstr(envp));
53 envp = *(uint64_t *)copyin(curpsinfo->pr_envp, sizeof (uint64_t));
54 printf("envp[0] = \"%s\"", copyinstr(envp));
/titanic_44/usr/src/cmd/lp/cmd/lpsched/
H A Dexec.c66 static void addenv (char ***envp, char * , char * );
193 execvpe(char *name, char *const argv[], char *const envp[]) in execvpe() argument
231 (void) execve(fname, argv, envp); in execvpe()
242 (void) execve("/bin/sh", newargs, envp); in execvpe()
311 char **envp = NULL; in exec() local
454 addenv (&envp, "PATH", "/usr/lib/lp/bin:/usr/bin:/bin:/usr/sbin:/sbin"); in exec()
456 addenv (&envp, "TZ", getenv("TZ")); in exec()
457 addenv (&envp, "LANG", getenv("LANG")); in exec()
458 addenv (&envp, "LC_ALL", getenv("LC_ALL")); in exec()
459 addenv (&envp, "LC_COLLATE", getenv("LC_COLLATE")); in exec()
[all …]
/titanic_44/usr/src/cmd/bnu/
H A Dmailst.c119 char **envp; local
121 envp = Env;
122 for ( ; *envp; envp++) {
123 if(PREFIX("LOGNAME", *envp)) {
125 envp[0] = &un[0];
/titanic_44/usr/src/cmd/modload/
H A Dmodunload.c39 void exec_userfile(char *execfile, int id, char **envp);
48 main(int argc, char *argv[], char *envp[]) in main() argument
80 exec_userfile(execfile, id, envp); in main()
108 exec_userfile(char *execfile, int id, char **envp) in exec_userfile() argument
123 (void) execle(execfile, execfile, modid, mod0, NULL, envp); in exec_userfile()
H A Dmodload.c39 void l_exec_userfile(char *execfile, int id, char **envp);
49 main(int argc, char *argv[], char *envp[]) in main() argument
109 l_exec_userfile(execfile, id, envp); in main()
118 l_exec_userfile(char *execfile, int id, char **envp) in l_exec_userfile() argument
143 (void) execle(execfile, execfile, module_id, mod0, NULL, envp); in l_exec_userfile()
/titanic_44/usr/src/lib/libxcurses/src/libc/mks/
H A Dm_getenv.c75 char **envp = environ; in __m_getenv() local
76 char *s = *envp++; in __m_getenv()
82 s = *envp++; in __m_getenv()
/titanic_44/usr/src/cmd/rcm_daemon/common/
H A Drcm_script.c880 run_script(script_info_t *rsi, char *argv[], char *envp[], char **errmsg) in run_script() argument
991 (void) execve(rsi->script_full_name, argv, envp); in run_script()
1332 do_cmd(script_info_t *rsi, char *argv[], char *envp[], char **errmsg) in do_cmd() argument
1349 if (run_script(rsi, argv, envp, errmsg) == -1) { in do_cmd()
1559 do_dr(script_info_t *rsi, char *argv[], char *envp[], char **info) in do_dr() argument
1566 if (do_cmd(rsi, argv, envp, info) == 0) { in do_dr()
1885 char *envp[MAX_ENV_PARAMS]; in script_request_offline() local
1906 copy_env(script_env, envp); in script_request_offline()
1907 for (i = 0; envp[i] != NULL; i++) in script_request_offline()
1909 envp[i++] = (flag & RCM_FORCE) ? script_env_force : script_env_noforce; in script_request_offline()
[all …]
/titanic_44/usr/src/cmd/sgs/libconv/common/
H A Darch.c61 conv_check_native(char **argv, char **envp) in conv_check_native() argument
81 conv_check_native(char **argv, char **envp) in conv_check_native() argument
93 (void) isaexec(str, argv, envp); in conv_check_native()
/titanic_44/usr/src/lib/libshell/common/sh/
H A Dpath.c76 static pid_t path_pfexecve(const char *path, char *argv[],char *const envp[],int spawn) in path_pfexecve() argument
89 return(execve(path, argv, envp)); in path_pfexecve()
104 int r = execve(path, argv, envp); in path_pfexecve()
119 return(execve("/usr/bin/pfexec", argv, envp)); in path_pfexecve()
121 return(execve(path, argv, envp)); in path_pfexecve()
126 static pid_t _spawnveg(const char *path, char* const argv[], char* const envp[], pid_t pgid) in _spawnveg() argument
134 pid = spawnveg(path,argv,envp,pgid); in _spawnveg()
151 static pid_t path_xargs(const char *path, char *argv[],char *const envp[], int spawn) in path_xargs() argument
162 for(ev=envp; cp= *ev; ev++) in path_xargs()
196 if((pid=_spawnveg(path,argv,envp,0)) < 0) in path_xargs()
[all …]
H A Denv.c189 Env_t *env_open(char **envp, int extra) in env_open() argument
199 if(env=envp) in env_open()
202 n = (env+2)-envp; in env_open()
206 ep->env = envp; in env_open()
221 for(env=envp; *env; env++) in env_open()
/titanic_44/usr/src/cmd/tnf/prex/
H A Dmain.c108 static void prex_isaexec(char **argv, char **envp);
109 static void check_pid_model(char **argv, char **envp);
110 static void check_exec_model(char **argv, char **envp);
167 main(int argc, char **argv, char **envp) in main() argument
206 check_pid_model(argv, envp); in main()
222 check_exec_model(argv, envp); in main()
903 check_exec_model(char **argv, char **envp) in check_exec_model() argument
919 prex_isaexec(argv, envp); in check_exec_model()
927 check_pid_model(char **argv, char **envp) in check_pid_model() argument
942 prex_isaexec(argv, envp); in check_pid_model()
[all …]
/titanic_44/usr/src/cmd/sendmail/db/xa/
H A Dxa_map.c40 __db_rmid_to_env(rmid, envp, open_ok) in __db_rmid_to_env() argument
42 DB_ENV **envp;
50 *envp = env;
63 *envp = env;
92 *envp = env;
/titanic_44/usr/src/lib/libc/port/regex/
H A Dwordexp.c114 const char **envp; in wordexp() local
179 if ((envp = _environ) == NULL) { in wordexp()
184 for (n = 0; (ev = envp[n]) != NULL; n++) { in wordexp()
195 env[i] = envp[i]; in wordexp()
201 envp = env; in wordexp()
291 (char *const *)args, (char *const *)envp); in wordexp()
/titanic_44/usr/src/cmd/allocate/
H A Dallocate.c254 main(int argc, char *argv[], char *envp[]) in main() argument
287 env = getenvent("LC_ALL=", envp); in main()
290 env = getenvent("LC_COLLATE=", envp); in main()
293 env = getenvent("LC_CTYPE=", envp); in main()
296 env = getenvent("LC_MESSAGES=", envp); in main()
299 env = getenvent("LC_NUMERIC=", envp); in main()
302 env = getenvent("LC_TIME=", envp); in main()
305 env = getenvent("LANG=", envp); in main()
/titanic_44/usr/src/cmd/login/
H A Dlogin.c237 static char **envp; variable
871 envp = getargs(inputline); in login_conv()
877 if (envp != (char **)NULL) in login_conv()
885 envp++; in login_conv()
1114 envp = &zero; /* XXX: is this right? */ in get_user_name()
1498 if ((envp = getargs(inputline)) != (char **)NULL) { in get_options()
1502 SCPYL(user_name, *envp++); in get_options()
1508 envp = &argv[optind+1]; in get_options()
1627 envp = &zero; in process_rlogin()
2350 if (envp == NULL) in establish_user_environment()
[all …]
/titanic_44/usr/src/ucbcmd/sbcp/
H A Dsbcp_util.c33 sbcp_init(int argc, char *argv[], char *envp[]) in sbcp_init() argument
42 p = (uintptr_t *)envp; in sbcp_init()

12345