Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #736

Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Tauno Voipio <tauno.voipio@notused.fi.invalid>
Newsgroups comp.os.linux.development.apps
Subject Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux
Date Thu, 19 Jun 2014 09:27:49 +0300
Organization A noiseless patient Spider
Lines 31
Message-ID <lntvt6$arc$1@dont-email.me> (permalink)
References <aa7cb273-36e9-4a05-9ce0-5f8a4028bc14@googlegroups.com> <lnslt9$1r8$1@dont-email.me> <64a61332-4754-417d-89ee-758109112806@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Thu, 19 Jun 2014 06:27:50 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="b9459e72a8ae09bcce21b4688fd6f538"; logging-data="11116"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Bb3UmpJykqatO4q/RxKiHDX+P8iUYJF4="
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <64a61332-4754-417d-89ee-758109112806@googlegroups.com>
Cancel-Lock sha1:5EAcacuxu9yt60oE42Vd2oCWoBs=
Xref csiph.com comp.os.linux.development.apps:736

Show key headers only | View raw


On 19.6.14 00:01, chaudhary.nabin@gmail.com wrote:
> On Wednesday, 18 June 2014 13:31:05 UTC-5, Tauno Voipio  wrote:
>> On 18.6.14 21:14, chaudhary.nabin@gmail.com wrote:
>>
>>> Does any equivalent functions can be used
>>>> on Linux while porting C/C++ applications
>>>> from HP-UX for the following APIs

>>>> msem_init()==>initialize a semaphore in a mapped file
>>>> msem_lock()==> lock a semaphore
>>>> msem_unlock==> unlock a semaphore,

>>>> I want to port a program that looks somewhat like this
>>>> to Linux,

>
> i wrote my own routine to implemet these routine through mutex. if you have any idea other that this please let me know
>

You did not answer to me.

There are both System V and Posix semaphores in Linux.
Did you read the documentation?

There is little sense to re-invent something that is
already in the system and debugged.

-- 

-Tauno Voipio

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

equivalent for msem_init(),msem_lock() msem_unlock() in linux chaudhary.nabin@gmail.com - 2014-06-18 11:14 -0700
  Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2014-06-18 21:31 +0300
    Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux chaudhary.nabin@gmail.com - 2014-06-18 14:01 -0700
      Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2014-06-19 09:27 +0300
        Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux Rainer Weikusat <rweikusat@mobileactivedefense.com> - 2014-06-19 12:04 +0100
          Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux chaudhary.nabin@gmail.com - 2014-06-19 06:54 -0700
  Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux Rainer Weikusat <rweikusat@mobileactivedefense.com> - 2014-06-19 12:12 +0100

csiph-web