public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* What is the point of IPC_PRIVATE of shmget?
@ 2021-04-12 15:54 Peng Yu
  2021-04-12 16:06 ` tomas
  2021-04-12 16:07 ` Florian Weimer
  0 siblings, 2 replies; 10+ messages in thread
From: Peng Yu @ 2021-04-12 15:54 UTC (permalink / raw)
  To: libc-help

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-04-12 19:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 15:54 What is the point of IPC_PRIVATE of shmget? Peng Yu
2021-04-12 16:06 ` tomas
2021-04-12 16:07 ` Florian Weimer
2021-04-12 16:12   ` Peng Yu
2021-04-12 16:14     ` Florian Weimer
2021-04-12 16:18       ` Florian Weimer
2021-04-12 17:23       ` Peng Yu
2021-04-12 18:17         ` J Lumby
2021-04-12 17:55       ` Manfred
2021-04-12 19:05         ` Peng Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).