Cthulhu  0.2.10
Cthulhu compiler collection
posix.h File Reference
#include <errno.h>
#include <stdio.h>
#include <dirent.h>
#include <pthread.h>
Include dependency graph for posix.h:

Go to the source code of this file.

Data Structures

struct  os_mapping_t
 memory mapping handle More...
 

Macros

#define CT_OS_INVALID_FILE   NULL
 
#define CT_OS_INVALID_LIBRARY   NULL
 
#define CT_OS_INVALID_MAPPING   NULL
 
#define CT_OS_INVALID_ITER   NULL
 
#define CT_OS_THREAD_INVALID   NULL
 
#define CT_OS_NAME_MAX   255
 

Typedefs

typedef void * os_library_impl_t
 
typedef FILE * os_file_impl_t
 
typedef struct dirent * os_inode_impl_t
 
typedef DIR * os_iter_impl_t
 
typedef pthread_t os_thread_impl_t
 
typedef pthread_mutex_t os_mutex_impl_t
 

Enumerations

enum  { eOsSuccess = 0 , eOsNotFound = ENOENT , eOsExists = EEXIST , eOsTooSmall = ENOSPC }
 

Macro Definition Documentation

◆ CT_OS_INVALID_FILE

#define CT_OS_INVALID_FILE   NULL

Definition at line 30 of file posix.h.

◆ CT_OS_INVALID_ITER

#define CT_OS_INVALID_ITER   NULL

Definition at line 35 of file posix.h.

◆ CT_OS_INVALID_LIBRARY

#define CT_OS_INVALID_LIBRARY   NULL

Definition at line 31 of file posix.h.

◆ CT_OS_INVALID_MAPPING

#define CT_OS_INVALID_MAPPING   NULL

Definition at line 34 of file posix.h.

◆ CT_OS_NAME_MAX

#define CT_OS_NAME_MAX   255

Definition at line 42 of file posix.h.

◆ CT_OS_THREAD_INVALID

#define CT_OS_THREAD_INVALID   NULL

Definition at line 36 of file posix.h.

Typedef Documentation

◆ os_file_impl_t

typedef FILE* os_file_impl_t

Definition at line 11 of file posix.h.

◆ os_inode_impl_t

typedef struct dirent* os_inode_impl_t

Definition at line 12 of file posix.h.

◆ os_iter_impl_t

typedef DIR* os_iter_impl_t

Definition at line 13 of file posix.h.

◆ os_library_impl_t

typedef void* os_library_impl_t

Definition at line 10 of file posix.h.

◆ os_mutex_impl_t

typedef pthread_mutex_t os_mutex_impl_t

Definition at line 15 of file posix.h.

◆ os_thread_impl_t

typedef pthread_t os_thread_impl_t

Definition at line 14 of file posix.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
eOsSuccess 
eOsNotFound 
eOsExists 
eOsTooSmall 

Definition at line 23 of file posix.h.