Re: shm_open
Felix von Leitner <[email protected]> Tue, 10 Jun 2014 04:02:51 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
Thus spake Jorge Almeida ([email protected]): > > I haven't encountered any software that uses it so far. > > > > Which are you trying to compile? > None that exists. I was making a program where it seemed the way to > go, but I changed strategy since. Maybe there's a reason for it not > being widely used... If I needed to use shared memory, I'd use a file and mmap. The semantics of that are well defined and well known. Use mkstemp to create the file name, if you need to generate one. Also, please don't put the files in /tmp, put them in some special dir your app creates at program start time, with the permissions on in locked down so nobody else can write to it. Felix