equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
118 return osname.equals("SunOS"); |
118 return osname.equals("SunOS"); |
119 } |
119 } |
120 |
120 |
121 static boolean isBSD() { |
121 static boolean isBSD() { |
122 return (osname.equals("Linux") || |
122 return (osname.equals("Linux") || |
123 osname.startsWith("Mac OS X")); |
123 osname.contains("OS X")); |
124 } |
124 } |
125 |
125 |
126 static final int UNINITIALIZED = -1; |
126 static final int UNINITIALIZED = -1; |
127 static final int BSD_LPD = 0; |
127 static final int BSD_LPD = 0; |
128 static final int BSD_LPD_NG = 1; |
128 static final int BSD_LPD_NG = 1; |