diff options
| author | Nathan Lee <me@nwlee.tech> | 2026-10-03 21:37:57 -0500 |
|---|---|---|
| committer | Nathan Lee <me@nwlee.tech> | 2026-10-03 21:37:57 -0500 |
| commit | 0189cc9d771e5911b07fbf91ca18da3a338f8d30 (patch) | |
| tree | dbf2c8a366547dda3ec99f752417a4085a5a5599 /website-kernel/include/fs/cpio.h | |
| parent | 182ad75161c77b4a75d48275979ce44cde213e3f (diff) | |
add first userspace invocation
Diffstat (limited to 'website-kernel/include/fs/cpio.h')
| -rw-r--r-- | website-kernel/include/fs/cpio.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/website-kernel/include/fs/cpio.h b/website-kernel/include/fs/cpio.h new file mode 100644 index 0000000..43440d2 --- /dev/null +++ b/website-kernel/include/fs/cpio.h @@ -0,0 +1,24 @@ +#pragma once +#include <int.h> +#define CPIO_HEADER_LEN 110 + +struct cpio_newc_hdr { + char magic[6]; + char ino[8]; + char mode[8]; + char uid[8]; + char gid[8]; + char nlink[8]; + char mtime[8]; + char filesize[8]; + char devmajor[8]; + char devminor[8]; + char rdevmajor[8]; + char rdevminor[8]; + char namesize[8]; + char check[8]; +}; + +void *cpio_get_file(void *archive, size_t size, const char *filename); + + |
