Luna/libs/libc/include/sys/mman.h
2022-10-08 14:44:48 +02:00

24 lines
318 B
C

#ifndef _SYS_MMAN_H
#define _SYS_MMAN_H
#include <stddef.h>
typedef unsigned long off_t;
#define MAP_FAILED (void*)-1
#define PROT_READ_WRITE 1
#ifdef __cplusplus
extern "C"
{
#endif
void* mmap(void*, size_t, int, int, int, off_t);
int munmap(void* addr, size_t len);
#ifdef __cplusplus
}
#endif
#endif