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

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 2014-06-19 09:27 +0300
Organization A noiseless patient Spider
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>

Show all headers | 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