#include <stddef.h>
#include <sys/types.h>
#include <ert/runtime.h>
Go to the source code of this file.
|
| 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...
|
| |
◆ ert_close()
Close a remote file.
- Parameters
-
| fd | Remote file descriptor. |
| cb_data | Callback closure data. |
| cb | Callback. |
- Returns
- Error code if failed, otherwise WIO_OK.
◆ ert_open()
Open a remote file.
- Parameters
-
| path | Remote file path. |
| flags | Open flags. |
| mode | Open mode. |
| cb_data | Callback closure data. |
| cb | Callback. |
- Returns
- Error code if failed, otherwise WIO_OK.
◆ ert_read()
Read data from remote file.
- Parameters
-
| fd | Remote file descriptor. |
| size | Data size. |
| cb_data | Callback closure data. |
| cb | Callback. |
- Returns
- Error code if failed, otherwise WIO_OK.
◆ ert_write()
Write data to remote file.
- Parameters
-
| fd | Remote file descriptor. |
| buf | Data to write. |
| size | Size of data to write. |
| cb_data | Callback closure data. |
| cb | Callback. |
- Returns
- Error code if failed, otherwise WIO_OK.