Re: 2.5 Suggestion (Bob Craig)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ron Tarrant wrote:
> How much trouble would it be to change the platform value for FREEBSD 
> it's different from the LINUX value?

It would break a lot of code.
I thought about this carefully when I ported to FreeBSD.
At first I was going to have a new platform() value.
Then I noticed that in almost every case, Linux code
would run without change on FreeBSD, provided the
platform() value was the same. So I made it the same.
 
> For some things, like getting information using read_proc(), Linux and 
> FreeBSD are quite different, so distinguishing between them would be 
> handy.

I guess you'll have to use some other test to 
make your code work on both Linux and FreeBSD.
Maybe test directly to see if a .so exists
or not, or look at the values returned from
a library call, etc.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu