author | igerasim |
Tue, 28 Oct 2014 15:36:27 +0300 | |
changeset 27263 | 819f5f87d485 |
parent 25859 | 3317bb8137f4 |
permissions | -rw-r--r-- |
9832
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
1 |
/* |
16476
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
2 |
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
9832
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
4 |
* |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
10 |
* |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
15 |
* accompanied this code). |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
16 |
* |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
20 |
* |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
23 |
* questions. |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
24 |
*/ |
34b8ffb9c904
7033865: JDK: Add private API for secure/restrictive loading of system dlls
chegar
parents:
diff
changeset
|
25 |
|
16476
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
26 |
#ifndef JDK_UTIL_MD_H |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
27 |
#define JDK_UTIL_MD_H |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
28 |
|
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
29 |
// checking for nanness |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
30 |
#ifdef __solaris__ |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
31 |
#include <ieeefp.h> |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
32 |
#define ISNANF(f) isnanf(f) |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
33 |
#define ISNAND(d) isnand(d) |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
34 |
#elif defined(MACOSX) |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
35 |
#include <math.h> |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
36 |
#define ISNANF(f) isnan(f) |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
37 |
#define ISNAND(d) isnan(d) |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
38 |
#elif defined(__linux__) || defined(_ALLBSD_SOURCE) |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
39 |
#include <math.h> |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
40 |
#define ISNANF(f) isnanf(f) |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
41 |
#define ISNAND(d) isnan(d) |
22597
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
16476
diff
changeset
|
42 |
#elif defined(_AIX) |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
16476
diff
changeset
|
43 |
#include <math.h> |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
16476
diff
changeset
|
44 |
#define ISNANF(f) _isnanf(f) |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
16476
diff
changeset
|
45 |
#define ISNAND(d) _isnan(d) |
16476
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
46 |
#else |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
47 |
#error "missing platform-specific definition here" |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
48 |
#endif |
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
49 |
|
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
14856
diff
changeset
|
50 |
#endif /* JDK_UTIL_MD_H */ |