2
|
1 |
/*
|
|
2 |
* Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
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
|
|
7 |
* published by the Free Software Foundation.
|
|
8 |
*
|
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
13 |
* accompanied this code).
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License version
|
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 |
*
|
|
19 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
20 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
21 |
* have any questions.
|
|
22 |
*/
|
|
23 |
|
|
24 |
/*
|
|
25 |
*
|
|
26 |
*
|
|
27 |
* Indictly used by SolarisRunpath.sh; this file is used to generate
|
|
28 |
* the shared objects:
|
|
29 |
*
|
|
30 |
* ./lib/sparc/lib32/liblibrary.so
|
|
31 |
* ./lib/sparc/lib32/lib32/liblibrary.so
|
|
32 |
*
|
|
33 |
* ./lib/sparc/lib64/liblibrary.so
|
|
34 |
* ./lib/sparc/lib64/lib64/liblibrary.so
|
|
35 |
*
|
|
36 |
* ./lib/i386/lib32/liblibrary.so
|
|
37 |
* ./lib/i386/lib32/lib32/liblibrary.so
|
|
38 |
*
|
|
39 |
* The function defined below returns either 0 or the size of an
|
|
40 |
* integer in the data model used to compile the file (32 for ILP; 64
|
|
41 |
* for LP). The libraries in ./lib/$ARCH/lib$DM return 0; those in
|
|
42 |
* ./lib/$ARCH/lib$DM/lib$DM return 32 or 64.
|
|
43 |
*/
|
|
44 |
|
|
45 |
|
|
46 |
#include <jni.h>
|
|
47 |
#include "libraryCaller.h"
|
|
48 |
|
|
49 |
#ifndef RETURN_VALUE
|
|
50 |
#define RETURN_VALUE 0
|
|
51 |
#endif
|
|
52 |
|
|
53 |
JNIEXPORT jint JNICALL Java_libraryCaller_number
|
|
54 |
(JNIEnv *je, jclass jc) {
|
|
55 |
return RETURN_VALUE;
|
|
56 |
}
|