mirror of
https://github.com/drasko/codezero.git
synced 2026-02-14 19:03:16 +01:00
Added sys_stat, sys_fstat and their libposix glue.
This commit is contained in:
@@ -62,4 +62,21 @@
|
||||
#define O_NOATIME 01000000
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
|
||||
/*
|
||||
* Internal codezero-specific stat structure.
|
||||
* This is converted to posix stat in userspace
|
||||
*/
|
||||
struct kstat {
|
||||
u64 vnum;
|
||||
u32 mode;
|
||||
int links;
|
||||
u16 uid;
|
||||
u16 gid;
|
||||
u64 size;
|
||||
int blksize;
|
||||
u64 atime;
|
||||
u64 mtime;
|
||||
u64 ctime;
|
||||
};
|
||||
|
||||
#endif /* __FS0_STAT_H__ */
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#define __TASKNAME__ __VFSNAME__
|
||||
|
||||
#define TASK_OFILES_MAX 32
|
||||
#define TASK_FILES_MAX 32
|
||||
|
||||
/* Thread control block, fs0 portion */
|
||||
struct tcb {
|
||||
@@ -18,7 +18,7 @@ struct tcb {
|
||||
unsigned long utcb_address;
|
||||
int utcb_mapped; /* Set if we mapped their utcb */
|
||||
struct list_head list;
|
||||
int fd[TASK_OFILES_MAX];
|
||||
int fd[TASK_FILES_MAX];
|
||||
struct id_pool *fdpool;
|
||||
struct vnode *curdir;
|
||||
struct vnode *rootdir;
|
||||
|
||||
Reference in New Issue
Block a user