Re: platform() and FREEBSD

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

Hi

Is LINUX still a reserved constant?

Is not Linux a subset of Unix?

Is not FreeBSD a subset of Unix?

(quote from the freebsd faq

1.1. What is FreeBSD?

Briefly, FreeBSD is a UNIX® like operating system for AMD64 and Intel® EM64T, i386™ PC-98, IA-64, ARM®, PowerPC® and UltraSPARC® platforms based on U.C. Berkeley's “4.4BSD-Lite” release, with some “4.4BSD-Lite2” enhancements. It is also based indirectly on William Jolitz's port of U.C. Berkeley's “Net/2” to the i386, known as “386BSD”, though very little of the 386BSD code remains. A fuller description of what FreeBSD is and how it can work for you may be found on the FreeBSD home page.

)

In which case should not both Linux and FreeBSD return UNIX as true? Therefore should not LINUX, FREBSD, OSX WIN32 etc etc all be maintained for future compatability, each returning there own value, and each maintained by the programmer, and not the interpreter?

Admittedly UNIX could be returned if any of the UNIX like operating systems were detected, but they should also then return LINUX or FREBSD etc.

If you remove LINUX as a definition, then this will break cross compatible programs.

Chris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu