Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/utilities/PlatformInfo.java @ 3960:f08d439fab8c
7089790: integrate bsd-port changes
Reviewed-by: kvn, twisti, jrose
Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
author | never |
---|---|
date | Sun, 25 Sep 2011 16:03:29 -0700 |
parents | c18cbe5936b8 |
children | 436b4a3231bf |
comparison
equal
deleted
inserted
replaced
3959:eda6988c0d81 | 3960:f08d439fab8c |
---|---|
35 String os = System.getProperty("os.name"); | 35 String os = System.getProperty("os.name"); |
36 if (os.equals("SunOS")) { | 36 if (os.equals("SunOS")) { |
37 return "solaris"; | 37 return "solaris"; |
38 } else if (os.equals("Linux")) { | 38 } else if (os.equals("Linux")) { |
39 return "linux"; | 39 return "linux"; |
40 } else if (os.equals("FreeBSD")) { | |
41 return "bsd"; | |
42 } else if (os.equals("NetBSD")) { | |
43 return "bsd"; | |
44 } else if (os.equals("OpenBSD")) { | |
45 return "bsd"; | |
46 } else if (os.equals("Darwin")) { | |
47 return "bsd"; | |
40 } else if (os.startsWith("Windows")) { | 48 } else if (os.startsWith("Windows")) { |
41 return "win32"; | 49 return "win32"; |
42 } else { | 50 } else { |
43 throw new UnsupportedPlatformException("Operating system " + os + " not yet supported"); | 51 throw new UnsupportedPlatformException("Operating system " + os + " not yet supported"); |
44 } | 52 } |