CORSIKA add-on package IACT/ATMO:  Version 1.63 (November 2020)
Data Structures | Functions
fileopen.h File Reference

Function prototypes for fileopen.c. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  incpath
 An element in a linked list of include paths. More...
 

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. 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 incpathget_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...
 

Detailed Description

Author
Konrad Bernloehr
Date
CVS $Date: 2019/02/04 13:29:01 $ 
Version
CVS $Revision: 1.11 $ 

Function Documentation

◆ 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.

Here is the caller graph for this function:

◆ disable_permissive_pipes()

void disable_permissive_pipes ( void  )

References permissive_pipes.

Here is the caller graph for this function:

◆ enable_permissive_pipes()

void enable_permissive_pipes ( void  )

References permissive_pipes, and root_exe_path.

Here is the caller graph for this function:

◆ fileclose()

int fileclose ( FILE *  f)
Here is the caller graph for this function:

◆ fileopen()

FILE* fileopen ( const char *  fname,
const char *  mode 
)
Here is the caller graph for this function:

◆ initpath()

void initpath ( const char *  default_path)

◆ listpath()

void listpath ( char *  buffer,
size_t  bufsize 
)

References incpath::path, and root_path.

◆ set_permissive_pipes()

void set_permissive_pipes ( int  p)