mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-31 06:50:31 +00:00
Remove __mmap() and __munmap()
This commit is contained in:
parent
01587de761
commit
fc65422660
5 changed files with 11 additions and 16 deletions
|
@ -47,8 +47,6 @@ void __maps_unlock(void);
|
|||
void __maps_add(struct Map *);
|
||||
struct Map *__maps_alloc(void);
|
||||
void __maps_free(struct Map *);
|
||||
int __munmap(char *, size_t, bool);
|
||||
void *__mmap(char *, size_t, int, int, int, int64_t);
|
||||
void __maps_stack(char *, int, int, size_t, int, intptr_t);
|
||||
struct AddrSize __get_main_stack(void);
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ struct Map *__maps_alloc(void) {
|
|||
return map;
|
||||
}
|
||||
|
||||
int __munmap(char *addr, size_t size, bool untrack_only) {
|
||||
static int __munmap(char *addr, size_t size, bool untrack_only) {
|
||||
|
||||
// validate arguments
|
||||
int pagesz = getpagesize();
|
||||
|
@ -479,8 +479,8 @@ static void *__mmap_impl(char *addr, size_t size, int prot, int flags, int fd,
|
|||
return res;
|
||||
}
|
||||
|
||||
void *__mmap(char *addr, size_t size, int prot, int flags, int fd,
|
||||
int64_t off) {
|
||||
static void *__mmap(char *addr, size_t size, int prot, int flags, int fd,
|
||||
int64_t off) {
|
||||
char *res;
|
||||
int pagesz = getpagesize();
|
||||
int granularity = __granularity();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue