What is the point of IPC_PRIVATE of shmget?

Peng Yu pengyu.ut@gmail.com
Mon Apr 12 15:54:20 GMT 2021


Hi,

I don't get the point of IPC_PRIVATE of shmget(). Since it is just
used by the current process, why not just use malloc?

Can anybody give a real example in which IPC_PRIVATE must be used, but
 malloc or other variant of *alloc functions are not appropriate to
use? Thanks.

-- 
Regards,
Peng


More information about the Libc-help mailing list