From owner-cvs-all@FreeBSD.ORG Sat Nov 26 23:54:58 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from [127.0.0.1] (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 5626516A420; Sat, 26 Nov 2005 23:54:57 +0000 (GMT) (envelope-from davidxu@freebsd.org) Message-ID: <4388F5E8.7090208@freebsd.org> Date: Sun, 27 Nov 2005 07:55:20 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.10) Gecko/20050806 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Craig Rodrigues References: <200511261255.jAQCtaSl073864@repoman.freebsd.org> <20051126233808.GA3251@crodrigues.org> In-Reply-To: <20051126233808.GA3251@crodrigues.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/include mqueue.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2005 23:54:58 -0000 Craig Rodrigues wrote: >On Sat, Nov 26, 2005 at 12:55:36PM +0000, David Xu wrote: > > >>davidxu 2005-11-26 12:55:36 UTC >> >> FreeBSD src repository >> >> Added files: >> include mqueue.h >> Log: >> Bring in POSIX message queue header file. >> >> > >Is this header the same or different >from the header in /usr/src/sys/posix4 ? > > > It is different, I don't know why it is existing there. >Mike Barcroft stopped the posix4 version of this header >from being installed in /usr/include during buildworld, >because POSIX message queues were not fully implemented >in FreeBSD: > >http://docs.freebsd.org/cgi/getmsg.cgi?fetch=10929+0+archive/2002/freebsd-standards/20021006.freebsd-standards > >Do POSIX message queues now work in FreeBSD? > > It should work, it is implemented as a file descriptor, so you can use select(), or kqueue. Don't use mq_notify(), because fork() duplicates file descriptor which is really a trouble for mq_notify(), I am still working on it.