| /freebsd/contrib/tcp_wrappers/ |
| H A D | environ.c | 52 char **envp; in findenv() local 54 for (envp = environ; envp && *envp; envp++) in findenv() 55 if (strncmp(name, *envp, len) == 0 && (*envp)[len] == '=') in findenv() 56 return (envp); in findenv() 65 char **envp = findenv(name, len); in getenv() local 67 return (envp ? *envp + len + 1 : 0); in getenv() 84 char **envp; in unsetenv() local 86 if ((envp = findenv(name, namelength(name))) != 0) in unsetenv() 87 while (envp[0] = envp[1]) in unsetenv() 88 envp++; in unsetenv() [all …]
|
| /freebsd/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_data_bcmraw.c | 79 char envp[16]; in bhnd_nvram_bcmraw_probe() local 89 envp_len = bhnd_nv_ummin(sizeof(envp), io_size); in bhnd_nvram_bcmraw_probe() 90 if ((error = bhnd_nvram_io_read(io, 0x0, envp, envp_len))) in bhnd_nvram_bcmraw_probe() 99 if (envp[0] != '\0') in bhnd_nvram_bcmraw_probe() 108 char c = envp[i]; in bhnd_nvram_bcmraw_probe() 125 if ((error = bhnd_nvram_io_read(io, io_size-envp_len, envp, envp_len))) in bhnd_nvram_bcmraw_probe() 128 if (envp[0] != '\0' || envp[1] != '\0') in bhnd_nvram_bcmraw_probe() 272 char *envp; in bhnd_nvram_bcmraw_init() local 278 envp in bhnd_nvram_bcmraw_init() 380 const char *envp; bhnd_nvram_bcmraw_next() local 439 const char *envp; bhnd_nvram_bcmraw_getvar_ptr() local [all...] |
| H A D | bhnd_nvram_data_bcm.c | 642 char *envp; in bhnd_nvram_bcm_init() local 648 envp = (char *) (p + io_offset); in bhnd_nvram_bcm_init() 649 envp_len = strnlen(envp, io_size - io_offset); in bhnd_nvram_bcm_init() 650 error = bhnd_nvram_parse_env(envp, envp_len, '=', &name, in bhnd_nvram_bcm_init() 661 *(envp + name_len) = '\0'; in bhnd_nvram_bcm_init() 674 if (hvar->envp != NULL) in bhnd_nvram_bcm_init() 682 hvar->envp = envp; in bhnd_nvram_bcm_init() 746 if (bcm->hvars[i].envp == NULL) in bhnd_nvram_bcm_init() 828 const char *envp, *basep; in bhnd_nvram_bcm_next() local 860 if (hvar_next->envp != NULL && !hvar_next->stale) in bhnd_nvram_bcm_next() [all …]
|
| /freebsd/usr.sbin/cron/lib/ |
| H A D | env.c | 39 env_free(char **envp) in env_free() argument 43 if ((p = envp)) in env_free() 46 free(envp); in env_free() 51 env_copy(char **envp) in env_copy() argument 56 for (count = 0; envp[count] != NULL; count++) in env_copy() 64 if ((p[i] = strdup(envp[i])) == NULL) { in env_copy() 77 env_set(char **envp, char *envstr) in env_set() argument 88 for (count = 0; envp[count] != NULL; count++) { in env_set() 89 if (!strcmp_until(envp[count], envstr, '=')) in env_set() 99 q = envp[found]; in env_set() [all …]
|
| H A D | entry.c | 83 if (e->envp != NULL) in free_entry() 84 env_free(e->envp); in free_entry() 94 char **envp) in load_entry() argument 379 e->envp = env_copy(envp); in load_entry() 380 if (e->envp == NULL) { in load_entry() 385 if (!env_get("SHELL", e->envp)) { in load_entry() 386 prev_env = e->envp; in load_entry() 387 e->envp = env_set(e->envp, "SHELL=" _PATH_BSHELL); in load_entry() 388 if (e->envp == NULL) { in load_entry() 399 if (!env_get("HOME", e->envp)) { in load_entry() [all …]
|
| /freebsd/lib/msun/aarch64/ |
| H A D | fenv.c | 79 (fegetenv)(fenv_t *envp) 81 return (__fegetenv_int(envp)); 85 (feholdexcept)(fenv_t *envp) 87 return (__feholdexcept_int(envp)); 91 (fesetenv)(const fenv_t *envp) 93 return (__fesetenv_int(envp)); 97 (feupdateenv)(const fenv_t *envp) 99 return (__feupdateenv_int(envp));
|
| /freebsd/lib/msun/riscv/ |
| H A D | fenv.c | 78 (fegetenv)(fenv_t *envp) 80 return (__fegetenv_int(envp)); 84 (feholdexcept)(fenv_t *envp) 86 return (__feholdexcept_int(envp)); 90 (fesetenv)(const fenv_t *envp) 92 return (__fesetenv_int(envp)); 96 (feupdateenv)(const fenv_t *envp) 98 return (__feupdateenv_int(envp));
|
| /freebsd/lib/msun/powerpc/ |
| H A D | fenv.c | 76 (fegetenv)(fenv_t *envp) 78 return (__fegetenv_int(envp)); 82 (feholdexcept)(fenv_t *envp) 84 return (__feholdexcept_int(envp)); 88 (fesetenv)(const fenv_t *envp) 90 return (__fesetenv_int(envp)); 94 (feupdateenv)(const fenv_t *envp) 96 return (__feupdateenv_int(envp));
|
| /freebsd/lib/msun/amd64/ |
| H A D | fenv.c | 103 fegetenv(fenv_t *envp) in fegetenv() argument 106 __fnstenv(&envp->__x87); in fegetenv() 107 __stmxcsr(&envp->__mxcsr); in fegetenv() 112 __fldcw(&envp->__x87.__control); in fegetenv() 117 feholdexcept(fenv_t *envp) in feholdexcept() argument 122 __fnstenv(&envp->__x87); in feholdexcept() 124 envp->__mxcsr = mxcsr; in feholdexcept() 132 (fesetenv)(const fenv_t *envp) 134 return (__fesetenv_int(envp)); 138 feupdateenv(const fenv_t *envp) in feupdateenv() argument [all …]
|
| /freebsd/lib/msun/i387/ |
| H A D | fenv.c | 148 fegetenv(fenv_t *envp) in fegetenv() argument 152 __fnstenv(envp); in fegetenv() 157 __fldcw(&envp->__control); in fegetenv() 160 __set_mxcsr(*envp, mxcsr); in fegetenv() 166 feholdexcept(fenv_t *envp) in feholdexcept() argument 170 __fnstenv(envp); in feholdexcept() 174 __set_mxcsr(*envp, mxcsr); in feholdexcept() 183 (fesetenv)(const fenv_t *envp) 185 return (__fesetenv_int(envp)); 189 feupdateenv(const fenv_t *envp) in feupdateenv() argument [all …]
|
| /freebsd/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/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/lib/libc/gen/ |
| H A D | exec.c | 82 char **envp; in execle() local 100 envp = va_arg(ap, char **); in execle() 102 return (_execve(name, __DECONST(char **, argv), envp)); in execle() 148 execvPe_prog(const char *path, char * const *argv, char * const *envp) in execvPe_prog() argument 155 (void)_execve(path, argv, envp); in execvPe_prog() 193 (void)_execve(_PATH_BSHELL, __DECONST(char **, memp), envp); in execvPe_prog() 248 char * const *envp) in execvPe() argument 264 (void)execvPe_prog(name, argv, envp); in execvPe() 331 if (execvPe_prog(buf, argv, envp) == -1) in execvPe() 358 __libc_execvpe(const char *name, char * const argv[], char * const envp[]) in __libc_execvpe() argument [all …]
|
| H A D | posix_spawn.c | 229 char * const * envp; member 252 char * const *envp; in _posix_spawn_thr() local 265 envp = psa->envp != NULL ? psa->envp : environ; in _posix_spawn_thr() 267 fexecve((*(psa->sa))->sa_execfd, psa->argv, envp); in _posix_spawn_thr() 269 __libc_execvpe(psa->path, psa->argv, envp); in _posix_spawn_thr() 271 _execve(psa->path, psa->argv, envp); in _posix_spawn_thr() 282 char * const argv[], char * const envp[], int use_env_path) in do_posix_spawn() argument 330 psa.envp in do_posix_spawn() 402 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[]) posix_spawn() argument 411 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[]) posix_spawnp() argument [all...] |
| /freebsd/stand/ficl/ |
| H A D | ficl.c | 118 pSys->envp = dictCreate((unsigned)nEnvCells); in ficlInitSystemEx() 119 pSys->envp->pForthWords->name = "environment"; in ficlInitSystemEx() 566 return pSys->envp; in ficlGetEnv() 579 FICL_DICT *envp = pSys->envp; in ficlSetEnv() local 582 pFW = dictLookup(envp, si); in ficlSetEnv() 586 dictAppendWord(envp, name, constantParen, FW_DEFAULT); in ficlSetEnv() 587 dictAppendCell(envp, LVALUEtoCELL(value)); in ficlSetEnv() 601 FICL_DICT *envp = pSys->envp; in ficlSetEnvD() local 603 pFW = dictLookup(envp, si); in ficlSetEnvD() 607 dictAppendWord(envp, name, twoConstParen, FW_DEFAULT); in ficlSetEnvD() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/ |
| H A D | zutil_setproctitle.c | 87 spt_copyenv(int envc, char *envp[]) in spt_copyenv() argument 94 if (environ != envp) in spt_copyenv() 107 memcpy(envcopy, envp, envsize); in spt_copyenv() 123 environ = envp; in spt_copyenv() 159 zfs_setproctitle_init(int argc, char *argv[], char *envp[]) in zfs_setproctitle_init() argument 182 for (i = 0; envp[i]; i++) { in zfs_setproctitle_init() 183 if (envp[i] != end) in zfs_setproctitle_init() 186 end = envp[i] + strlen(envp[i]) + 1; in zfs_setproctitle_init() 203 error = spt_copyenv(envc, envp); in zfs_setproctitle_init()
|
| /freebsd/stand/i386/libi386/ |
| H A D | bootinfo64.c | 103 uint64_t envp; in bi_load64() local 151 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp); in bi_load64() 164 envp = md_align(addr + size); in bi_load64() 165 addr = md_copyenv(envp); in bi_load64() 177 bcopy(&envp, md->md_data, sizeof envp); in bi_load64()
|
| H A D | bootinfo32.c | 61 vm_offset_t envp; in bi_load32() local 126 envp = addr; in bi_load32() 137 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp); in bi_load32() 176 bi->bi_envp = envp; in bi_load32()
|
| /freebsd/usr.sbin/cron/cron/ |
| H A D | user.c | 58 char **envp, **tenvp; in load_user() local 83 if ((envp = env_init()) == NULL) { in load_user() 100 e = load_entry(file, log_error, pw, envp); in load_user() 107 if ((tenvp = env_set(envp, envstr))) { in load_user() 108 envp = tenvp; in load_user() 119 env_free(envp); in load_user()
|
| /freebsd/lib/msun/arm/ |
| H A D | fenv.c | 111 (fegetenv)(fenv_t *envp) 113 return (__fegetenv_int(envp)); 117 (feholdexcept)(fenv_t *envp) 119 return (__feholdexcept_int(envp)); 123 (fesetenv)(const fenv_t *envp) 125 return (__fesetenv_int(envp)); 129 (feupdateenv)(const fenv_t *envp) 131 return (__feupdateenv_int(envp));
|
| /freebsd/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/stand/kboot/libkboot/ |
| H A D | crt1.c | 67 char **envp; in _start_c() local 72 envp = (char **)argv + argc + 1; in _start_c() 76 main(argc, argv, envp); in _start_c()
|
| /freebsd/stand/userboot/userboot/ |
| H A D | bootinfo32.c | 60 vm_offset_t envp; in bi_load32() local 105 envp = addr; in bi_load32() 116 file_addmetadata(kfp, MODINFOMD_ENVP, sizeof envp, &envp); in bi_load32() 155 bi.bi_envp = envp; in bi_load32()
|
| /freebsd/usr.sbin/crunch/crunchgen/ |
| H A D | crunched_main.c | 111 main(int argc, char **argv, char **envp) in main() 166 return ep->f(argc, argv, envp); in main() 175 crunched_main(int argc, char **argv, char **envp) in crunched_main() 181 return main(--argc, ++argv, envp); 185 crunched_list(int argc __unused, char **argv __unused, char **envp __unused) in crunched_usage() 110 main(int argc,char ** argv,char ** envp) main() argument 173 crunched_main(int argc,char ** argv,char ** envp) crunched_main() argument
|