lib: fs: implement mounting filesystems; reading, writing from files
This commit is contained in:
@@ -2,12 +2,17 @@
|
||||
#define _FS_INTERFACE_H_
|
||||
|
||||
#include <mango/types.h>
|
||||
#include <xpc/buffer.h>
|
||||
#include <xpc/context.h>
|
||||
#include <xpc/endpoint.h>
|
||||
#include <xpc/string.h>
|
||||
|
||||
struct msg_endpoint;
|
||||
|
||||
extern kern_status_t fs_msg_open(
|
||||
const struct msg_endpoint *sender,
|
||||
const char *path,
|
||||
xpc_context_t *ctx,
|
||||
const xpc_endpoint_t *sender,
|
||||
const xpc_string_t *path,
|
||||
int flags,
|
||||
int *out_err,
|
||||
void *arg);
|
||||
@@ -18,4 +23,13 @@ extern kern_status_t fs_msg_close(
|
||||
int *out_err,
|
||||
void *arg);
|
||||
|
||||
extern kern_status_t fs_msg_read(
|
||||
xpc_context_t *ctx,
|
||||
const xpc_endpoint_t *sender,
|
||||
size_t count,
|
||||
int *out_err,
|
||||
size_t *out_nr_read,
|
||||
xpc_buffer_t *out_data,
|
||||
void *arg);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user