diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-11-18 16:40:51 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-11-18 16:40:51 -0800 |
commit | 5bcc08d92ae9345d6863f555a3dd9ec960e0860f (patch) | |
tree | c0fc5dba61ee770d5757ffb9702d61d277d122a1 /sys/linux/port/arch/types.h | |
parent | 4bf477d5ed372fd44697d2f0df245b61b4f3f7b3 (diff) |
feat: filling out system layer's interface
Diffstat (limited to 'sys/linux/port/arch/types.h')
-rw-r--r-- | sys/linux/port/arch/types.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sys/linux/port/arch/types.h b/sys/linux/port/arch/types.h deleted file mode 100644 index 014e4cb..0000000 --- a/sys/linux/port/arch/types.h +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -// XXX: os vs sys prefix... - -typedef struct os·Directory os·Directory; -typedef struct os·DirEntry os·DirEntry; - -struct os·Directory -{ - intptr off; - int fd; - int pad; - int pos, end; - /* buf needs fall on (off_t) 8 byte alignment */ - char buf[2048]; -}; - -struct os·DirEntry -{ - ulong ino; /* inode number */ - ulong off; /* offset to next entry (from start of directory */ - ushort len; /* length of entry (in bytes) */ - uchar type; /* filetype */ - char name[]; /* filename */ -}; - -/* types of DirEntry (last byte) */ -#define os·EntryUnknown 0 -#define os·EntryFifo 1 -#define os·EntryChar 2 -#define os·EntryDir 4 -#define os·EntryBlock 6 -#define os·EntryFile 8 -#define os·EntryLink 10 -#define os·EntrySocket 12 |