From owner-freebsd-hackers Tue Feb 9 11:43:30 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA27123 for freebsd-hackers-outgoing; Tue, 9 Feb 1999 11:43:30 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA27105 for ; Tue, 9 Feb 1999 11:43:21 -0800 (PST) (envelope-from dfr@nlsystems.com.demon.co.uk) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.2/8.8.8) with ESMTP id TAA12053; Tue, 9 Feb 1999 19:42:19 GMT (envelope-from dfr@nlsystems.com.demon.co.uk) X-Authentication-Warning: herring.nlsystems.com: dfr owned process doing -bs Date: Tue, 9 Feb 1999 19:42:15 +0000 (GMT) From: Doug Rabson X-Sender: dfr@localhost To: Christoph Kukulies cc: hackers@FreeBSD.ORG Subject: Re: portability of shm, mmap, pipes and socket IPC In-Reply-To: <199902072122.WAA15102@gilberto.physik.RWTH-Aachen.DE> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 7 Feb 1999, Christoph Kukulies wrote: > > Does anyone have experience with portability of common > IPC mechanisms between Linux 2.x and FreeBSD? > > I'm trying to estimate the risk of a porting project from > Linux to FreeBSD. > What peculiarities are there? Incompatibilities between the > two OSs WRT to 'clean' implementation of these disciplines? > > sockets - feature set compatible? Both systems use the Berkeley sockets api and should be source compatible. > pipes - ? named pipes? Yes. > mmap - stable? limitations? No problems for local filesystems. Possibly one or two NFS bugs might remain but I doubt that you would come across them. I think I had one or two problems with Linux using strange names MAP_XXX flags but I can't remember that clearly. > shmxxx - SYSV compatibility? Yes. You will have to make sure that they are built into your kernel. GENERIC only includes SYSVSHM for some reason. > > Comments greatly appreciated. I don't think you will have much trouble :-). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message