Xref: utzoo comp.unix.questions:32472 comp.unix.wizards:26184 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!mips!cs.uoregon.edu!ogicse!hsdndev!bunny!humane::!bobl From: bobl@ Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Searching for IPC 'key' generator Message-ID: <1991Jun28.083429.1@> Date: 28 Jun 91 08:34:29 GMT Sender: news@gte.com Followup-To: comp.unix.questions Lines: 22 To all UNIX developers... When developing an application which will utilize shared memory, semaphores and/or message queues, what is the best, and most portable, method of creating the 'key' used to identify the Inter Process Communication (IPC) resource such that conflicts with other applications can be avoided? (Particularly in an environment with locally developed and 'shrinkwrap' applications co-habitating and all wanting to do IPC.) We are currently using 'ftok' to generate a key that is guaranteed to be unique within a system/processor. However, ftok is not part of the XPG-3 specification which is the basis of our development standards. But, we can find nothing in XPG-3 which offers equivalent functionality. Bob Long GTE Telephone Operations P.O. Box 290152 IM Technology Mail Code S5-A Temple Terrace, FL 33687 --------------------------------------------------- 813/979-3219 -Voice FAX- 813/979-3259 R.LONG/GTE -SprintMail Internet- rml0@gte.com ---------------------------------------------------