Subject: Re: How much code-compatible is NetBSD?
To: NetBSD Users list <netbsd-users@netbsd.org>
From: Matthias Buelow <mkb@mukappabeta.de>
List: netbsd-users
Date: 02/13/2002 16:27:34
Julio Merino writes:

>I've found some problems while compiling some programs by hand. Lets
>say Gabber, which uses mkdir() function. In some systems, like FreeBSD,
>a trailing slash is needed for the function to work, while in NetBSD
>it is not.

What?  A trailing slash is certainly not needed on any Unix system,
including FreeBSD.  In fact, such a factless claim can be easily
checked before posting to a mailing list a trivial program like
the following (yes, I did):

#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>

int main(void)
{
        if (-1 == mkdir("testdir", 0777)) {
                perror("mkdir failed:");
                return 1;
        }
        return 0;
}


>I guess there will be several more cases where programs do not work
>well or simply fail when compiling (found some). (I would like to
>compile Openoffice for example, but I think it will fail).

This is a problem with Openoffice being written in an unportable way
then, not with NetBSD or any target operating systems
Unfortunately much of the software in the light of "Openoffice",
(i.e., the Windoze-to-Lignux-desktop style crap things) is very
unportable, even amongst different distributions of Linux, which
is the only system it's targeted for anyways.

--mkb