From owner-freebsd-questions Mon May 1 07:54:00 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA26479 for questions-outgoing; Mon, 1 May 1995 07:54:00 -0700 Received: from pancake.remcomp.fr (pancake.remcomp.fr [194.51.30.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA26444 for ; Mon, 1 May 1995 07:53:17 -0700 Received: (from didier@localhost) by aida.remcomp.fr (8.6.9/8.6.9) id QAA02154 for questions@freebsd.org; Mon, 1 May 1995 16:36:16 +0200 From: Didier Derny Message-Id: <199505011436.QAA02154@aida.remcomp.fr> Subject: mmap / System V IPC To: questions@FreeBSD.org Date: Mon, 1 May 1995 16:36:15 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1030 Sender: questions-owner@FreeBSD.org Precedence: bulk Hi I have a server that need a shared memories with the acces controlled by semaphores. How can I do that with mmap system calls. It seems that the memory is no easily updated for example I have two queues of small packets of 128 bytes the server received the packet from a X25 line, enqueue the incoming packet in the "in" queue, dequeue the "out" queue and transmit the data to the X25 line. the user process does the same thing a the other end of the queue. This mechanism is controlled by a set of semaphore. I know that this mechanism should be replaced by an AF_UNIX socket but I do not have time to rewrite everything now. Is there somewhere a detailed manual on the mmap system calls. Is the HAS_SEMAPHORE flag working with FreeBSD (I've not been able to find it in the kernel). Thanks for your Help, ---------------------------------------------------------------------------- Didier Derny didier@aida.remcomp.fr ----------------------------------------------------------------------------