Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.unix.wizards Subject: Re: shared memory in BSD 4.2 Message-ID: <12653@sun.uucp> Date: Tue, 3-Feb-87 16:28:37 EST Article-I.D.: sun.12653 Posted: Tue Feb 3 16:28:37 1987 Date-Received: Wed, 4-Feb-87 19:14:17 EST References: <4200@brl-adm.ARPA> Sender: news@sun.uucp Reply-To: guy@sun.UUCP (Guy Harris) Organization: Sun Microsystems, Mountain View Lines: 10 >I have tracked down mmap and munmap but cannot figure out how to get the >file descriptor of my own core image to pass to mmap. You can't. "mmap" doesn't do anything on vanilla 4.[23]BSD. Some implentations using 4.[23]BSD code support it to varying degrees. Even if it did, there is still no way to *get* a file descriptor that refers to your own core image. You probably wouldn't want one, anyway; you'd want to pick a file to use to hold the shared data and "mmap" that file into both your address spaces.