X-Git-Url: http://git.argeo.org/?p=gpl%2Fargeo-tp.git;a=blobdiff_plain;f=rebuild%2Forg.argeo.tp.utils%2Fjni%2Fcom_sun_mail_mbox%2FUNIXInbox.c;fp=rebuild%2Forg.argeo.tp.utils%2Fjni%2Fcom_sun_mail_mbox%2FUNIXInbox.c;h=0000000000000000000000000000000000000000;hp=274a44e1ed7e293ef78687528be0280d863f9628;hb=c74c5a87a9895e0b505c27f5d2c3ceb80ca144ea;hpb=720e45d801e7253f3619b2b2beee355606e03634 diff --git a/rebuild/org.argeo.tp.utils/jni/com_sun_mail_mbox/UNIXInbox.c b/rebuild/org.argeo.tp.utils/jni/com_sun_mail_mbox/UNIXInbox.c deleted file mode 100644 index 274a44e..0000000 --- a/rebuild/org.argeo.tp.utils/jni/com_sun_mail_mbox/UNIXInbox.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -#include -#include -extern void touchlock(); /* XXX - should be in maillock.h */ - -#include "com_sun_mail_mbox_UNIXInbox.h" - -/* - * Class: com_sun_mail_mbox_UNIXInbox - * Method: maillock - * Signature: (Ljava/lang/String;I)Z - */ -JNIEXPORT jboolean JNICALL -Java_com_sun_mail_mbox_UNIXInbox_maillock(JNIEnv *env, jobject obj, - jstring user, jint retry_count) -{ - jboolean ret; - const char *name = (*env)->GetStringUTFChars(env, user, 0); - ret = maillock((char *)name, retry_count) == L_SUCCESS ? - JNI_TRUE : JNI_FALSE; - (*env)->ReleaseStringUTFChars(env, user, name); - return (ret); -} - -/* - * Class: com_sun_mail_mbox_UNIXInbox - * Method: mailunlock - * Signature: ()V - */ -JNIEXPORT void JNICALL -Java_com_sun_mail_mbox_UNIXInbox_mailunlock(JNIEnv *env, jobject obj) -{ - (void) mailunlock(); -} - -/* - * Class: com_sun_mail_mbox_UNIXInbox - * Method: touchlock0 - * Signature: ()V - */ -JNIEXPORT void JNICALL -Java_com_sun_mail_mbox_UNIXInbox_touchlock0(JNIEnv *env, jobject obj) -{ - (void) touchlock(); -}