Is there a POSIX-y way to allocating shared memory that's not tied to a specific filename? I.e. memory that is shared between processes only by passing SCM_RIGHTS messages via UNIX domain sockets?
            Asked
            
        
        
            Active
            
        
            Viewed 1,159 times
        
    5
            
            
        - 
                    1Would the sequence shm_open(), mmap(), shm_unlink() help? Will it dispose of the file, but keep the memory allocated and associated file descriptors usable? – Martin Sustrik May 15 '13 at 09:03
- 
                    Yes they are still valid file descriptors, you can use it. I was asking same question(anonymous POSIX shared memory). Guess POSIX only supports named shared memory. – Yakup Türkan May 12 '18 at 06:12
- 
                    For Linux specific, one can use `MAP_ANONYMOUS`. – Ciro Santilli OurBigBook.com Aug 27 '18 at 13:59
