Skip to main content

Questions tagged [mmap]

For code that uses memory-mapped files.

Filter by
Sorted by
Tagged with
5 votes
1 answer

A simple mmap(2) wrapper

I've written a wrapper for the mmap syscall. It's quite limited in functionality at the moment (there are lots of flags to support) but it's sufficient for mapping ...
haz's user avatar
  • 255
4 votes
1 answer

Simple parallel compression using Run-length Encoding in C

I encountered the concurrency-zip project in OSTEP By Remzi Arpaci-Dusseau. So basically, I've built a simple compression program that uses Run-length Encoding, and multi-threading in C. But I couldn'...
Richard H. Nguyen's user avatar
11 votes
2 answers

C - Fast & simple bump allocator

I recently have been very interested in custom allocators, so I decided to make the very basic (this should be faster than malloc) bump allocator. Here is my code ...
xilpex's user avatar
  • 289
3 votes
1 answer

Code dealing with files and separate lines in them

I have been using similar piece of code since a while. I have read some issues regarding treating mapped memory as a string. I am not sure about that though, so I just use ...
Mihir Luthra's user avatar