Path: utzoo!attcan!uunet!odi!benson From: benson@odi.com (Benson I. Margulies) Newsgroups: comp.unix.internals Subject: Shared memory (shm) - a safe way to pick ids? Message-ID: <1990Dec12.022343.1171@odi.com> Date: 12 Dec 90 02:23:43 GMT Reply-To: benson@odi.com (Benson I. Margulies) Organization: Object Design Inc., Burlington, MA Lines: 9 I'm on the verge of coding a simple use of the shm system call family on a system that dosen't supply the more modern mapping calls. The question is -- how to pick segment id's that are not going to collide with other, unrelated applications? Calling ftok(3) is fine, so long as anyone does it. But there seems no guarantee that some other rogue elephant won't go and stir up one of those bitpatterns. Has anyone else wrestled this item? -- Benson I. Margulies