Unix Programming - compatibility between the various BSD's?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > compatibility between the various BSD's?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author compatibility between the various BSD's?
Aaron Walker

2004-01-23, 5:01 pm

I mostly use Linux for development, but just installed FreeBSD on my
other box so that I can test my code to make sure it is compatible. If
my code compiles and works fine on FreeBSD, can I assume that it will
also work on the other various BSD's? I am trying to make this code as
compatible as possible with as many unices as possible. I just wanted
to know, because I would really like to refrain from installing NetBSD
and OpenBSD as well, if it's not necessary.

Thanks,
Aaron

Alexandre Jasmin

2004-01-23, 5:01 pm

Le Fri, 28 Nov 2003 10:32:58 +0000, Aaron Walker a écrit_:
quote:

> I mostly use Linux for development, but just installed FreeBSD on my
> other box so that I can test my code to make sure it is compatible. If
> my code compiles and works fine on FreeBSD, can I assume that it will
> also work on the other various BSD's? I am trying to make this code as
> compatible as possible with as many unices as possible. I just wanted
> to know, because I would really like to refrain from installing NetBSD
> and OpenBSD as well, if it's not necessary.
>
> Thanks,
> Aaron



I guess that it should be reasonably compatible with the other BSD but if
you want your program to be compatible with as many unices as possible you
should also test it on a Sys V variant.
Alexandre Jasmin

2004-01-23, 5:01 pm

Le Fri, 28 Nov 2003 10:32:58 +0000, Aaron Walker a écrit_:
quote:

> I mostly use Linux for development, but just installed FreeBSD on my
> other box so that I can test my code to make sure it is compatible. If
> my code compiles and works fine on FreeBSD, can I assume that it will
> also work on the other various BSD's? I am trying to make this code as
> compatible as possible with as many unices as possible. I just wanted
> to know, because I would really like to refrain from installing NetBSD
> and OpenBSD as well, if it's not necessary.
>
> Thanks,
> Aaron



I guess that it should be reasonably compatible with the other BSD but if
you want your program to be compatible with as many unices as possible you
should also test it on a Sys V variant.
Aaron Walker

2004-01-23, 5:01 pm

Alexandre Jasmin wrote:
quote:

> Le Fri, 28 Nov 2003 10:32:58 +0000, Aaron Walker a écrit :
>
>
>
>
> I guess that it should be reasonably compatible with the other BSD but if
> you want your program to be compatible with as many unices as possible you
> should also test it on a Sys V variant.



Is there any freely available Sys V variant?

If not, then it's pointless. Maybe if I was making production code,
then yes, but I am just trying to learn how to write unix code as
portable as possible.

Thanks again,
Aaron

Aaron Walker

2004-01-23, 5:01 pm

Alexandre Jasmin wrote:
quote:

> Le Fri, 28 Nov 2003 10:32:58 +0000, Aaron Walker a écrit :
>
>
>
>
> I guess that it should be reasonably compatible with the other BSD but if
> you want your program to be compatible with as many unices as possible you
> should also test it on a Sys V variant.



Is there any freely available Sys V variant?

If not, then it's pointless. Maybe if I was making production code,
then yes, but I am just trying to learn how to write unix code as
portable as possible.

Thanks again,
Aaron

Alexandre Jasmin

2004-01-23, 5:01 pm

> Is there any freely available Sys V variant?
quote:

>



I don't think so.

But you can download Solaris(an SRV4 derivate) for 20$.

Alexandre Jasmin

2004-01-23, 5:01 pm

> Is there any freely available Sys V variant?
quote:

>



I don't think so.

But you can download Solaris(an SRV4 derivate) for 20$.

DINH Viet Hoa

2004-01-23, 5:01 pm

Aaron Walker wrote :
quote:

> I mostly use Linux for development, but just installed FreeBSD on my
> other box so that I can test my code to make sure it is compatible. If
> my code compiles and works fine on FreeBSD, can I assume that it will
> also work on the other various BSD's? I am trying to make this code as
> compatible as possible with as many unices as possible. I just wanted
> to know, because I would really like to refrain from installing NetBSD
> and OpenBSD as well, if it's not necessary.



You have to know that for example Cyrus (IMAP Server) is not compatible
with OpenBSD although it can run on FreeBSD.

This because mmap() read/write access and read()/write() access will not
be synchronized in the information they give.

--
DINH V. Hoa,

etPan! - newsreader, mail user agent -- http://libetpan.sf.net/etpan

DINH Viet Hoa

2004-01-23, 5:01 pm

Aaron Walker wrote :
quote:

> I mostly use Linux for development, but just installed FreeBSD on my
> other box so that I can test my code to make sure it is compatible. If
> my code compiles and works fine on FreeBSD, can I assume that it will
> also work on the other various BSD's? I am trying to make this code as
> compatible as possible with as many unices as possible. I just wanted
> to know, because I would really like to refrain from installing NetBSD
> and OpenBSD as well, if it's not necessary.



