Create libioutil, implement a filewriter
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m21s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m21s
This commit is contained in:
9
include/map.h
Normal file
9
include/map.h
Normal 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
8
include/page_size.h
Normal 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
6
include/write_file.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _WRITE_FILE_H
|
||||
#define _WRITE_FILE_H
|
||||
|
||||
#define WF_APPEND (1 << 0)
|
||||
|
||||
#endif // _WRITE_FILE_H
|
||||
Reference in New Issue
Block a user