| 429 | } |
| 430 | |
| 431 | extern "C" JNIEXPORT jboolean JNICALL |
| 432 | Java_java_io_File_canExecute(JNIEnv* e, jclass, jstring path) |
| 433 | { |
| 434 | string_t chars = getChars(e, path); |
| 435 | if (chars) { |
| 436 | int r = ACCESS(chars, CHECK_X_OK); |
| 437 | releaseChars(e, path, chars); |
| 438 | return (r == 0); |
| 439 | } |
| 440 | return false; |
| 441 | } |
| 442 | |
| 443 | #ifndef PLATFORM_WINDOWS |
| 444 | extern "C" JNIEXPORT jboolean JNICALL |
nothing calls this directly
no test coverage detected