shared memory??
David L. Smith
dave at sdeggo.UUCP
Sat Mar 19 05:32:24 AEST 1988
In article <259 at bby-bc.UUCP>, john at bby-bc.UUCP (john) writes:
> I'm trying to use shared memory to access a frame buffer and it
> doesn't seem to work. I am running 2.2L. I put the appropriate
> shmcreate lines in /etc/rc.d/shm.rc but when my program runs
> nothing seems to happen (I check for error returns and from
> shmat and shmget but no error indication is given). to check it out
> I tried the tiny programbelow to try and write some high intensity
> "A"'s to the herc. mono adapter. The program runs in a couple of seconds
> but nothing changes on the screens. The only thing I have noticed is
> that in system5.nm shmat() is listed as an int rather than a char *
Well, your program is correct, I compiled and ran it on 'eggo without any
problems (well, it gives a core dump at the end, but that's not your problem
just yet).
There's two things to check for: On older version of 2.2, the shmcreate
program did not attach the segments properly. You can check to see if
the segments exist with the ipcs program. I think the problem showed up
with the segments being "r--r--r--" protected. Maybe you can talk Microport
into giving you a version that works. You may also want to make sure
that you are running the "large" kernel, since the one that is installed
by the installation procedure does not have any of the shared memory
routines.
--
David L. Smith
{sdcsvax!jack,ihnp4!jack, hp-sdd!crash, pyramid, uport}!sdeggo!dave
sdeggo!dave at amos.ling.edu
Sinners can repent, but stupid is forever.
More information about the Comp.unix.microport
mailing list