Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #739
| Newsgroups | comp.os.linux.development.apps |
|---|---|
| Date | 2014-06-19 06:54 -0700 |
| References | <aa7cb273-36e9-4a05-9ce0-5f8a4028bc14@googlegroups.com> <lnslt9$1r8$1@dont-email.me> <64a61332-4754-417d-89ee-758109112806@googlegroups.com> <lntvt6$arc$1@dont-email.me> <87r42lp3ce.fsf@sable.mobileactivedefense.com> |
| Message-ID | <6479bed5-c117-433f-85fd-9dd9ddf422f1@googlegroups.com> (permalink) |
| Subject | Re: equivalent for msem_init(),msem_lock() msem_unlock() in linux |
| From | chaudhary.nabin@gmail.com |
On Thursday, 19 June 2014 06:04:49 UTC-5, Rainer Weikusat wrote:
> Tauno Voipio <tauno.voipio@notused.fi.invalid> writes:
>
> > 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?
>
>
>
> Judging from the text above, SysV semaphore sets are probably not a good
>
> choice (some people would argue they aren't a good choice for anything)
>
> but process-shared POSIX semaphores should be usable. sem_overview(7)
>
> provides an introduction and pointers ('man 7 sem_overview').
i am using posix semaphore to write a wrapper routine same as HP unix.
thanks everyone for your suggestion.
Regards
nabin
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
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