You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/10/28 12:29:31 UTC
svn commit: r589337 - in /harmony/enhanced/drlvm/trunk/vm/port/src:
thread/linux/apr_thread_ext.c vmem/linux/port_vmem.c
Author: hindessm
Date: Sun Oct 28 04:29:30 2007
New Revision: 589337
URL: http://svn.apache.org/viewvc?rev=589337&view=rev
Log:
More stubs for FreeBSD.
Modified:
harmony/enhanced/drlvm/trunk/vm/port/src/thread/linux/apr_thread_ext.c
harmony/enhanced/drlvm/trunk/vm/port/src/vmem/linux/port_vmem.c
Modified: harmony/enhanced/drlvm/trunk/vm/port/src/thread/linux/apr_thread_ext.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/thread/linux/apr_thread_ext.c?rev=589337&r1=589336&r2=589337&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/thread/linux/apr_thread_ext.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/thread/linux/apr_thread_ext.c Sun Oct 28 04:29:30 2007
@@ -173,6 +173,9 @@
APR_DECLARE(apr_status_t) apr_get_thread_time(apr_thread_t *thread, apr_int64_t* nanos_ptr)
{
+#ifdef FREEBSD
+ return APR_ENOTIME; /* TOFIX: Implement */
+#else
clockid_t clock_id;
pthread_t *os_thread;
struct timespec tp;
@@ -200,6 +203,7 @@
*nanos_ptr = tp.tv_sec * 1000000000ULL + tp.tv_nsec;
return APR_SUCCESS;
+#endif
}
Modified: harmony/enhanced/drlvm/trunk/vm/port/src/vmem/linux/port_vmem.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/vmem/linux/port_vmem.c?rev=589337&r1=589336&r2=589337&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/vmem/linux/port_vmem.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/vmem/linux/port_vmem.c Sun Oct 28 04:29:30 2007
@@ -143,6 +143,14 @@
return port_vmem_committed_size();
}
+#ifdef FREEBSD
+APR_DECLARE(size_t) port_vmem_committed_size(){
+ return 0; /* TOFIX: Implement */
+}
+APR_DECLARE(size_t) port_vmem_max_size(){
+ return 0; /* TOFIX: Implement */
+}
+#else
APR_DECLARE(size_t) port_vmem_committed_size(){
char* buf = (char*) malloc(PATH_MAX + 1);
size_t vmem = 0;
@@ -202,6 +210,7 @@
free(buf);
return rlim;
}
+#endif
APR_DECLARE(apr_status_t) port_vmem_allocate(void **addr, size_t size, unsigned int mode)
{