Function prototypes for fileopen.c.
More...
Go to the source code of this file.
|
void | addexepath (const char *name) |
| Add a path to the list of execution paths, if not already there. More...
|
|
void | addpath (const char *name) |
| Add a path to the list of include paths, if not already there. More...
|
|
void | disable_permissive_pipes (void) |
| Disable the permissive execution of pipes. More...
|
|
void | enable_permissive_pipes (void) |
| Enable the permissive execution of pipes. More...
|
|
int | fileclose (FILE *f) |
| Close a file or fifo but not if it is one of the standard streams. More...
|
|
FILE * | fileopen (const char *fname, const char *mode) |
| Search for a file in the include path list and open it if possible. More...
|
|
struct incpath * | get_include_path (void) |
|
void | initexepath (const char *default_path) |
|
void | initpath (const char *default_path) |
| Init the path list, with default_path as the only entry. More...
|
|
void | listpath (char *buffer, size_t bufsize) |
| Show the list of include paths. More...
|
|
void | set_permissive_pipes (int p) |
| Enable or disable the permissive execution of pipes. More...
|
|
- Author
- Konrad Bernloehr
- Date
CVS $Date: 2019/02/04 13:29:01 $
- Version
CVS $Revision: 1.11 $
◆ addexepath()
void addexepath |
( |
const char * |
name | ) |
|
The path name is always copied to a newly allocated memory location. This path name can actually be a colon-separated list, as for initexepath().
References addpath(), root_exe_path, and root_path.
◆ addpath()
void addpath |
( |
const char * |
name | ) |
|
The path name is always copied to a newly allocated memory location. This path name can actually be a colon-separated list, as for initpath(). Also environment variables (indicated by starting with '$', e.g. "$HOME") are accepted (and may expand into colon-separated list) but no mixed expansion (like "$HOME/bin").
References getword(), incpath::next, incpath::path, and root_path.
◆ disable_permissive_pipes()
void disable_permissive_pipes |
( |
void |
| ) |
|
◆ enable_permissive_pipes()
void enable_permissive_pipes |
( |
void |
| ) |
|
◆ fileclose()
int fileclose |
( |
FILE * |
f | ) |
|
◆ fileopen()
FILE* fileopen |
( |
const char * |
fname, |
|
|
const char * |
mode |
|
) |
| |
◆ initpath()
void initpath |
( |
const char * |
default_path | ) |
|
◆ listpath()
void listpath |
( |
char * |
buffer, |
|
|
size_t |
bufsize |
|
) |
| |
◆ set_permissive_pipes()
void set_permissive_pipes |
( |
int |
p | ) |
|