News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
[OSX] murgaLua.getHostOsName()
Author Message
chrimo
Member
***


Posts: 94
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
[OSX] murgaLua.getHostOsName()

Hello again,

why returns murgaLua.getHostOsName() at OSX the string macos ?

MacOS is dead...
OSX is alive

getHostOsName() should return something useful from "uname -a"
chrimo$ uname -a
Darwin m49svr4169g5.moccy.lan 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc

What is POSIX conform ?
Darwin ???

Same think should be changed at Makefile
Good idea or waste of time ?
Bye
Chrimo

08-29-2007 08:00 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #2
RE: [OSX] murgaLua.getHostOsName()

uname doesn't work on Windows. My guess is that the function was made as simply as possible as a way to do nothing more than determine which supported platform you're running, so the script can be adjusted accordingly (such as setting an appropriate directory separator or deciding whether or not a particular external command can be run). In this situation it doesn't matter if it returns macos, osx, apple, or themostexpensivebsdevermade. As long as there is a difference between the suported platforms it's doing its job. Simplicity rules.

A POSIX system is one which adheres to an operating system standard based on Unix. BSD is Unix, and therefore POSIX. OSX is BSD, and therefore POSIX. Linux is also POSIX, but out of a conscious decision rather than inheritance. Windows is not POSIX.

08-29-2007 01:54 PM
Find all posts by this user Quote this message in a reply
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #3
RE: [OSX] murgaLua.getHostOsName()

mikshaw Wrote:
A POSIX system is one which adheres to an operating system standard based on Unix. BSD is Unix, and therefore POSIX. OSX is BSD, and therefore POSIX. Linux is also POSIX, but out of a conscious decision rather than inheritance. Windows is not POSIX.


That is a common misconception (which caught me out before) ...

http://en.wikipedia.org/wiki/POSIX

Cheers
JohnM

08-29-2007 05:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #4
RE: [OSX] murgaLua.getHostOsName()

How bizarre. I had no idea there was certification involved, or that NT-based systems were certified. It's a crazy mixed up topsy-turvy higgledy-piggledy world.

08-29-2007 11:20 PM
Find all posts by this user Quote this message in a reply
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #5
RE: [OSX] murgaLua.getHostOsName()

mikshaw Wrote:
How bizarre. I had no idea there was certification involved, or that NT-based systems were certified. It's a crazy mixed up topsy-turvy higgledy-piggledy world.


In the grand scheme of things that's nothing (off topic) :

http://www.groklaw.net/article.php?story...7111019189

OR ...

http://www.betanews.com/article/Court_Ru...1188323085

...

Cheers
JohnM

08-30-2007 01:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
chrimo
Member
***


Posts: 94
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #6
RE: [OSX] murgaLua.getHostOsName()

JohnMurga Wrote:

mikshaw Wrote:
How bizarre. I had no idea there was certification involved, or that NT-based systems were certified. It's a crazy mixed up topsy-turvy higgledy-piggledy world.


In the grand scheme of things that's nothing (off topic) :

http://www.groklaw.net/article.php?story...7111019189

OR ...

http://www.betanews.com/article/Court_Ru...1188323085

...

Cheers
JohnM


Hi Big Grin
let's make our own names...

Win32,Linux,OSX is looks much better than current windows, linux, macos

Just cosmetics ans not POSIX ;-)
Bye
Christian

08-30-2007 04:19 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #7
RE: [OSX] murgaLua.getHostOsName()

[still off-topic]
You know, every time I read one of these Groklaw or FSDaily articles that has anything at all to do with Microsoft, I feel increasing anger and hatred. I'm pretty much anti-capitalist (in the "dog-eat-dog" sense of the word, anyway) and already have a strong dislike for most of the business tactics used by just about every large-scale company, and then something like this comes out that shows a complete lack of morals (as opposed to the simple lack of decency shown through the act of buying out competitors and spreading false rumors). It's even worse because most people don't even seem to care.

08-30-2007 07:43 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: