Home
last modified time | relevance | path

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

12345

/titanic_51/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()
157 * Walk up the 32-bit stack, filling in the 64-bit argv and envp 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()
206 * changes to the argv and envp arrays. in kvm_getcmd32()
225 if (envp) { in kvm_getcmd32()
269 char **envp = NULL; kvm_getcmd() local
[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_51/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 in _init()
[all...]
/titanic_51/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 in pcf8574_intr()
833 envctrl_fantray_t *envp = pcf8574_intr() local
1230 envctrl_pwrsupp_t *envp; pcf8574_add_kstat() local
1270 envctrl_fantray_t *envp; pcf8574_add_kstat() local
1504 envctrl_cpuvoltage_t *envp = pcf8574_kstat_update() local
1513 envctrl_pwrsupp_t *envp = pcf8574_kstat_update() local
1529 envctrl_fantray_t *envp = pcf8574_kstat_update() local
1742 envctrl_pwrsupp_t *envp; pcf8574_callback() local
1762 envctrl_fantray_t *envp; pcf8574_callback() local
1835 envctrl_pwrsupp_t *envp = pcf8574_init_chip() local
1852 envctrl_fantray_t *envp = pcf8574_init_chip() local
[all...]
/titanic_51/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, *sav in ndmpd_config_get_fs_info_v3() local
692 ndmp_pval *envp, *envp_save = NULL; ndmpd_config_get_tape_info_v3() local
796 ndmp_pval *envp, *envp_save = NULL; ndmpd_config_get_scsi_info_v3() local
941 ndmp_pval *envp = envs; ndmpd_config_get_butype_info_v4() 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 in ndmpd_api_get_env()
969 ndmp_pval *envp; ndmpd_api_set_env() local
[all...]
H A Dndmpd_tar3.c124 * envp (input) - the environment variable that should be broken
134 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()
868 char *envp; get_hist_env_v3() local
909 char *envp; get_exc_env_v3() local
941 char *envp; get_inc_env_v3() local
971 char *envp; get_direct_env_v3() local
1207 char *envp; get_backup_level_v3() local
[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, "recursiv in ndmpd_zfs_getenv_zfs_mode()
1544 char *envp; ndmpd_zfs_getenv_level() local
1604 char *envp; ndmpd_zfs_getenv_dmp_name() local
[all...]
/titanic_51/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_51/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_COLLAT in exec()
1210 addenv(char *** envp,char * name,char * value) addenv() argument
[all...]
/titanic_51/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_51/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_51/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_51/usr/src/boot/sys/boot/i386/libi386/
H A Dbootinfo64.c186 u_int64_t envp; in bi_load64() local
234 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp); in bi_load64()
243 envp = roundup(addr + size, PAGE_SIZE); in bi_load64()
244 addr = bi_copyenv(envp); in bi_load64()
256 bcopy(&envp, md->md_data, sizeof envp); in bi_load64()
/titanic_51/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[ in script_request_offline()
2005 char *envp[MAX_ENV_PARAMS]; script_request_suspend() local
2132 build_env_for_capacity(script_info_t * rsi,char * resource_name,uint_t flag,nvlist_t * capacity_info,char * envp[],int * dynamic_env_index,char ** errmsg) build_env_for_capacity() argument
2408 char *envp[MAX_ENV_PARAMS]; script_request_capacity_change() local
2457 char *envp[MAX_ENV_PARAMS]; script_notify_capacity_change() local
[all...]
/titanic_51/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_51/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()
950 prex_isaexec(char ** argv,char ** envp) prex_isaexec() argument
[all...]
/titanic_51/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 …]
/titanic_51/usr/src/cmd/sendmail/db/xa/
H A Dxa_map.c37 * PUBLIC: int __db_rmid_to_env __P((int rmid, DB_ENV **envp, int open_ok));
40 __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_51/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_51/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_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dpath.c106 static pid_t path_pfexecve(Shell_t *shp,const char *path, char *argv[],char *const envp[],int spawn) in path_pfexecve() argument
119 return(execve(path, argv, envp)); in path_pfexecve()
126 return(execve(path, argv, envp)); in path_pfexecve()
130 return(execve("/usr/bin/pfexec", argv, envp)); in path_pfexecve()
132 return(execve(path, argv, envp)); in path_pfexecve()
137 static pid_t _spawnveg(Shell_t *shp,const char *path, char* const argv[], char* const envp[], pid_t pgid) in _spawnveg() argument
143 pid = spawnveg(path,argv,envp,pgid); in _spawnveg()
155 static pid_t path_xargs(Shell_t *shp,const char *path, char *argv[],char *const envp[], int spawn) in path_xargs() argument
166 for(ev=envp; cp= *ev; ev++) in path_xargs()
200 if((pid=_spawnveg(shp,path,argv,envp, in path_xargs()
1005 char **envp; path_exec() local
1049 path_spawn(Shell_t * shp,const char * opath,register char ** argv,char ** envp,Pathcomp_t * libpath,int spawn) path_spawn() argument
1264 exscript(Shell_t * shp,register char * path,register char * argv[],char ** envp) exscript() argument
[all...]
/titanic_51/usr/src/cmd/login/
H A Dlogin.c237 static char **envp; variable
866 * envp if there is any; otherwise, envp is set to in login_conv()
871 envp = getargs(inputline); in login_conv()
877 if (envp != (char **)NULL) in login_conv()
880 * *envp is the first string in in login_conv()
881 * inputline. envp++ makes envp point in login_conv()
885 envp++; in login_conv()
1114 envp in get_user_name()
[all...]

12345