apps/: Rename BINFMT_EXEPATH to LIB_ENVPATH.
This commit is contained in:
parent
aeabc12536
commit
3432acf7c4
@ -158,7 +158,7 @@ static unsigned int g_mmstep; /* Memory Usage at beginning of test step */
|
||||
static const char delimiter[] =
|
||||
"****************************************************************************";
|
||||
|
||||
#ifndef CONFIG_BINFMT_EXEPATH
|
||||
#ifndef CONFIG_LIB_ENVPATH
|
||||
static char fullpath[128];
|
||||
#endif
|
||||
|
||||
@ -364,7 +364,7 @@ int elf_main(int argc, char *argv[])
|
||||
|
||||
mm_update(&g_mmstep, "after mount");
|
||||
|
||||
#if defined(CONFIG_BINFMT_EXEPATH) && !defined(CONFIG_PATH_INITIAL)
|
||||
#if defined(CONFIG_LIB_ENVPATH) && !defined(CONFIG_PATH_INITIAL)
|
||||
/* Does the system support the PATH variable? Has the PATH variable
|
||||
* already been set? If YES and NO, then set the PATH variable to
|
||||
* the ROMFS mountpoint.
|
||||
@ -391,7 +391,7 @@ int elf_main(int argc, char *argv[])
|
||||
* search the PATH variable to find the executable.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BINFMT_EXEPATH
|
||||
#ifdef CONFIG_LIB_ENVPATH
|
||||
filename = dirlist[i];
|
||||
#else
|
||||
snprintf(fullpath, 128, "%s/%s", MOUNTPT, dirlist[i]);
|
||||
|
@ -131,7 +131,7 @@
|
||||
static const char delimiter[] =
|
||||
"****************************************************************************";
|
||||
|
||||
#ifndef CONFIG_BINFMT_EXEPATH
|
||||
#ifndef CONFIG_LIB_ENVPATH
|
||||
static char fullpath[128];
|
||||
#endif
|
||||
|
||||
@ -189,7 +189,7 @@ int nxflat_main(int argc, char *argv[])
|
||||
ROMFSDEV, MOUNTPT, errno);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BINFMT_EXEPATH) && !defined(CONFIG_PATH_INITIAL)
|
||||
#if defined(CONFIG_LIB_ENVPATH) && !defined(CONFIG_PATH_INITIAL)
|
||||
/* Does the system support the PATH variable? Has the PATH variable
|
||||
* already been set? If YES and NO, then set the PATH variable to
|
||||
* the ROMFS mountpoint.
|
||||
@ -216,7 +216,7 @@ int nxflat_main(int argc, char *argv[])
|
||||
* search the PATH variable to find the executable.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BINFMT_EXEPATH
|
||||
#ifdef CONFIG_LIB_ENVPATH
|
||||
filename = dirlist[i];
|
||||
#else
|
||||
snprintf(fullpath, 128, "%s/%s", MOUNTPT, dirlist[i]);
|
||||
|
@ -279,7 +279,7 @@ int spawn_main(int argc, char *argv[])
|
||||
* the ROMFS mountpoint.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_BINFMT_EXEPATH) && !defined(CONFIG_PATH_INITIAL)
|
||||
#if defined(CONFIG_LIB_ENVPATH) && !defined(CONFIG_PATH_INITIAL)
|
||||
(void)setenv("PATH", MOUNTPT, 1);
|
||||
#endif
|
||||
|
||||
@ -325,7 +325,7 @@ int spawn_main(int argc, char *argv[])
|
||||
* search the PATH variable to find the executable.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BINFMT_EXEPATH
|
||||
#ifdef CONFIG_LIB_ENVPATH
|
||||
filepath = g_hello;
|
||||
#else
|
||||
snprintf(fullpath, 128, "%s/%s", MOUNTPT, g_hello);
|
||||
@ -422,7 +422,7 @@ int spawn_main(int argc, char *argv[])
|
||||
* search the PATH variable to find the executable.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BINFMT_EXEPATH
|
||||
#ifdef CONFIG_LIB_ENVPATH
|
||||
filepath = g_redirect;
|
||||
#else
|
||||
snprintf(fullpath, 128, "%s/%s", MOUNTPT, g_redirect);
|
||||
|
Loading…
Reference in New Issue
Block a user