|
CORSIKA add-on package IACT/ATMO:
Version 1.70 (August 2025)
|
Function prototypes for fileopen.c. More...

Go to the source code of this file.
Data Structures | |
| struct | incpath |
| An element in a linked list of include paths. More... | |
Macros | |
| #define | WITH_FILEOPEN_GET_VERBOSE 1 |
| #define | WITH_FILEOPEN_PREFIX |
| #define | WITH_FILEOPEN_SET_VERBOSE 1 |
Functions | |
| 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. | |
| void | enable_permissive_pipes (void) |
| Enable the permissive execution of pipes. | |
| int | fileclose (FILE *f) |
| Close a file or fifo but not if it is one of the standard streams. | |
| FILE * | fileopen (const char *fname, const char *mode) |
| Search for a file in the include path list and open it if possible. | |
| void | fileopen_addexepath (const char *name) |
| void | fileopen_addpath (const char *name) |
| void | fileopen_disable_permissive_pipes (void) |
| void | fileopen_enable_permissive_pipes (void) |
| struct incpath * | fileopen_get_include_path (void) |
| int | fileopen_get_verbose (void) |
| Get current status of verbose mode without changing anything. | |
| void | fileopen_initexepath (const char *default_path) |
| void | fileopen_initpath (const char *default_path) |
| void | fileopen_listpath (char *buffer, size_t bufsize) |
| void | fileopen_set_permissive_pipes (int p) |
| int | fileopen_set_verbose (int v) |
| Dynamically set/unset verbose mode and report back the previous setting, in case we want to restore it later-on. More... | |
| struct incpath * | get_include_path (void) |
| Query the current set of include paths. | |
| void | initexepath (const char *default_path) |
| void | initpath (const char *default_path) |
| Init the path list, with default_path as the only entry. | |
| void | listpath (char *buffer, size_t bufsize) |
| Show the list of include paths. | |
| void | set_permissive_pipes (int p) |
| Enable or disable the permissive execution of pipes. | |
| 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().
| 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").
| int fileopen_set_verbose | ( | int | v | ) |
Override at run-time what may have been initialized from the FILEOPEN_VERBOSE environment variable once.
References verbose.