mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 17:53:13 +01:00
Fixed most compiler errors. Need to do more.
This commit is contained in:
@@ -9,6 +9,17 @@
|
||||
#include <task.h>
|
||||
#include <vm_area.h>
|
||||
|
||||
/* POSIX-defined mmap flags */
|
||||
#define PROT_READ 0x1
|
||||
#define PROT_WRITE 0x2
|
||||
#define PROT_EXEC 0x4
|
||||
#define PROT_NONE 0x0
|
||||
|
||||
#define MAP_ANONYMOUS 0x20
|
||||
#define MAP_FIXED 0x10
|
||||
#define MAP_SHARED 0x01
|
||||
#define MAP_PRIVATE 0x02
|
||||
|
||||
int do_munmap(void *vaddr, unsigned long size, struct tcb *task);
|
||||
|
||||
int do_mmap(struct vm_file *mapfile, unsigned long f_offset, struct tcb *t,
|
||||
|
||||
Reference in New Issue
Block a user