Motr  M0
fs.h File Reference

Go to the source code of this file.

Macros

#define __MOTR_LIB_FS_H__
 

Functions

M0_INTERNAL int m0_cleandir (const char *dir)
 
M0_INTERNAL int m0_file_read (const char *path, char **out)
 

Macro Definition Documentation

◆ __MOTR_LIB_FS_H__

#define __MOTR_LIB_FS_H__

Definition at line 26 of file fs.h.

Function Documentation

◆ m0_cleandir()

M0_INTERNAL int m0_cleandir ( const char *  dir)

Definition at line 25 of file fs.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_file_read()

M0_INTERNAL int m0_file_read ( const char *  path,
char **  out 
)

Reads file contents into dynamically allocated string.

Note
If the call succeeds, the user is responsible for freeing allocated memory with m0_free(*out).

Definition at line 61 of file fs.c.

Here is the call graph for this function:
Here is the caller graph for this function: