Comment

Comment by jared_hulbert

int fd = open(filename, O_RDONLY); void* buffer = mmap(NULL, size_bytes, PROT_READ, (MAP_HUGETLB | MAP_HUGE_1GB), fd, 0);

This doesn't work with a file on my ext4 volume. What am I missing?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton