WISP ERT (Client)  1.0.0
The WISP Extended Runtime (WISP side)
fs.c File Reference
#include <string.h>
#include <stdlib.h>
#include <ert/rpc.h>
#include <ert/urpc.h>
#include <ert/fs.h>

Functions

static WIO_CALLBACK (ert_fs_rpc_cb)
 
ert_status_t ert_open (const char *path, int flags, mode_t mode, void *cb_data, wio_callback_t cb)
 Open a remote file. More...
 
ert_status_t ert_close (int fd, void *cb_data, wio_callback_t cb)
 Close a remote file. More...
 
ert_status_t ert_read (int fd, size_t size, void *cb_data, wio_callback_t cb)
 Read data from remote file. More...
 
ert_status_t ert_write (int fd, const void *buf, size_t size, void *cb_data, wio_callback_t cb)
 Write data to remote file. More...
 

Function Documentation

◆ ert_close()

ert_status_t ert_close ( int  fd,
void *  cb_data,
wio_callback_t  cb 
)

Close a remote file.

◆ ert_open()

ert_status_t ert_open ( const char *  path,
int  flags,
mode_t  mode,
void *  cb_data,
wio_callback_t  cb 
)

Open a remote file.

◆ ert_read()

ert_status_t ert_read ( int  fd,
size_t  size,
void *  cb_data,
wio_callback_t  cb 
)

Read data from remote file.

◆ ert_write()

ert_status_t ert_write ( int  fd,
const void *  buf,
size_t  size,
void *  cb_data,
wio_callback_t  cb 
)

Write data to remote file.

◆ WIO_CALLBACK()

static WIO_CALLBACK ( ert_fs_rpc_cb  )
static

ERT RPC file system operation callback.