1 /* This file was generated from java/io/UnixFileSystem.java and is licensed
2  * under the same terms. The copyright and license information for
3  * java/io/UnixFileSystem.java follows.
4  *
5  * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
6  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7  *
8  * This code is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU General Public License version 2 only, as
10  * published by the Free Software Foundation.  Oracle designates this
11  * particular file as subject to the "Classpath" exception as provided
12  * by Oracle in the LICENSE file that accompanied this code.
13  *
14  * This code is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17  * version 2 for more details (a copy is included in the LICENSE file that
18  * accompanied this code).
19  *
20  * You should have received a copy of the GNU General Public License version
21  * 2 along with this work; if not, write to the Free Software Foundation,
22  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23  *
24  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
25  * or visit www.oracle.com if you need additional information or have any
26  * questions.
27  */
28 /* DO NOT EDIT THIS FILE - it is machine generated */
29 #include <jni.h>
30 /* Header for class java_io_UnixFileSystem */
31 
32 #ifndef _Included_java_io_UnixFileSystem
33 #define _Included_java_io_UnixFileSystem
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 #undef java_io_UnixFileSystem_BA_EXISTS
38 #define java_io_UnixFileSystem_BA_EXISTS 1L
39 #undef java_io_UnixFileSystem_BA_REGULAR
40 #define java_io_UnixFileSystem_BA_REGULAR 2L
41 #undef java_io_UnixFileSystem_BA_DIRECTORY
42 #define java_io_UnixFileSystem_BA_DIRECTORY 4L
43 #undef java_io_UnixFileSystem_BA_HIDDEN
44 #define java_io_UnixFileSystem_BA_HIDDEN 8L
45 #undef java_io_UnixFileSystem_ACCESS_READ
46 #define java_io_UnixFileSystem_ACCESS_READ 4L
47 #undef java_io_UnixFileSystem_ACCESS_WRITE
48 #define java_io_UnixFileSystem_ACCESS_WRITE 2L
49 #undef java_io_UnixFileSystem_ACCESS_EXECUTE
50 #define java_io_UnixFileSystem_ACCESS_EXECUTE 1L
51 #undef java_io_UnixFileSystem_SPACE_TOTAL
52 #define java_io_UnixFileSystem_SPACE_TOTAL 0L
53 #undef java_io_UnixFileSystem_SPACE_FREE
54 #define java_io_UnixFileSystem_SPACE_FREE 1L
55 #undef java_io_UnixFileSystem_SPACE_USABLE
56 #define java_io_UnixFileSystem_SPACE_USABLE 2L
57 /*
58  * Class:     java_io_UnixFileSystem
59  * Method:    canonicalize0
60  * Signature: (Ljava/lang/String;)Ljava/lang/String;
61  */
62 JNIEXPORT jstring JNICALL Java_java_io_UnixFileSystem_canonicalize0
63   (JNIEnv *, jobject, jstring,
64   // Android-added: Remove parent directory /.. at the rootfs. http://b/312399441
65   jboolean);
66 
67 /*
68  * Class:     java_io_UnixFileSystem
69  * Method:    getBooleanAttributes0
70  * Signature: (Ljava/io/File;)I
71  */
72 JNIEXPORT jint JNICALL Java_java_io_UnixFileSystem_getBooleanAttributes0
73   (JNIEnv *, jobject, jobject);
74 
75 /*
76  * Class:     java_io_UnixFileSystem
77  * Method:    checkAccess
78  * Signature: (Ljava/io/File;I)Z
79  */
80 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_checkAccess
81   (JNIEnv *, jobject, jobject, jint);
82 
83 /*
84  * Class:     java_io_UnixFileSystem
85  * Method:    getLastModifiedTime
86  * Signature: (Ljava/io/File;)J
87  */
88 JNIEXPORT jlong JNICALL Java_java_io_UnixFileSystem_getLastModifiedTime
89   (JNIEnv *, jobject, jobject);
90 
91 /*
92  * Class:     java_io_UnixFileSystem
93  * Method:    getLength
94  * Signature: (Ljava/io/File;)J
95  */
96 JNIEXPORT jlong JNICALL Java_java_io_UnixFileSystem_getLength
97   (JNIEnv *, jobject, jobject);
98 
99 /*
100  * Class:     java_io_UnixFileSystem
101  * Method:    setPermission
102  * Signature: (Ljava/io/File;IZZ)Z
103  */
104 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_setPermission
105   (JNIEnv *, jobject, jobject, jint, jboolean, jboolean);
106 
107 /*
108  * Class:     java_io_UnixFileSystem
109  * Method:    createFileExclusively
110  * Signature: (Ljava/lang/String;)Z
111  */
112 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_createFileExclusively
113   (JNIEnv *, jobject, jstring);
114 
115 /*
116  * Class:     java_io_UnixFileSystem
117  * Method:    delete0
118  * Signature: (Ljava/io/File;)Z
119  */
120 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_delete0
121   (JNIEnv *, jobject, jobject);
122 
123 /*
124  * Class:     java_io_UnixFileSystem
125  * Method:    list
126  * Signature: (Ljava/io/File;)[Ljava/lang/String;
127  */
128 JNIEXPORT jobjectArray JNICALL Java_java_io_UnixFileSystem_list
129   (JNIEnv *, jobject, jobject);
130 
131 /*
132  * Class:     java_io_UnixFileSystem
133  * Method:    createDirectory
134  * Signature: (Ljava/io/File;)Z
135  */
136 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_createDirectory
137   (JNIEnv *, jobject, jobject);
138 
139 /*
140  * Class:     java_io_UnixFileSystem
141  * Method:    rename0
142  * Signature: (Ljava/io/File;Ljava/io/File;)Z
143  */
144 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_rename0
145   (JNIEnv *, jobject, jobject, jobject);
146 
147 /*
148  * Class:     java_io_UnixFileSystem
149  * Method:    setLastModifiedTime
150  * Signature: (Ljava/io/File;J)Z
151  */
152 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_setLastModifiedTime
153   (JNIEnv *, jobject, jobject, jlong);
154 
155 /*
156  * Class:     java_io_UnixFileSystem
157  * Method:    setReadOnly
158  * Signature: (Ljava/io/File;)Z
159  */
160 JNIEXPORT jboolean JNICALL Java_java_io_UnixFileSystem_setReadOnly
161   (JNIEnv *, jobject, jobject);
162 
163 /*
164  * Class:     java_io_UnixFileSystem
165  * Method:    getSpace
166  * Signature: (Ljava/io/File;I)J
167  */
168 JNIEXPORT jlong JNICALL Java_java_io_UnixFileSystem_getSpace
169   (JNIEnv *, jobject, jobject, jint);
170 
171 /*
172  * Class:     java_io_UnixFileSystem
173  * Method:    initIDs
174  * Signature: ()V
175  */
176 JNIEXPORT void JNICALL Java_java_io_UnixFileSystem_initIDs
177   (JNIEnv *, jclass);
178 
179 #ifdef __cplusplus
180 }
181 #endif
182 #endif
183