|
const char unsigned *__map_file(const char *pathname, size_t *size)
|
|
const char unsigned *__map_file(const char *pathname, size_t *size)
|
|
int fd = sys_open(pathname, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
|
|
int fd = sys_open(pathname, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
|
|
map = __mmap(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
|
|
map = __mmap(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
|