From d423203d960e6e2340798f00f907d2b1271c3d89 Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 8 Jun 2023 03:47:38 +0200 Subject: Use kotlin buildscript --- src/main/cpp/libc.cpp | 31 ------------------------------- src/main/cpp/libc.h | 29 ----------------------------- 2 files changed, 60 deletions(-) delete mode 100644 src/main/cpp/libc.cpp delete mode 100644 src/main/cpp/libc.h (limited to 'src/main/cpp') diff --git a/src/main/cpp/libc.cpp b/src/main/cpp/libc.cpp deleted file mode 100644 index 060e83e..0000000 --- a/src/main/cpp/libc.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include -#include "unistd.h" -#include -#ifdef __cplusplus -extern "C" { -#endif -/* - * Class: gq_malwarefight_nosession_linux_libc_Libc - * Method: geteuid - * Signature: ()I - */ -JNIEXPORT jint JNICALL Java_gq_malwarefight_nosession_linux_libc_Libc_geteuid - (JNIEnv *, jclass) { - return (int) geteuid(); -} - -/* - * Class: gq_malwarefight_nosession_linux_libc_Libc - * Method: unlink - * Signature: (Ljava/lang/String;)I - */ -JNIEXPORT void JNICALL Java_gq_malwarefight_nosession_linux_libc_Libc_unlink - (JNIEnv* env, jclass, jstring string) { - const char* path = env->GetStringUTFChars(string, NULL); - unlink(path); - env->ReleaseStringUTFChars(string, path); -} - -#ifdef __cplusplus -} -#endif diff --git a/src/main/cpp/libc.h b/src/main/cpp/libc.h deleted file mode 100644 index 6aaa1a6..0000000 --- a/src/main/cpp/libc.h +++ /dev/null @@ -1,29 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class gq_malwarefight_nosession_linux_libc_Libc */ - -#ifndef _Included_gq_malwarefight_nosession_linux_libc_Libc -#define _Included_gq_malwarefight_nosession_linux_libc_Libc // NOLINT(bugprone-reserved-identifier) -#ifdef __cplusplus -extern "C" { -#endif -/* - * Class: gq_malwarefight_nosession_linux_libc_Libc - * Method: geteuid - * Signature: ()I - */ -JNIEXPORT jint JNICALL Java_gq_malwarefight_nosession_linux_libc_Libc_geteuid - (JNIEnv *, jclass); - -/* - * Class: gq_malwarefight_nosession_linux_libc_Libc - * Method: unlink - * Signature: (Ljava/lang/String;) - */ -JNIEXPORT void JNICALL Java_gq_malwarefight_nosession_linux_libc_Libc_unlink - (JNIEnv *, jclass, jstring); - -#ifdef __cplusplus -} -#endif -#endif -- cgit