From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2483 invoked by alias); 29 Jun 2005 19:55:45 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 2471 invoked by uid 22791); 29 Jun 2005 19:55:41 -0000 Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.207) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 29 Jun 2005 19:55:41 +0000 Received: by rproxy.gmail.com with SMTP id y7so1397834rne for ; Wed, 29 Jun 2005 12:55:40 -0700 (PDT) Received: by 10.38.97.10 with SMTP id u10mr2855440rnb; Wed, 29 Jun 2005 12:55:40 -0700 (PDT) Received: by 10.38.79.54 with HTTP; Wed, 29 Jun 2005 12:55:40 -0700 (PDT) Message-ID: <89a6346f05062912554dee1fb9@mail.gmail.com> Date: Wed, 29 Jun 2005 19:55:00 -0000 From: Ellen Reply-To: Ellen To: ecos-discuss@ecos.sourceware.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [ECOS] How to enable POSIX message queue in eCos environment? X-SW-Source: 2005-06/txt/msg00296.txt.bz2 Hi all, I'm new to eCos and trying to run on Linux synthetic target. Have a question here for using POSIX message queue in eCos. I noticed in the reference manual, it is mentioned that "The presence of message queues is controlled by the CYGPKG_POSIX_MQUEUES option.=20 Setting this option will cause _POSIX_MESSAGE_PASSING to be defined and the message queue API to be make available." In my case, I checked the ecos.ecc and pkgconf/isoinfra.h, I have the option CYGINT_ISO_MQUEUE (instead of CYGPKG_POSIX_MQUEUES) set to 0, which consequently makes the _POSIX_MESSAGE_PASSING undefined. So when compiling, I got the error of undeclared "O_CREAT" and implicit declaration of "mq_open". Since the CYGINT_ISO_MQUEUE is automatically defined in configtool, I went back to the configuration tool, try to set this option.=20 Unfortunately, I found that under the "POSIX message queues", the "maximum number of open message queues" is grey and its value is 0. Anybody can help to set this mqueue option and make the message queue API available? Thanks a lot in advance! Best regards, Ellen -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss