STOP DOING #MMAP!

• Files were not supposed to be treated like memory.
• Years of mmaping, yet no real-world use found for giving disk data memory addresses.
• Wanted to have a file in memory anyway, for a laugh? We had a tool for that, it was called "reading into a buffer".
• "Yes, please give me a SIGBUS when I run out of space. Please give me a SIGSEGV if I read past the file." — statements dreamed up by the utterly deranged.

#C #ProgrammersHumor

@mgorny yeah, mmap has it's kinks, but reducing file ops down to a pointer is handy for some tasks. Do you see problems other then signals?
@radon, besides people thinking it a great idea to cast file data to struct pointers?
@mgorny those same people can do seek and read and mishandle the char* in the same way.