harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: Using APR for Harmony's native link to the OS?
Date Fri, 10 Feb 2006 22:29:33 GMT
Stefano Mazzocchi wrote:
> therefore, my suggestion is: instead of hooking our native stuff to the
> OS directly (or to the standard C libraries) we should hook them up to
> something that is a little more abstract and therefore reduces the
> effort of porting across OSes.

Have you seen the classlib port layer code that is already in Harmony?


The existing natives(*) use this layer for all OS interaction.  There is
a portlib implementation for Windows and Linux on IA32 in Harmony.

I'm no expert on APR, but I would expect that implementing the portlib
on APR would be no more difficult than implementing it on any other

(*) modulo the security2 native code

For classlib developers who need to twiddle bits, there is a set of
pluggable Java interfaces (called I{File|Memory|Network}System.java) here:




Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

View raw message