mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 17:53:13 +01:00
Added sys_stat, sys_fstat and their libposix glue.
This commit is contained in:
@@ -43,6 +43,9 @@
|
||||
#define L4_IPC_TAG_MMAP2 20
|
||||
#define L4_IPC_TAG_CHDIR 21
|
||||
#define L4_IPC_TAG_FORK 22
|
||||
#define L4_IPC_TAG_STAT 23
|
||||
#define L4_IPC_TAG_FSTAT 24
|
||||
|
||||
|
||||
/* Tags for ipc between fs0 and mm0 */
|
||||
#define L4_IPC_TAG_TASKDATA 25
|
||||
|
||||
23
tasks/libl4/include/l4lib/os/posix/kstat.h
Normal file
23
tasks/libl4/include/l4lib/os/posix/kstat.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __OS_KSTAT_H__
|
||||
#define __OS_KSTAT_H__
|
||||
|
||||
#include <l4lib/types.h>
|
||||
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user