Skip to main content

Questions tagged [mmap]

For code that uses memory-mapped files.

Filter by
Sorted by
Tagged with
6 votes
1 answer
303 views

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
  • 265
4 votes
1 answer
1k views

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
3k views

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
90 views

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