Cthulhu  0.2.10
Cthulhu compiler collection
os_common.c File Reference
#include "os/os.h"
#include "base/panic.h"
#include "os/os.inc"
Include dependency graph for os_common.c:

Go to the source code of this file.

Macros

#define OS_DIRENT(ID, STR)   [ID] = (STR),
 

Functions

STA_DECL const char * os_dirent_string (os_dirent_t type)
 get the string representation of a directory entry type More...
 
STA_DECL const char * os_access_string (os_access_t access)
 get the string representation of a file access mode More...
 
STA_DECL const char * os_protect_string (os_protect_t protect)
 get the string representation of a file mapping memory protection More...
 

Macro Definition Documentation

◆ OS_DIRENT

#define OS_DIRENT (   ID,
  STR 
)    [ID] = (STR),

Function Documentation

◆ os_access_string()

STA_DECL const char* os_access_string ( os_access_t  access)

get the string representation of a file access mode

Parameters
accessthe file access mode
Returns
the string representation

Definition at line 32 of file os_common.c.

◆ os_dirent_string()

STA_DECL const char* os_dirent_string ( os_dirent_t  type)

get the string representation of a directory entry type

Parameters
typethe directory entry type
Returns
the string representation

Definition at line 13 of file os_common.c.

◆ os_protect_string()

STA_DECL const char* os_protect_string ( os_protect_t  protect)

get the string representation of a file mapping memory protection

Parameters
protectthe file mapping memory protection
Returns
the string representation

Definition at line 50 of file os_common.c.