This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Posix management 2 [HELP]


Hi again !

First thanks to Andrew because now I can make libraries with the posix
layer.

BUT (yeah there is always a but...), as I understood it, ecos doesn't want
to take
all types included in the mqueue.h
In fact, I use in my code two types : mdq_t and mq_attr.
You can see error messages at the end of this mail.

As you can see, it doesn't want to take mdq_t but it takes mq_attr : try to
understand !
I'm completely lost...
I attach at the end after the error messages, a part of the mqueue.h, just
in case ...

Another thing. Now my implementation header is disabled in the ISO C and
POSIX infrastructure (sub-part : POSIX message queues). Must I check it and
put its value to <mqueue.h> or must I let it as it (disabled with a value of
0) ?

Thanks for all.
Best regards.

Matthieu GIRARDIN




>>>>>>>>>>>>>  ERROR MESSAGES

[root@p00012049 done]# gbb ecos_os_initialisation.c ecos_os_messages.c
ecos_os_mutex.c ecos_os_outils.c ecos_os_semaphores.c ecos_os_taches.c
ecos_os_temps.c test_temps.c -o test_temps.exe
ecos_os_messages.c: In function `otr_creer_file_de_messages':
ecos_os_messages.c:101: `mqd_t' undeclared (first use in this function)
ecos_os_messages.c:101: (Each undeclared identifier is reported only once
ecos_os_messages.c:101: for each function it appears in.)
ecos_os_messages.c:101: parse error before `handle'
ecos_os_messages.c:103: storage size of `attributs' isn't known
ecos_os_messages.c:134: `handle' undeclared (first use in this function)
ecos_os_messages.c:134: `O_RDWR' undeclared (first use in this function)
ecos_os_messages.c:134: `O_CREAT' undeclared (first use in this function)
ecos_os_messages.c:134: `O_EXCL' undeclared (first use in this function)
ecos_os_messages.c:145: `ma_file_de_messages' undeclared (first use in this
function)
ecos_os_outils.c: In function `conversion_ms_vers_ticks':
ecos_os_outils.c:77: `div_t' undeclared (first use in this function)
ecos_os_outils.c:77: (Each undeclared identifier is reported only once
ecos_os_outils.c:77: for each function it appears in.)
ecos_os_outils.c:77: parse error before `resultat_division'
ecos_os_outils.c:79: `resultat_division' undeclared (first use in this
function)
[root@p00012049 done]#





>>>>>>>>>>>>> MQUEUE.H

#include <sys/types.h>  /* size_t and ssize_t */

/* TYPES */

struct mq_attr {
    long mq_flags;    /* mqueue flags */
    long mq_maxmsg;   /* max number of messages */
    long mq_msgsize;  /* max message size */
    long mq_curmsgs;  /* number of messages currently queued */
};

typedef void *mqd_t;

#ifdef __cplusplus
extern "C" {
#endif

/* FUNCTIONS */

extern mqd_t
mq_open( const char * /* name */, int /* oflag */, ... );


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]