Tech Insider					     Technology and Trends


			      USENET Archives

From: frank_broic...@my-deja.com
Subject: System V Semphores and Linux
Date: 2000/11/29
Message-ID: <902e6n$cmk$1@nnrp1.deja.com>#1/1
X-Deja-AN: 699020770
X-Http-Proxy: 1.0 x71.deja.com:80 (Squid/1.1.22) for client 137.226.137.205
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Wed Nov 29 07:55:44 2000 GMT
Newsgroups: comp.os.linux.development.system
X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; U) WebWasher/1.2.2

Hi,

over the last few months I developed an IPC-Library which encapsulates the
system calls needed to access semaphores, shared memory, pipes, and so on
(based on Steven's book). It is designed to support either System V or POSIX.
The basic problem is the support for Linux _and_ SGI's IRIX. IRIX is causing
no problems, but porting the Lib to Linux reveales some strange behaviour.
Basically porting the System V implementation to Linux should work, but on
some maschines it only seems to run. Getting a semphore using semget returns
a "normal" identifier and all operations on this semaphore cause no errors,
but when I look at the IPC state using ipcs then I'm told that there is no
semaphore allocated not to mention that all semaphore operations have no
effect. To top all this: on some maschines it works.

All works fine on my private maschine Suse Linux 7.0 (Kernel 2.2.16), it does
not work on a similar maschine at work and on maschines with Kernel 2.2.14
and (I know it's old) 2.0.36.

Does anybody know what is causing this strange incompatibilities?

THNX in advance

          Frank

Please reply also to: broic...@techinfo.rwth-aachen.de



Sent via Deja.com http://www.deja.com/
Before you buy.

From: "Geoff Winkless" <geoff-at-farmline-dot-...@127.0.0.1>
Subject: Re: System V Semphores and Linux
Date: 2000/11/29
Message-ID: <902mjd$2me$1@soap.pipex.net>#1/1
X-Deja-AN: 699057662
References: <902e6n$cmk$1@nnrp1.deja.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Complaints-To: abuse@uk.uu.net
X-Trace: soap.pipex.net 975494573 2766 193.218.222.119 (29 Nov 2000 10:42:53 GMT)
Organization: UUNET WorldCom server (post doesn't reflect views of UUNET WorldCom
X-MSMail-Priority: Normal
NNTP-Posting-Date: 29 Nov 2000 10:42:53 GMT
Newsgroups: comp.os.linux.development.system


<frank_broic...@my-deja.com> wrote in message
news:902e6n$cmk$1@nnrp1.deja.com...
: Hi,
:
: over the last few months I developed an IPC-Library which encapsulates the
: system calls needed to access semaphores, shared memory, pipes, and so on
: (based on Steven's book). It is designed to support either System V or
POSIX.
: The basic problem is the support for Linux _and_ SGI's IRIX. IRIX is
causing
: no problems, but porting the Lib to Linux reveales some strange behaviour.
: Basically porting the System V implementation to Linux should work, but on
: some maschines it only seems to run. Getting a semphore using semget
returns
: a "normal" identifier and all operations on this semaphore cause no
errors,
: but when I look at the IPC state using ipcs then I'm told that there is no
: semaphore allocated not to mention that all semaphore operations have no
: effect. To top all this: on some maschines it works.

Make sure you have IPC support compiled into the kernel.

Geoff

			        About USENET

USENET (Users’ Network) was a bulletin board shared among many computer
systems around the world. USENET was a logical network, sitting on top
of several physical networks, among them UUCP, BLICN, BERKNET, X.25, and
the ARPANET. Sites on USENET included many universities, private companies
and research organizations. See USENET Archives.

		       SCO Files Lawsuit Against IBM

March 7, 2003 - The SCO Group filed legal action against IBM in the State 
Court of Utah for trade secrets misappropriation, tortious interference, 
unfair competition and breach of contract. The complaint alleges that IBM 
made concentrated efforts to improperly destroy the economic value of 
UNIX, particularly UNIX on Intel, to benefit IBM's Linux services 
business. See SCO vs IBM.

The materials and information included in this website may only be used
for purposes such as criticism, review, private study, scholarship, or
research.

Electronic mail:			       WorldWideWeb:
   tech-insider@outlook.com			  http://tech-insider.org/