30 #ifndef FILEOPEN_H__LOADED 31 #define FILEOPEN_H__LOADED 1 45 void initpath(
const char *default_path);
46 void initexepath(
const char *default_path);
47 void listpath (
char *buffer,
size_t bufsize);
50 FILE *
fileopen(
const char *fname,
const char *mode);
52 struct incpath *get_include_path(
void);
61 # if defined(_BASIC_STRING_H) || defined(_LIBCPP_STRING) 63 inline FILE *
fileopen(
const std::string& fname,
const char *mode)
64 {
return fileopen(fname.c_str(),mode); }
void disable_permissive_pipes(void)
Disable the permissive execution of pipes.
Definition: fileopen.c:200
int fileclose(FILE *f)
Close a file or fifo but not if it is one of the standard streams.
Definition: fileopen.c:1231
void enable_permissive_pipes(void)
Enable the permissive execution of pipes.
Definition: fileopen.c:191
FILE * fileopen(const char *fname, const char *mode)
Search for a file in the include path list and open it if possible.
Definition: fileopen.c:982
void listpath(char *buffer, size_t bufsize)
Show the list of include paths.
Definition: fileopen.c:297
void addexepath(const char *name)
Add a path to the list of execution paths, if not already there.
Definition: fileopen.c:379
void addpath(const char *name)
Add a path to the list of include paths, if not already there.
Definition: fileopen.c:327
struct incpath * next
The next element.
Definition: fileopen.h:42
char * path
The path name.
Definition: fileopen.h:41
An element in a linked list of include paths.
Definition: fileopen.h:39
void set_permissive_pipes(int p)
Enable or disable the permissive execution of pipes.
Definition: fileopen.c:181
void initpath(const char *default_path)
Init the path list, with default_path as the only entry.
Definition: fileopen.c:215