Create libioutil, implement a filewriter
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m21s

This commit is contained in:
2026-03-02 22:47:10 +01:00
parent 27afd57427
commit 58c515e90a
28 changed files with 231 additions and 29 deletions

9
include/map.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef _MAP_H
#define _MAP_H
#define MAP_PRESENT (1 << 0)
#define MAP_RW (1 << 1)
#define MAP_USER (1 << 2)
#define MAP_FLAGS (MAP_PRESENT | MAP_USER)
#endif // _MAP_H

8
include/page_size.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef _PAGE_SIZE_H
#define _PAGE_SIZE_H
#if defined(__x86_64__)
#define PAGE_SIZE 4096
#endif
#endif // _PAGE_SIZE_H

6
include/write_file.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef _WRITE_FILE_H
#define _WRITE_FILE_H
#define WF_APPEND (1 << 0)
#endif // _WRITE_FILE_H