You have to know that for example Cyrus (IMAP Server) is not compatible
with OpenBSD although it can run on FreeBSD.

This because mmap() read/write access and read()/write() access will not
be synchronized in the information they give.

--
DINH V. Hoa,

etPan! - newsreader, mail user agent -- http://libetpan.sf.net/etpan

Aaron Walker

2004-01-23, 5:01 pm

Alexandre Jasmin wrote:
quote:

>
>
> I don't think so.
>
> But you can download Solaris(an SRV4 derivate) for 20$.
>



Thanks ;)
Downloading right now.. didn't realize you could get Solaris for that cheap.

Aaron

Aaron Walker

2004-01-23, 5:01 pm

Alexandre Jasmin wrote:
quote:

>
>
> I don't think so.
>
> But you can download Solaris(an SRV4 derivate) for 20$.
>



Thanks ;)
Downloading right now.. didn't realize you could get Solaris for that cheap.

Aaron

Rich Teer

2004-01-23, 5:01 pm

On Sat, 29 Nov 2003, Aaron Walker wrote:
quote:

> If not, then it's pointless. Maybe if I was making production code,
> then yes, but I am just trying to learn how to write unix code as
> portable as possible.



All the more reason to write code on something like Solaris, then.
By most accounts, Linux makes it all too easy to write Linux
specific code.

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Rich Teer

2004-01-23, 5:01 pm

On Sat, 29 Nov 2003, Aaron Walker wrote:
quote:

> If not, then it's pointless. Maybe if I was making production code,
> then yes, but I am just trying to learn how to write unix code as
> portable as possible.



All the more reason to write code on something like Solaris, then.
By most accounts, Linux makes it all too easy to write Linux
specific code.

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Rich Teer

2004-01-23, 5:01 pm

On Sat, 29 Nov 2003, Aaron Walker wrote:
quote:

> Downloading right now.. didn't realize you could get Solaris for that cheap.



It's even cheaper if you are SPARC based. :-)

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Rich Teer

2004-01-23, 5:01 pm

On Sat, 29 Nov 2003, Aaron Walker wrote:
quote:

> Downloading right now.. didn't realize you could get Solaris for that cheap.



It's even cheaper if you are SPARC based. :-)

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Aaron Walker

2004-01-23, 5:01 pm

Rich Teer wrote:
quote:

>
> All the more reason to write code on something like Solaris, then.
> By most accounts, Linux makes it all too easy to write Linux
> specific code.
>



Yeah I found that out when I tried to get the original code I wrote on
Linux to compile under FreeBSD. I basically scrapped a lot of stuff,
and rewrote it...

Aaron Walker

2004-01-23, 5:01 pm

Rich Teer wrote:
quote:

>
> All the more reason to write code on something like Solaris, then.
> By most accounts, Linux makes it all too easy to write Linux
> specific code.
>



Yeah I found that out when I tried to get the original code I wrote on
Linux to compile under FreeBSD. I basically scrapped a lot of stuff,
and rewrote it...

Dmitry Karasik

2004-01-23, 5:02 pm

Hi Aaron!

On 28 Nov 03 at 11:32, "Aaron" (Aaron Walker) wrote:

Aaron> I mostly use Linux for development, but just installed FreeBSD on
Aaron> my other box so that I can test my code to make sure it is
Aaron> compatible. If my code compiles and works fine on FreeBSD, can I
Aaron> assume that it will also work on the other various BSD's? I am
Aaron> trying to make this code as compatible as possible with as many
Aaron> unices as possible. I just wanted to know, because I would really
Aaron> like to refrain from installing NetBSD and OpenBSD as well, if it's
Aaron> not necessary.

If you don't know about http://www.testdrive.compaq.com, it is worth to try,
they have lots of various unix flavours.

--
Sincerely,
Dmitry

--- www.karasik.eu.org ---

He who dies with most the toys wins
Dmitry Karasik

2004-01-23, 5:02 pm

Hi Aaron!

On 28 Nov 03 at 11:32, "Aaron" (Aaron Walker) wrote:

Aaron> I mostly use Linux for development, but just installed FreeBSD on
Aaron> my other box so that I can test my code to make sure it is
Aaron> compatible. If my code compiles and works fine on FreeBSD, can I
Aaron> assume that it will also work on the other various BSD's? I am
Aaron> trying to make this code as compatible as possible with as many
Aaron> unices as possible. I just wanted to know, because I would really
Aaron> like to refrain from installing NetBSD and OpenBSD as well, if it's
Aaron> not necessary.

If you don't know about http://www.testdrive.compaq.com, it is worth to try,
they have lots of various unix flavours.

--
Sincerely,
Dmitry

--- www.karasik.eu.org ---

He who dies with most the toys wins
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com