Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site eagle.UUCP Path: utzoo!watmath!clyde!burl!ulysses!eagle!mjs From: mjs@eagle.UUCP (M.J.Shannon) Newsgroups: net.unix,net.unix-wizards Subject: Re: Shared Memory Message-ID: <1251@eagle.UUCP> Date: Mon, 8-Apr-85 22:25:41 EST Article-I.D.: eagle.1251 Posted: Mon Apr 8 22:25:41 1985 Date-Received: Tue, 9-Apr-85 20:26:57 EST References: <563@ahuta.UUCP> <9770@brl-tgr.ARPA> Organization: AT&T Bell Laboratories, Summit, NJ Lines: 16 Xref: watmath net.unix:4171 net.unix-wizards:12753 > > How do you pass a key from one process to > > another process so that both processes have acess to the > > same "shmid"? > > Message passing? The "proper" way to do this is to use the ftok() (stdipc(3C)) routine with a filename that all processes involved agree upon. Yes, it is difficult to find this routine (due to the name of the manual entry and the contents of the NAME section, it doesn't appear anywhere useful in the permuted index), but that's how to do it. Honest -- I've used it! -- Marty Shannon UUCP: ihnp4!eagle!mjs Phone: +1 201 522 6063