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.

_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to