mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
vfs: add VFS_STUB macro
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <kernel/cred.h>
|
#include <kernel/cred.h>
|
||||||
#include <kernel/event.h>
|
#include <kernel/event.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#define V_ATTR_MODE 1
|
#define V_ATTR_MODE 1
|
||||||
#define V_ATTR_UID 2
|
#define V_ATTR_UID 2
|
||||||
@@ -230,6 +231,8 @@ typedef struct vops_t {
|
|||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define VFS_STUB(x) static int x () { return ENODEV; }
|
||||||
|
|
||||||
extern vnode_t *vfsroot;
|
extern vnode_t *vfsroot;
|
||||||
|
|
||||||
advlock_t *advlock_allocate(void);
|
advlock_t *advlock_allocate(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user