LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
osal_file_posix.c File Reference
#include "osal/file/osal_file_env.h"
#include "osal/file/osal_file_ops.h"
#include "osal/file/osal_file_types.h"
#include "osal/mem/osal_mem_ops.h"
#include "policy/lexleo_cstd_types.h"
#include "policy/lexleo_cstd_io.h"
#include "policy/lexleo_cstd_errno.h"
#include "policy/lexleo_panic.h"
Include dependency graph for osal_file_posix.c:

Go to the source code of this file.

Data Structures

struct  osal_file_t
 

Functions

static osal_file_status_t map_errno (int e)
 
static void set_status (osal_file_status_t *st, osal_file_status_t v)
 
static const char * mode_from_flags (uint32_t flags, osal_file_status_t *st)
 
static osal_file_tposix_open (const char *path_utf8, uint32_t flags, osal_file_status_t *st, const osal_file_env_t *env)
 
static size_t posix_read (osal_file_t *f, void *buf, size_t n, osal_file_status_t *st)
 
static size_t posix_write (osal_file_t *f, const void *buf, size_t n, osal_file_status_t *st)
 
static osal_file_status_t posix_flush (osal_file_t *f)
 
static osal_file_status_t posix_close (osal_file_t *f)
 
const osal_file_ops_tosal_file_posix_ops (void)
 

Function Documentation

◆ map_errno()

static osal_file_status_t map_errno ( int  e)
static

Definition at line 19 of file osal_file_posix.c.

◆ mode_from_flags()

static const char * mode_from_flags ( uint32_t  flags,
osal_file_status_t st 
)
static

Definition at line 39 of file osal_file_posix.c.

◆ osal_file_posix_ops()

const osal_file_ops_t * osal_file_posix_ops ( void  )

Definition at line 227 of file osal_file_posix.c.

◆ posix_close()

static osal_file_status_t posix_close ( osal_file_t f)
static

Definition at line 203 of file osal_file_posix.c.

◆ posix_flush()

static osal_file_status_t posix_flush ( osal_file_t f)
static

Definition at line 187 of file osal_file_posix.c.

◆ posix_open()

static osal_file_t * posix_open ( const char *  path_utf8,
uint32_t  flags,
osal_file_status_t st,
const osal_file_env_t env 
)
static

Definition at line 83 of file osal_file_posix.c.

◆ posix_read()

static size_t posix_read ( osal_file_t f,
void *  buf,
size_t  n,
osal_file_status_t st 
)
static

Definition at line 127 of file osal_file_posix.c.

◆ posix_write()

static size_t posix_write ( osal_file_t f,
const void *  buf,
size_t  n,
osal_file_status_t st 
)
static

Definition at line 157 of file osal_file_posix.c.

◆ set_status()

static void set_status ( osal_file_status_t st,
osal_file_status_t  v 
)
static

Definition at line 35 of file osal_file_posix.c.