< prev index next >

src/hotspot/os/aix/attachListener_aix.cpp

Print this page
@@ -475,18 +475,18 @@
  // an attaching process to think we are ready to receive on the
  // domain socket before we are properly initialized
  
  void AttachListener::vm_start() {
    char fn[UNIX_PATH_MAX];
-   struct stat64 st;
+   struct stat st;
    int ret;
  
    int n = snprintf(fn, UNIX_PATH_MAX, "%s/.java_pid%d",
             os::get_temp_directory(), os::current_process_id());
    assert(n < (int)UNIX_PATH_MAX, "java_pid file name buffer overflow");
  
-   RESTARTABLE(::stat64(fn, &st), ret);
+   RESTARTABLE(::stat(fn, &st), ret);
    if (ret == 0) {
      ret = ::unlink(fn);
      if (ret == -1) {
        log_debug(attach)("Failed to remove stale attach pid file at %s", fn);
      }

@@ -502,12 +502,12 @@
    return ret_code;
  }
  
  bool AttachListener::check_socket_file() {
    int ret;
-   struct stat64 st;
-   ret = stat64(AixAttachListener::path(), &st);
+   struct stat st;
+   ret = stat(AixAttachListener::path(), &st);
    if (ret == -1) { // need to restart attach listener.
      log_debug(attach)("Socket file %s does not exist - Restart Attach Listener",
                        AixAttachListener::path());
  
      listener_cleanup();

@@ -542,18 +542,18 @@
    if (init_at_startup() || is_initialized()) {
      return false;               // initialized at startup or already initialized
    }
    char fn[PATH_MAX + 1];
    int ret;
-   struct stat64 st;
+   struct stat st;
    os::snprintf_checked(fn, sizeof(fn), ".attach_pid%d", os::current_process_id());
-   RESTARTABLE(::stat64(fn, &st), ret);
+   RESTARTABLE(::stat(fn, &st), ret);
    if (ret == -1) {
      log_trace(attach)("Failed to find attach file: %s, trying alternate", fn);
      snprintf(fn, sizeof(fn), "%s/.attach_pid%d",
               os::get_temp_directory(), os::current_process_id());
-     RESTARTABLE(::stat64(fn, &st), ret);
+     RESTARTABLE(::stat(fn, &st), ret);
      if (ret == -1) {
        log_debug(attach)("Failed to find attach file: %s", fn);
      }
    }
    if (ret == 0) {
< prev index next >