< prev index next >

src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c

Print this page

        

*** 729,739 **** --- 729,742 ---- int res; DIR* dirp = jlong_to_ptr(value); /* EINTR not listed as a possible error */ /* TDB: reentrant version probably not required here */ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" res = readdir64_r(dirp, ptr, &result); + #pragma GCC diagnostic pop #ifdef _AIX /* On AIX, readdir_r() returns EBADF (i.e. '9') and sets 'result' to NULL for the */ /* directory stream end. Otherwise, 'errno' will contain the error code. */ if (res != 0) {
< prev index next >