< prev index next >

src/java.base/unix/native/libjava/UnixFileSystem_md.c

Print this page
*** 143,12 ***
      } END_PLATFORM_STRING(env, path);
      return rv;
  }
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_checkAccess(JNIEnv *env, jobject this,
!                                         jobject file, jint a)
  {
      jboolean rv = JNI_FALSE;
      int mode = 0;
      switch (a) {
      case java_io_FileSystem_ACCESS_READ:
--- 143,12 ---
      } END_PLATFORM_STRING(env, path);
      return rv;
  }
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_checkAccess0(JNIEnv *env, jobject this,
!                                          jobject file, jint a)
  {
      jboolean rv = JNI_FALSE;
      int mode = 0;
      switch (a) {
      case java_io_FileSystem_ACCESS_READ:

*** 172,15 ***
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_setPermission(JNIEnv *env, jobject this,
!                                           jobject file,
!                                           jint access,
!                                           jboolean enable,
!                                           jboolean owneronly)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          int amode = 0;
--- 172,15 ---
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_setPermission0(JNIEnv *env, jobject this,
!                                            jobject file,
!                                            jint access,
!                                            jboolean enable,
!                                            jboolean owneronly)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          int amode = 0;

*** 221,12 ***
      } END_PLATFORM_STRING(env, path);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_UnixFileSystem_getLastModifiedTime(JNIEnv *env, jobject this,
!                                                 jobject file)
  {
      jlong rv = 0;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          struct stat64 sb;
--- 221,12 ---
      } END_PLATFORM_STRING(env, path);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_UnixFileSystem_getLastModifiedTime0(JNIEnv *env, jobject this,
!                                                  jobject file)
  {
      jlong rv = 0;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          struct stat64 sb;

*** 246,12 ***
      return rv;
  }
  
  
  JNIEXPORT jlong JNICALL
! Java_java_io_UnixFileSystem_getLength(JNIEnv *env, jobject this,
!                                       jobject file)
  {
      jlong rv = 0;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          struct stat64 sb;
--- 246,12 ---
      return rv;
  }
  
  
  JNIEXPORT jlong JNICALL
! Java_java_io_UnixFileSystem_getLength0(JNIEnv *env, jobject this,
!                                        jobject file)
  {
      jlong rv = 0;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          struct stat64 sb;

*** 265,12 ***
  
  /* -- File operations -- */
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_createFileExclusively(JNIEnv *env, jclass cls,
!                                                   jstring pathname)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_PLATFORM_STRING(env, pathname, path) {
          FD fd;
--- 265,12 ---
  
  /* -- File operations -- */
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_createFileExclusively0(JNIEnv *env, jclass cls,
!                                                    jstring pathname)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_PLATFORM_STRING(env, pathname, path) {
          FD fd;

*** 305,12 ***
      return rv;
  }
  
  
  JNIEXPORT jobjectArray JNICALL
! Java_java_io_UnixFileSystem_list(JNIEnv *env, jobject this,
-                                  jobject file)
  {
      DIR *dir = NULL;
      struct dirent *ptr;
      int len, maxlen;
      jobjectArray rv, old;
--- 305,11 ---
      return rv;
  }
  
  
  JNIEXPORT jobjectArray JNICALL
! Java_java_io_UnixFileSystem_list0(JNIEnv *env, jobject this, jobject file)
  {
      DIR *dir = NULL;
      struct dirent *ptr;
      int len, maxlen;
      jobjectArray rv, old;

*** 371,12 ***
      return NULL;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_createDirectory(JNIEnv *env, jobject this,
!                                             jobject file)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          if (mkdir(path, 0777) == 0) {
--- 370,12 ---
      return NULL;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_createDirectory0(JNIEnv *env, jobject this,
!                                              jobject file)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          if (mkdir(path, 0777) == 0) {

*** 402,12 ***
      } END_PLATFORM_STRING(env, fromPath);
      return rv;
  }
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_setLastModifiedTime(JNIEnv *env, jobject this,
!                                                 jobject file, jlong time)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          struct stat64 sb;
--- 401,12 ---
      } END_PLATFORM_STRING(env, fromPath);
      return rv;
  }
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_setLastModifiedTime0(JNIEnv *env, jobject this,
!                                                  jobject file, jlong time)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          struct stat64 sb;

*** 438,12 ***
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_setReadOnly(JNIEnv *env, jobject this,
!                                         jobject file)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          int mode;
--- 437,12 ---
      return rv;
  }
  
  
  JNIEXPORT jboolean JNICALL
! Java_java_io_UnixFileSystem_setReadOnly0(JNIEnv *env, jobject this,
!                                          jobject file)
  {
      jboolean rv = JNI_FALSE;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
          int mode;

*** 457,12 ***
      } END_PLATFORM_STRING(env, path);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_UnixFileSystem_getSpace(JNIEnv *env, jobject this,
!                                      jobject file, jint t)
  {
      jlong rv = 0L;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
  #ifdef MACOSX
--- 456,12 ---
      } END_PLATFORM_STRING(env, path);
      return rv;
  }
  
  JNIEXPORT jlong JNICALL
! Java_java_io_UnixFileSystem_getSpace0(JNIEnv *env, jobject this,
!                                       jobject file, jint t)
  {
      jlong rv = 0L;
  
      WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
  #ifdef MACOSX
< prev index next >