Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!hc!hi!josh From: josh@hi.UUCP (Josh Siegel) Newsgroups: comp.unix.questions Subject: Re: Microport shmcreate Message-ID: <6370@hi.UUCP> Date: Sun, 10-May-87 16:05:11 EDT Article-I.D.: hi.6370 Posted: Sun May 10 16:05:11 1987 Date-Received: Mon, 11-May-87 02:59:57 EDT References: <93@upas.UUCP> Reply-To: josh@hi.UUCP (Josh Siegel) Distribution: world Organization: U. of New Mexico, Albuquerque Lines: 39 Keywords: shmcreate In article <93@upas.UUCP> rcw@upas.UUCP (Robert White) writes: > >This line == can of raid. > > Greetings. I have a problem with the shmcreate facility of >Microport Unix 2.2 when attempting to use shared memory to access >the Hercules bit mapped graphics memory. The documentation says to >put the following line in /etc/rc: > > /etc/shmcreate 0xb0000 b0000 32768 /* create a segment whose key is > b0000, mapped to physical address > b0000, with length 32768 bytes. */ > > > In the user program, the following code should give me access >to the shared memory through char * pointer shmaddr: > > extern char *shmat(); > > shmid = shmget (0xb8000,32768,0); /* shmid is an int, large model */ > > shmaddr = shmat (shmid, (char *) 0); /* shmaddr is a large model pntr */ > > All together now... If ya going to include examples... make sure the examples are bug free! Your making a key of b0000 and asking for a key of b8000. Is this a typo? --Josh Siegel -- Josh Siegel (siegel@hc.dspo.gov) It's a 9mm hand gun... useful for killing people... If you're into that sorta thing...