Dan Crosta on 26 Jul 2006 18:33:51 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Linux Port


bergman@merctech.com wrote:
Um, I don't think that's what you want.

Remember, Solaris runs on X86, and Linux runs on SPARC hardware...so you've got potential confusion here...

You probably want "uname -s", which returns the OS type. Here's a quick, un-scientific survey:

	Platform			uname -s
	--------------------		---------------
	x86, linux			Linux
	sun4u, Solaris			SunOS
	IP35, Irix			IRIX64
	x86_64, Linux			Linux
	x86, NetBSD			NetBSD
	
Note that Solaris is a subset of SunOS, as far as uname is concerned...I don't
have a machine running SunOS available to test what "uname -s" returns there...

This will also work (FSVO "work" on Windows machines running Cygwin).

Oh, you're right -- we were using this to switch some optimized assembly code, or rather, to use optimized MMX assembly or plain old C, in certain bits of a graphics project. My bad.


- d
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug