Searched refs:envp (Results 1 - 25 of 119) sorted by relevance

12345

/freebsd-11-stable/cddl/contrib/opensolaris/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.d43 envp = *(uint32_t *)copyin(curpsinfo->pr_envp, sizeof (uint32_t));
44 printf("envp[0] = \"%s\"", copyinstr(envp));
51 envp = *(uint64_t *)copyin(curpsinfo->pr_envp, sizeof (uint64_t));
52 printf("envp[0] = \"%s\"", copyinstr(envp));
/freebsd-11-stable/contrib/tcp_wrappers/
H A Denviron.c55 char **envp; local
57 for (envp = environ; envp && *envp; envp++)
58 if (strncmp(name, *envp, len) == 0 && (*envp)[len] == '=')
59 return (envp);
69 char **envp = findenv(name, len); local
71 return (envp
90 char **envp; local
105 char **envp; local
152 char **envp; local
187 char **envp; local
[all...]
/freebsd-11-stable/usr.sbin/cron/lib/
H A Denv.c39 env_free(envp)
40 char **envp;
44 if ((p = envp))
47 free(envp);
52 env_copy(envp)
53 register char **envp;
58 for (count = 0; envp[count] != NULL; count++)
66 if ((p[i] = strdup(envp[i])) == NULL) {
79 env_set(envp, envstr)
80 char **envp;
[all...]
H A Dentry.c80 if (e->envp != NULL)
81 env_free(e->envp);
90 load_entry(file, error_func, pw, envp)
94 char **envp;
374 e->envp = env_copy(envp);
375 if (e->envp == NULL) {
380 if (!env_get("SHELL", e->envp)) {
381 prev_env = e->envp;
383 e->envp
[all...]
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dsetproctitle.c74 char **envp = environ; local
87 for (i = 0; envp[i] != NULL; i++)
90 environ = envp; /* put it back */
102 for (i = 0; envp[i] != NULL; i++) {
103 if (lastargv + 1 == envp[i])
104 lastargv = envp[i] + strlen(envp[i]);
115 for (i = 0; envp[i] != NULL; i++)
116 environ[i] = strdup(envp[i]);
/freebsd-11-stable/lib/msun/amd64/
H A Dfenv.c86 fegetenv(fenv_t *envp) argument
89 __fnstenv(&envp->__x87);
90 __stmxcsr(&envp->__mxcsr);
95 __fldcw(&envp->__x87.__control);
100 feholdexcept(fenv_t *envp) argument
105 __fnstenv(&envp->__x87);
107 envp->__mxcsr = mxcsr;
117 feupdateenv(const fenv_t *envp) argument
124 fesetenv(envp);
/freebsd-11-stable/usr.sbin/cron/cron/
H A Duser.c63 char **envp, **tenvp; local
88 if ((envp = env_init()) == NULL) {
105 e = load_entry(file, log_error, pw, envp);
112 if ((tenvp = env_set(envp, envstr))) {
113 envp = tenvp;
124 env_free(envp);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_openbsd.cpp74 static void GetArgsAndEnv(char ***argv, char ***envp) { argument
91 if (internal_sysctl(envmib, 4, &envp, &nenv, NULL, 0) == -1) {
98 char **argv, **envp; local
99 GetArgsAndEnv(&argv, &envp);
104 char **argv, **envp; local
105 GetArgsAndEnv(&argv, &envp);
106 return envp;
/freebsd-11-stable/lib/msun/i387/
H A Dfenv.c131 fegetenv(fenv_t *envp) argument
135 __fnstenv(envp);
140 __fldcw(&envp->__control);
143 __set_mxcsr(*envp, mxcsr);
149 feholdexcept(fenv_t *envp) argument
153 __fnstenv(envp);
157 __set_mxcsr(*envp, mxcsr);
168 feupdateenv(const fenv_t *envp) argument
178 fesetenv(envp);
/freebsd-11-stable/sys/mips/atheros/
H A Dar71xx_machdep.c127 * "ethaddr" is passed via envp on RedBoot platforms
313 char **argv = NULL, **envp = NULL; local
338 envp = (char**)a2;
343 if (MIPS_IS_VALID_PTR(envp)) {
344 for (i = 0; envp[i]; i += 2) {
345 if (strcmp(envp[i], "memsize") == 0)
346 realmem = btoc(strtoul(envp[i+1], NULL, 16));
347 else if (strcmp(envp[i], "bootverbose") == 0)
348 bootverbose = btoc(strtoul(envp[i+1], NULL, 10));
437 if (MIPS_IS_VALID_PTR(envp)) {
[all...]
/freebsd-11-stable/usr.sbin/crunch/crunchgen/
H A Dcrunched_main.c51 main(int argc, char **argv, char **envp) argument
66 return ep->f(argc, argv, envp);
91 crunched_main(int argc, char **argv, char **envp) argument
103 return main(--argc, ++argv, envp);
/freebsd-11-stable/stand/ficl/
H A Dficl.c119 pSys->envp = dictCreate((unsigned)nEnvCells);
120 pSys->envp->pForthWords->name = "environment";
567 return pSys->envp;
580 FICL_DICT *envp = pSys->envp; local
583 pFW = dictLookup(envp, si);
587 dictAppendWord(envp, name, constantParen, FW_DEFAULT);
588 dictAppendCell(envp, LVALUEtoCELL(value));
602 FICL_DICT *envp = pSys->envp; local
[all...]
/freebsd-11-stable/contrib/netbsd-tests/kernel/kqueue/
H A Dt_proc1.c62 char *envp[] = { NULL, NULL }; local
67 if ((envp[0] = strdup("FOO=BAZ")) == NULL)
87 execve("/usr/bin/true", argv, envp);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/
H A Dtst.corruptenv.ksh87 main(int argc, char **argv, char **envp)
89 envp[0] = (char*)0xff;
/freebsd-11-stable/sys/mips/nlm/dev/net/ucore/
H A Dcrt0_basic.S58 addiu a2,sp,40 # envp = sp + 40
60 sw zero,(a2) # envp[0] = 0
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fexecve.c58 const char *const envp[] = { NULL }; local
67 if (fexecve(fd, __UNCONST(argv), __UNCONST(envp)) == -1) {
/freebsd-11-stable/lib/libc/gen/
H A Dexec.c86 char **envp; local
104 envp = va_arg(ap, char **);
106 return (_execve(name, __DECONST(char **, argv), envp));
150 char * const *envp)
218 retry: (void)_execve(bp, argv, envp);
252 __DECONST(char **, memp), envp);
297 _execvpe(const char *name, char * const argv[], char * const envp[]) argument
305 return (execvPe(name, path, argv, envp));
149 execvPe(const char *name, const char *path, char * const *argv, char * const *envp) argument
H A Dposix_spawn.c201 char * const * envp; member in struct:posix_spawn_args
226 char * const *envp; local
239 envp = psa->envp != NULL ? psa->envp : environ;
241 _execvpe(psa->path, psa->argv, envp);
243 _execve(psa->path, psa->argv, envp);
254 char * const argv[], char * const envp[], int use_env_path)
295 psa.envp = envp;
251 do_posix_spawn(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[], int use_env_path) argument
345 posix_spawn(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[]) argument
354 posix_spawnp(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[]) argument
[all...]
/freebsd-11-stable/sys/mips/gxemul/
H A Dgxemul_machdep.c131 char **envp = (char **)a2; local
160 if (envp != NULL) {
161 printf("envp:\n");
162 for (i = 0; envp[i]; i += 2)
163 printf("\t%s = %s\n", envp[i], envp[i+1]);
165 printf("no envp.\n");
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dsimple_exec.c256 simple_execve_timed(const char *file, char *const args[], char *const envp[], argument
264 execve(file, args, envp);
272 simple_execve(const char *file, char *const args[], char *const envp[]) argument
274 return simple_execve_timed(file, args, envp, NULL, NULL, 0);
295 simple_execle(const char *file, ... /* ,char *const envp[] */)
299 char *const* envp; local
304 envp = va_arg(ap, char **);
308 ret = simple_execve(file, argv, envp);
/freebsd-11-stable/stand/i386/libi386/
H A Dbootinfo64.c191 uint64_t envp; local
239 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp);
251 envp = roundup(addr + size, PAGE_SIZE);
252 addr = bi_copyenv(envp);
264 bcopy(&envp, md->md_data, sizeof envp);
/freebsd-11-stable/sys/mips/rt305x/
H A Drt305x_machdep.c148 char **envp = (char **)MIPS_PHYS_TO_KSEG0(a2); local
190 for (i = 0; envp[i] && MIPS_IS_VALID_PTR(envp[i]); i++) {
193 arg = (char *)(intptr_t)MIPS_PHYS_TO_KSEG0(envp[i]);
/freebsd-11-stable/crypto/openssh/
H A Dsession.h80 void child_set_env(char ***envp, u_int *envsizep, const char *name,
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dbrowser-wpadebug.c100 char *envp[] = { "PATH=/system/bin:/vendor/bin", NULL }; local
117 execve("/system/bin/am", argv, envp);

Completed in 155 milliseconds

12345