From owner-freebsd-questions Tue Jun 25 3:58:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from martin.kleinerdrache.org (static62-99-146-055.adsl.inode.at [62.99.146.55]) by hub.freebsd.org (Postfix) with SMTP id 89B6A37B43B for ; Tue, 25 Jun 2002 03:57:57 -0700 (PDT) Received: (qmail 12188 invoked from network); 25 Jun 2002 11:00:23 -0000 Received: from unknown (HELO localhost.kdrache.org) (127.0.0.1) by loopback with SMTP; 25 Jun 2002 11:00:23 -0000 Subject: Re: Porting Tips From: Martin Klaffenboeck To: Paul Everlund Cc: Gavin Kenny , questions@freebsd.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 25 Jun 2002 13:00:23 +0200 Message-Id: <1025002823.677.30.camel@martin.kleinerdrache.org> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Am Di, 2002-06-25 um 12.52 schrieb Paul Everlund: > > Have "ported" some applications to FreeBSD that where > meant for Linux and Solaris. What I did was compiling > the code with a lot of warning options turned on, then > fixing errors as they did appear. One was for example > O_SYNC to O_FSYNC. In the end it did run ok! > > Not a "nice" way of porting applications I guess, but > it has worked for me. :-) I think, thats a good way to work like that. Because thats fast and often efficient. Sure the problem is, that you have to compare what 0_SYNC does and 0_FSYNC does. If its quite the same, it's ok, if it's not you have to find a second way and you have to patch all this things which are different. But normally you don't want to take the time to find that out or to patch the whole programm. So I think it's ok just change 0_SYNC to 0_FSYNC. If there are some troubles you don't find out, maybe other people will find that out and send a pr to freebsd... ;-) Martin -- Virtuelle Jugendarbeit auf http://create.kleinerdrache.org ... bald kommt ein neues Layout ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message