HP3000-L Archives

September 1998, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Tue, 29 Sep 1998 14:43:30 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
Ian Collins writes:
>
> I am trying to port an application that makes use of Unix shared memory
> (shmget/shmat...) and semaphores (semget/semctl...).
>
> I presume that I will have to rewrite the above using intrinsics for
> MPE/ix 5.5. Has anyone performed such a port, or does anyone have any
> pointers in the right direction.

Both the shmxxx() and semxxx() families exist natively on 5.5 within -lsvipc,
so no porting or rewriting should be needed, at least for the shared memory
stuff.

AFAIK, there aren't any standard non-prived intrinsics available to do the
same functionality.

I've personally used the shmxxx() functions and they seem to work OK, except
for a minor filename syntax bug in the related ftok() function that I describe
in:

        http://www.cccd.edu/~markb/porting.html
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2