Lines Matching refs:path

55     jfieldID path;
64 ids.path = (*env)->GetFieldID(env, fileClass,
65 "path", "Ljava/lang/String;");
70 extern int canonicalize(char *path, const char *out, int len);
78 WITH_PLATFORM_STRING(env, pathname, path) {
80 if (canonicalize(JVM_NativePath((char *)path),
90 } END_PLATFORM_STRING(env, path);
99 statMode(const char *path, int *mode)
102 if (stat64(path, &sb) == 0) {
116 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
118 if (statMode(path, &mode)) {
124 } END_PLATFORM_STRING(env, path);
146 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
147 if (access(path, mode) == 0) {
150 } END_PLATFORM_STRING(env, path);
164 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
189 if (statMode(path, &mode)) {
194 if (chmod(path, mode) >= 0) {
198 } END_PLATFORM_STRING(env, path);
208 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
210 if (stat64(path, &sb) == 0) {
213 } END_PLATFORM_STRING(env, path);
224 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
226 if (stat64(path, &sb) == 0) {
229 } END_PLATFORM_STRING(env, path);
243 WITH_PLATFORM_STRING(env, pathname, path) {
245 if (!strcmp (path, "/")) {
248 fd = JVM_Open(path, JVM_O_RDWR | JVM_O_CREAT | JVM_O_EXCL, 0666);
252 JNU_ThrowIOExceptionWithLastError(env, path);
258 } END_PLATFORM_STRING(env, path);
269 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
270 if (remove(path) == 0) {
273 } END_PLATFORM_STRING(env, path);
288 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
289 dir = opendir(path);
290 } END_PLATFORM_STRING(env, path);
355 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
356 if (mkdir(path, 0777) == 0) {
359 } END_PLATFORM_STRING(env, path);
370 WITH_FIELD_PLATFORM_STRING(env, from, ids.path, fromPath) {
371 WITH_FIELD_PLATFORM_STRING(env, to, ids.path, toPath) {
386 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
389 if (stat64(path, &sb) == 0) {
400 if (utimes(path, tv) == 0)
403 } END_PLATFORM_STRING(env, path);
415 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
417 if (statMode(path, &mode)) {
418 if (chmod(path, mode & ~(S_IWUSR | S_IWGRP | S_IWOTH)) >= 0) {
422 } END_PLATFORM_STRING(env, path);
432 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
435 if (statvfs64(path, &fsstat) == 0) {
453 } END_PLATFORM_STRING(env, path);