22 lines
365 B
C
22 lines
365 B
C
|
|
#include <errno.h>
|
||
|
|
#include <fs/context.h>
|
||
|
|
|
||
|
|
extern kern_status_t fs_msg_open(
|
||
|
|
const struct msg_endpoint *sender,
|
||
|
|
const char *path,
|
||
|
|
int flags,
|
||
|
|
int *out_err,
|
||
|
|
void *arg)
|
||
|
|
{
|
||
|
|
struct fs_context *ctx = arg;
|
||
|
|
|
||
|
|
struct fs_dentry *dent = fs_context_resolve_path(ctx, path);
|
||
|
|
if (!dent) {
|
||
|
|
*out_err = ENOENT;
|
||
|
|
return KERN_OK;
|
||
|
|
}
|
||
|
|
|
||
|
|
*out_err = SUCCESS;
|
||
|
|
return KERN_OK;
|
||
|
|
}
|