Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/lib/libkvm/common/
H A Dkvm_getcmd.c176 if (envp) { in kvm_getcmd32()
196 if (envp) in kvm_getcmd32()
223 if (envp) { in kvm_getcmd32()
248 *env = envp; in kvm_getcmd32()
329 if (envp) in kvm_getcmd()
330 free(envp); in kvm_getcmd()
334 if (envp) { in kvm_getcmd()
344 free(envp); in kvm_getcmd()
381 if (envp) { in kvm_getcmd()
406 if (str < (char *)envp || str >= (char *)envp + esize) { in kvm_getcmd()
[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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c435 ndmp_pval *envp = envs; in ndmpd_config_get_butype_info_v3() local
451 NDMP_SETENV(envp, "TYPE", ""); in ndmpd_config_get_butype_info_v3()
453 NDMP_SETENV(envp, "HIST", "n"); in ndmpd_config_get_butype_info_v3()
540 ndmp_pval *envp, *save; in ndmpd_config_get_fs_info_v3() local
625 if (!envp) { in ndmpd_config_get_fs_info_v3()
727 envp_head = envp; in ndmpd_config_get_tape_info_v3()
829 envp_head = envp; in ndmpd_config_get_scsi_info_v3()
941 ndmp_pval *envp = envs; in ndmpd_config_get_butype_info_v4() local
960 NDMP_SETENV(envp, "TYPE", ""); in ndmpd_config_get_butype_info_v4()
961 NDMP_SETENV(envp, "USER", ""); in ndmpd_config_get_butype_info_v4()
[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()
863 return (envp); in ndmpd_api_find_env()
886 ndmp_pval *envp; in ndmpd_api_get_env() local
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
972 if (!envp) { in ndmpd_api_set_env()
978 free(envp->value); in ndmpd_api_set_env()
[all …]
H A Dndmpd_tar3.c141 if (!envp) in split_env()
145 envp++; in split_env()
147 if (!*envp) in split_env()
834 char *envp; in get_update_env_v3() local
868 char *envp; in get_hist_env_v3() local
876 if (IS_YORT(*envp) || IS_F(*envp)) in get_hist_env_v3()
909 char *envp; in get_exc_env_v3() local
941 char *envp; in get_inc_env_v3() local
971 char *envp; in get_direct_env_v3() local
1207 char *envp; in get_backup_level_v3() local
[all …]
H A Dndmpd_zfs.c504 char *envp; in ndmpd_zfs_send_fhist() local
507 if (!envp) in ndmpd_zfs_send_fhist()
1455 char *envp; in ndmpd_zfs_getenv_zfs_mode() local
1459 if (envp == NULL) { in ndmpd_zfs_getenv_zfs_mode()
1466 if ((strcmp(envp, "dataset") == 0) || (strcmp(envp, "d") == 0)) { in ndmpd_zfs_getenv_zfs_mode()
1471 } else if ((strcmp(envp, "package") == 0) || (strcmp(envp, "p") == 0)) { in ndmpd_zfs_getenv_zfs_mode()
1549 char *envp; in ndmpd_zfs_getenv_level() local
1553 if (envp == NULL) { in ndmpd_zfs_getenv_level()
1560 if (envp[1] != '\0') { in ndmpd_zfs_getenv_level()
1609 char *envp; in ndmpd_zfs_getenv_dmp_name() local
[all …]
/illumos-gate/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));
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dexec.c309 char **envp = NULL; in exec() local
465 addenv (&envp, "SPOOLER_KEY", cp); in exec()
578 addenv(&envp, "DEVICE_URI", in exec()
581 addenv(&envp, "DEVICE_URI", in exec()
639 addenv(&envp, "ATTRPATH", path); in exec()
657 addenv(&envp, "PPD", path); in exec()
695 addenv (&envp, "CHARSET", in exec()
1036 addenv(&envp, "PPD", path); in exec()
1193 for (i = 0; envp[i] != NULL; i++) in exec()
1197 execvpe(av[0], av, envp); in exec()
[all …]
/illumos-gate/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];
/illumos-gate/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()
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbootinfo64.c146 u_int64_t envp; in bi_load64() local
194 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp); in bi_load64()
203 envp = roundup(addr + size, PAGE_SIZE); in bi_load64()
204 addr = bi_copyenv(envp); in bi_load64()
216 bcopy(&envp, md->md_data, sizeof envp); in bi_load64()
H A Dbootinfo32.c141 vm_offset_t envp; in bi_load32() local
203 envp = addr; in bi_load32()
216 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp); in bi_load32()
256 bi.bi_envp = envp; in bi_load32()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_script.c1885 char *envp[MAX_ENV_PARAMS]; in script_request_offline() local
1906 copy_env(script_env, envp); in script_request_offline()
1910 envp[i] = NULL; in script_request_offline()
2043 envp[i++] = buf; in script_request_suspend()
2046 envp[i] = NULL; in script_request_suspend()
2132 char *envp[], in build_env_for_capacity() argument
2153 envp[p] = NULL; in build_env_for_capacity()
2376 envp[p++] = buf; in build_env_for_capacity()
2379 envp[p] = NULL; in build_env_for_capacity()
2381 free(envp[p]); in build_env_for_capacity()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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);
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) in prex_isaexec() argument
[all …]
/illumos-gate/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;
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate.c252 main(int argc, char *argv[], char *envp[]) in main() argument
285 env = getenvent("LC_ALL=", envp); in main()
288 env = getenvent("LC_COLLATE=", envp); in main()
291 env = getenvent("LC_CTYPE=", envp); in main()
294 env = getenvent("LC_MESSAGES=", envp); in main()
297 env = getenvent("LC_NUMERIC=", envp); in main()
300 env = getenvent("LC_TIME=", envp); in main()
303 env = getenvent("LANG=", envp); in main()
/illumos-gate/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()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dpath.c119 return(execve(path, argv, envp)); in path_pfexecve()
132 return(execve(path, argv, envp)); in path_pfexecve()
166 for(ev=envp; cp= *ev; ev++) in path_xargs()
1005 char **envp; in path_exec() local
1010 envp = sh_envgen(); in path_exec()
1058 envp--; in path_spawn()
1123 xp = envp + 1; in path_spawn()
1136 *envp-- = v; in path_spawn()
1143 envp[0][0] = '_'; in path_spawn()
1144 envp[0][1] = '='; in path_spawn()
[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()
/illumos-gate/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()
1503 SCPYL(user_name, *envp++); in get_options()
1509 envp = &argv[optind+1]; in get_options()
1630 envp = &zero; in process_rlogin()
2353 if (envp == NULL) in establish_user_environment()
2358 j++, envp++) { in establish_user_environment()
2379 l_index, *envp); in establish_user_environment()
[all …]

1234