From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Luotao Fu <devtty0@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Strangeness in named Semaphores(xenomai posix skin)
Date: Sat, 22 Oct 2005 09:27:23 +0200 [thread overview]
Message-ID: <17241.59867.844871.19639@domain.hid> (raw)
In-Reply-To: <435967A7.6060903@domain.hid>
Luotao Fu wrote:
> Thanx Gilles, I've just sent out another mail to this thread before I
> noticed your mail. Well sorry for the delay than. I found the
> sem_timedwait in posix_overrides.h
> #define sem_timedwait pse51_sem_timedwait
> so I thought it'll be handled by the posix skin.
posix_overrides.h is used for compilation of the POSIX skin for the
simulator, not for the userspace POSIX skin library.
> > When calling sem_open with the O_CREAT flag, you have to pass a "mode"
> > and most importantly a "value" argument which is the initial value of
> > the semaphore. Your also make the assumption that 0 is a valid numeric
> > value for the enum O_RDONLY/O_WRONLY/O_RDWR.
> >
>
> oh, hell yeah, forgot it.
Actually, you do not have to pass O_RDONLY/O_WRONLY/O_RDWR flags to
sem_open. I was mixing sem_open and mq_open. Sorry.
--
Gilles Chanteperdrix.
prev parent reply other threads:[~2005-10-22 7:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-21 15:57 [Xenomai-help] Strangeness in named Semaphores(xenomai posix skin) Luotao Fu
2005-10-21 19:39 ` Gilles Chanteperdrix
2005-10-21 21:54 ` Luotao Fu
2005-10-21 21:38 ` Gilles Chanteperdrix
2005-10-21 22:11 ` Luotao Fu
2005-10-22 7:27 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17241.59867.844871.19639@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=devtty0@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.