do_in_path()
Find the file name
in all directories of path
and invokes callback
if found.
name
can contain wildcards.
flags
:
-
DIP_ALL
- source all files, otherwise only the first one.
-
DIP_DIR
- find directories instead of files.
-
DIP_ERR
- give an error message if there is no match.
Returns FAIL
if no file could be sourced, OK
otherwise.
do_in_path_and_pp()
If flags
has DIP_ALL
repeat for all matches, otherwise only the first one is used.
Returns OK when at least one match found, FAIL otherwise.
If name
is NULL
calls callback for each entry in path
. Cookie is passed by reference in this case, setting it to NULL indicates that callback has done its job.
fopen_noinh_readbin()
Special function to open a file without handle inheritance.
When possible the handle is closed on exec().
Returns a FILE*
.