You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/28 17:53:16 UTC

svn commit: r819611 - in /commons/sandbox/runtime/trunk/src/main/native: include/arch/unix/acr_arch.h include/arch/windows/acr_arch_private.h test/testcase.c

Author: mturk
Date: Mon Sep 28 15:53:15 2009
New Revision: 819611

URL: http://svn.apache.org/viewvc?rev=819611&view=rev
Log:
Add portable define for invalid uid_t/gid_t

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/arch/unix/acr_arch.h
    commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h
    commons/sandbox/runtime/trunk/src/main/native/test/testcase.c

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/unix/acr_arch.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/unix/acr_arch.h?rev=819611&r1=819610&r2=819611&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/unix/acr_arch.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/unix/acr_arch.h Mon Sep 28 15:53:15 2009
@@ -45,6 +45,8 @@
 #define ACR_UINT64_T_HEX_FMT     "llx"
 #endif
 
+#define ACR_INVALID_UID_T        (-1)
+
 #define ACR_ARCHIMPL_CLASS_PATH   ACR_CLASS_PATH "platform/unix/"
 #define ACR_JNI_ARCHIMPL_DECLARE(RT, CL, FN)  \
     JNIEXPORT RT JNICALL Java_org_apache_commons_runtime_platform_unix_##CL##_##FN

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h?rev=819611&r1=819610&r2=819611&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_private.h Mon Sep 28 15:53:15 2009
@@ -63,6 +63,7 @@
 #define ACR_INT64_T_FMT          "I64d"
 #define ACR_UINT64_T_FMT         "I64u"
 #define ACR_UINT64_T_HEX_FMT     "I64x"
+#define ACR_INVALID_UID_T        INVALID_HANDLE_VALUE
 
 /**
  * @file acr_arch_private.h

Modified: commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c?rev=819611&r1=819610&r2=819611&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testcase.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testcase.c Mon Sep 28 15:53:15 2009
@@ -852,7 +852,7 @@
 ACR_JNI_EXPORT_DECLARE(jint, TestPrivate, test078)(ACR_JNISTDARGS, jint m,
                                                    jint p)
 {
-    return ACR_ProcMutexPermSet(_E, m, p, -1, -1);
+    return ACR_ProcMutexPermSet(_E, m, p, ACR_INVALID_UID_T, ACR_INVALID_UID_T);
 }
 
 #if defined(WIN32)