提交 95b6c454 编写于 作者: V Vlad Ilyushchenko

Misc: common nanosecond clock impl, Files.exists() pre-impl for linux

上级 0b5b6601
......@@ -278,3 +278,8 @@ JNIEXPORT jboolean JNICALL Java_com_questdb_std_Files_rename
(JNIEnv *e, jclass cls, jlong lpszOld, jlong lpszNew) {
return (jboolean) (rename((const char *) lpszOld, (const char *) lpszNew) == 0);
}
JNIEXPORT jboolean JNICALL Java_com_questdb_std_Files_exists0
(JNIEnv *e, jclass cls, jlong lpsz) {
return access((const char *) lpsz, F_OK);
}
......@@ -27,6 +27,7 @@
#include <sys/errno.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include "../share/os.h"
JNIEXPORT jint JNICALL Java_com_questdb_std_Os_getPid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册