libroot: Add a private __look_up_in_path function.

Refactored out of execvpe. Originally I did this for my attempted
change to posix_spawn, but that change turned out to be wrong and
actually not that beneficial. This bit seems potentially useful,
though, so here it is.
This commit is contained in:
Augustin Cavalier
2019-08-30 16:24:09 -04:00
parent 852cf6de56
commit 12eb0e5d89
3 changed files with 55 additions and 41 deletions
@@ -23,6 +23,7 @@ extern int __gABIVersion;
extern char _single_threaded;
/* This determines if a process runs single threaded or not */
status_t __look_up_in_path(const char *name, char *buffer);
status_t __parse_invoke_line(char *invoker, char ***_newArgs,
char * const **_oldArgs, int32 *_argCount, const char *arg0);
status_t __get_next_image_dependency(image_id id, uint32 *cookie,