| /freebsd-13.1/contrib/tcp_wrappers/ |
| H A D | environ.c | 55 char **envp; local 57 for (envp = environ; envp && *envp; envp++) 58 if (strncmp(name, *envp, len) == 0 && (*envp)[len] == '=') 71 return (envp ? *envp + len + 1 : 0); 90 char **envp; local 93 while (envp[0] = envp[1]) 94 envp++; 105 char **envp; local 124 destination = (envp != 0 && strlen(*envp) >= l_nameval) ? 157 for (envp = environ; envp && *envp; envp++) [all …]
|
| /freebsd-13.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_data_bcmraw.c | 81 char envp[16]; in bhnd_nvram_bcmraw_probe() local 110 char c = envp[i]; in bhnd_nvram_bcmraw_probe() 130 if (envp[0] != '\0' || envp[1] != '\0') in bhnd_nvram_bcmraw_probe() 274 char *envp; in bhnd_nvram_bcmraw_init() local 391 envp = *cookiep; in bhnd_nvram_bcmraw_next() 392 envp += strlen(envp) + 1; /* key + '\0' */ in bhnd_nvram_bcmraw_next() 393 envp += strlen(envp) + 1; /* value + '\0' */ in bhnd_nvram_bcmraw_next() 401 return (envp); in bhnd_nvram_bcmraw_next() 444 envp = cookiep; in bhnd_nvram_bcmraw_getvar_ptr() 445 envp += strlen(envp) + 1; /* key + '\0' */ in bhnd_nvram_bcmraw_getvar_ptr() [all …]
|
| H A D | bhnd_nvram_data_bcm.c | 645 char *envp; in bhnd_nvram_bcm_init() local 685 hvar->envp = envp; in bhnd_nvram_bcm_init() 878 envp = basep; in bhnd_nvram_bcm_next() 882 envp += strlen(envp) + 1; /* key + '\0' */ in bhnd_nvram_bcm_next() 883 envp += strlen(envp) + 1; /* value + '\0' */ in bhnd_nvram_bcm_next() 897 if (bcm->hvars[i].envp != envp) in bhnd_nvram_bcm_next() 911 envp += strlen(envp) + 1; /* key + '\0' */ in bhnd_nvram_bcm_next() 912 envp += strlen(envp) + 1; /* value + '\0' */ in bhnd_nvram_bcm_next() 916 if ((size_t)(envp - basep) == io_size || *envp == '\0') { in bhnd_nvram_bcm_next() 931 return (envp); in bhnd_nvram_bcm_next() [all …]
|
| /freebsd-13.1/usr.sbin/cron/lib/ |
| H A D | env.c | 39 env_free(envp) in env_free() argument 40 char **envp; in env_free() 44 if ((p = envp)) 47 free(envp); 52 env_copy(envp) in env_copy() argument 53 register char **envp; in env_copy() 79 env_set(envp, envstr) in env_set() argument 80 char **envp; in env_set() 103 q = envp[found]; 105 envp[found] = q; [all …]
|
| H A D | entry.c | 80 if (e->envp != NULL) 81 env_free(e->envp); 94 char **envp; 378 e->envp = env_copy(envp); 385 prev_env = e->envp; 387 e->envp = env_set(e->envp, envstr); 402 e->envp = env_set(e->envp, envstr); 411 prev_env = e->envp; 413 e->envp = env_set(e->envp, envstr); 421 prev_env = e->envp; [all …]
|
| /freebsd-13.1/sys/mips/atheros/ar531x/ |
| H A D | ar5315_machdep.c | 160 char **envp = NULL; in platform_start() local 186 envp = (char**)a2; in platform_start() 191 if (MIPS_IS_VALID_PTR(envp)) { in platform_start() 192 for (i = 0; envp[i]; i += 2) { in platform_start() 283 if (MIPS_IS_VALID_PTR(envp)) { in platform_start() 284 if (envp[0] && strchr(envp[0], '=') ) { in platform_start() 286 for (i = 0; envp[i]; i++) { in platform_start() 291 kern_setenv(envp[i], env_val); in platform_start() 294 for (i = 0; envp[i]; i+=2) { in platform_start() 295 printf(" %s = %s\n", envp[i], envp[i+1]); in platform_start() [all …]
|
| /freebsd-13.1/sys/mips/atheros/ |
| H A D | ar71xx_machdep.c | 285 char **argv = NULL, **envp = NULL; in platform_start() local 310 envp = (char**)a2; in platform_start() 315 if (MIPS_IS_VALID_PTR(envp)) { in platform_start() 316 for (i = 0; envp[i]; i += 2) { in platform_start() 317 if (strcmp(envp[i], "memsize") == 0) in platform_start() 318 realmem = btoc(strtoul(envp[i+1], NULL, 16)); in platform_start() 319 else if (strcmp(envp[i], "bootverbose") == 0) in platform_start() 409 if (MIPS_IS_VALID_PTR(envp)) { in platform_start() 410 for (i = 0; envp[i]; i+=2) { in platform_start() 411 printf(" %s = %s\n", envp[i], envp[i+1]); in platform_start() [all …]
|
| /freebsd-13.1/crypto/openssh/openbsd-compat/ |
| H A D | setproctitle.c | 75 char **envp = environ; in compat_init_setproctitle() local 88 for (i = 0; envp[i] != NULL; i++) in compat_init_setproctitle() 91 environ = envp; /* put it back */ in compat_init_setproctitle() 103 for (i = 0; envp[i] != NULL; i++) { in compat_init_setproctitle() 104 if (lastargv + 1 == envp[i]) in compat_init_setproctitle() 105 lastargv = envp[i] + strlen(envp[i]); in compat_init_setproctitle() 116 for (i = 0; envp[i] != NULL; i++) in compat_init_setproctitle() 117 environ[i] = strdup(envp[i]); in compat_init_setproctitle()
|
| /freebsd-13.1/lib/msun/amd64/ |
| H A D | fenv.c | 88 fegetenv(fenv_t *envp) in fegetenv() argument 91 __fnstenv(&envp->__x87); in fegetenv() 92 __stmxcsr(&envp->__mxcsr); in fegetenv() 97 __fldcw(&envp->__x87.__control); in fegetenv() 102 feholdexcept(fenv_t *envp) in feholdexcept() argument 107 __fnstenv(&envp->__x87); in feholdexcept() 109 envp->__mxcsr = mxcsr; in feholdexcept() 119 feupdateenv(const fenv_t *envp) in feupdateenv() argument 126 fesetenv(envp); in feupdateenv()
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| H A D | tst.copyinto.d | 43 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 D | tst.copyin.d | 43 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-13.1/lib/msun/i387/ |
| H A D | fenv.c | 133 fegetenv(fenv_t *envp) in fegetenv() argument 137 __fnstenv(envp); in fegetenv() 142 __fldcw(&envp->__control); in fegetenv() 145 __set_mxcsr(*envp, mxcsr); in fegetenv() 151 feholdexcept(fenv_t *envp) in feholdexcept() argument 155 __fnstenv(envp); in feholdexcept() 159 __set_mxcsr(*envp, mxcsr); in feholdexcept() 170 feupdateenv(const fenv_t *envp) in feupdateenv() argument 180 fesetenv(envp); in feupdateenv()
|
| /freebsd-13.1/stand/ficl/ |
| H A D | ficl.c | 119 pSys->envp = dictCreate((unsigned)nEnvCells); in ficlInitSystemEx() 567 return pSys->envp; in ficlGetEnv() 580 FICL_DICT *envp = pSys->envp; in ficlSetEnv() local 583 pFW = dictLookup(envp, si); in ficlSetEnv() 602 FICL_DICT *envp = pSys->envp; in ficlSetEnvD() local 604 pFW = dictLookup(envp, si); in ficlSetEnvD() 609 dictAppendCell(envp, LVALUEtoCELL(lo)); in ficlSetEnvD() 610 dictAppendCell(envp, LVALUEtoCELL(hi)); in ficlSetEnvD() 663 if (pSys->envp) in ficlTermSystem() 664 dictDelete(pSys->envp); in ficlTermSystem() [all …]
|
| /freebsd-13.1/usr.sbin/cron/cron/ |
| H A D | user.c | 63 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-13.1/lib/libc/gen/ |
| H A D | exec.c | 86 char **envp; in execle() local 104 envp = va_arg(ap, char **); in execle() 106 return (_execve(name, __DECONST(char **, argv), envp)); in execle() 150 char * const *envp) in execvPe() argument 218 retry: (void)_execve(bp, argv, envp); in execvPe() 252 __DECONST(char **, memp), envp); in execvPe() 297 _execvpe(const char *name, char * const argv[], char * const envp[]) in _execvpe() argument 305 return (execvPe(name, path, argv, envp)); in _execvpe()
|
| H A D | posix_spawn.c | 221 char * const * envp; member 246 char * const *envp; in _posix_spawn_thr() local 259 envp = psa->envp != NULL ? psa->envp : environ; in _posix_spawn_thr() 261 _execvpe(psa->path, psa->argv, envp); in _posix_spawn_thr() 263 _execve(psa->path, psa->argv, envp); in _posix_spawn_thr() 274 char * const argv[], char * const envp[], int use_env_path) in do_posix_spawn() argument 315 psa.envp = envp; in do_posix_spawn() 368 char * const argv[], char * const envp[]) in posix_spawn() argument 370 return (do_posix_spawn(pid, path, fa, sa, argv, envp, 0)); in posix_spawn() 377 char * const argv[], char * const envp[]) in posix_spawnp() argument [all …]
|
| /freebsd-13.1/crypto/heimdal/lib/roken/ |
| H A D | simple_exec.c | 256 simple_execve_timed(const char *file, char *const args[], char *const envp[], in simple_execve_timed() argument 264 execve(file, args, envp); in simple_execve_timed() 272 simple_execve(const char *file, char *const args[], char *const envp[]) in simple_execve() argument 274 return simple_execve_timed(file, args, envp, NULL, NULL, 0); in simple_execve() 299 char *const* envp; in simple_execle() local 304 envp = va_arg(ap, char **); in simple_execle() 308 ret = simple_execve(file, argv, envp); in simple_execle()
|
| /freebsd-13.1/stand/i386/libi386/ |
| H A D | bootinfo64.c | 192 uint64_t envp; in bi_load64() local 242 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp); in bi_load64() 255 envp = roundup(addr + size, PAGE_SIZE); in bi_load64() 256 addr = bi_copyenv(envp); in bi_load64() 268 bcopy(&envp, md->md_data, sizeof envp); in bi_load64()
|
| /freebsd-13.1/usr.sbin/crunch/crunchgen/ |
| H A D | crunched_main.c | 113 main(int argc, char **argv, char **envp) in main() argument 168 return ep->f(argc, argv, envp); in main() 176 crunched_main(int argc, char **argv, char **envp) in crunched_main() argument 182 return main(--argc, ++argv, envp); in crunched_main()
|
| /freebsd-13.1/sys/x86/xen/ |
| H A D | pv.c | 518 char *envp; in xen_legacy_pvh_parse_preload_data() local 541 envp = MD_FETCH(kmdp, MODINFOMD_ENVP, char *); in xen_legacy_pvh_parse_preload_data() 542 if (envp != NULL) in xen_legacy_pvh_parse_preload_data() 543 envp += off; in xen_legacy_pvh_parse_preload_data() 544 xen_pvh_set_env(envp, NULL); in xen_legacy_pvh_parse_preload_data() 565 char *envp; in xen_pvh_parse_preload_data() local 628 envp = MD_FETCH(kmdp, MODINFOMD_ENVP, char *); in xen_pvh_parse_preload_data() 629 if (envp != NULL) in xen_pvh_parse_preload_data() 630 envp += off; in xen_pvh_parse_preload_data() 631 xen_pvh_set_env(envp, reject_option); in xen_pvh_parse_preload_data()
|
| /freebsd-13.1/contrib/llvm-project/libcxx/include/ |
| H A D | cfenv | 47 int fegetenv(fenv_t* envp); 48 int feholdexcept(fenv_t* envp); 49 int fesetenv(const fenv_t* envp); 50 int feupdateenv(const fenv_t* envp);
|
| /freebsd-13.1/sys/mips/beri/ |
| H A D | beri_machdep.c | 178 char **envp = (char **)a2; in platform_start() local 266 for (i = 0; envp[i]; i += 2) in platform_start() 267 printf("\t%s = %s\n", envp[i], envp[i+1]); in platform_start()
|
| /freebsd-13.1/contrib/kyua/utils/ |
| H A D | env.cpp | 65 for (char** envp = environ; *envp != NULL; envp++) { in getallenv() local 66 const std::string oneenv = *envp; in getallenv()
|
| /freebsd-13.1/sys/contrib/openzfs/lib/libzfs/os/freebsd/ |
| H A D | libzfs_compat.c | 50 char * const *envp) in execvPe() argument 110 retry: (void) execve(bp, argv, envp); in execvPe() 129 execve(_PATH_BSHELL, __DECONST(char **, memp), envp); in execvPe() 168 execvpe(const char *name, char * const argv[], char * const envp[]) in execvpe() argument 176 return (execvPe(name, path, argv, envp)); in execvpe()
|
| /freebsd-13.1/contrib/netbsd-tests/kernel/kqueue/ |
| H A D | t_proc1.c | 62 char *envp[] = { NULL, NULL }; in child() local 67 if ((envp[0] = strdup("FOO=BAZ")) == NULL) in child() 87 execve("/usr/bin/true", argv, envp); in child()
|