Add basic os library implementation.

This commit is contained in:
James Roseborough
2009-04-03 05:42:45 +00:00
parent 37b759485b
commit 4039127936
4 changed files with 490 additions and 5 deletions

View File

@@ -209,15 +209,11 @@ The following libraries are loaded by default in J2ME and J2SE platforms:
The following libraries are optional, but preconfigured for some platforms and tools:
<pre>
io
os
debug
luajava
</pre>
The following is not yet implemented:
<pre>
os
</pre>
<h2>Optional Libraries</h2>
<h3>I/O Library</h3>
@@ -238,6 +234,21 @@ To install into your vm instance use (j2me only):
<p>
See the sample midlet int <em>src/sample/SampleMIDlet</em> for an example.
<h3>OS Library</h3>
A basic os library implementation for either J2ME or J2SE is provided ins
<pre>
src/core/org/luaj/lib/OsLib.java
</pre>
A slightly more complete version for J2SE is in:
<pre>
src/j2se/org/luaj/lib/j2se/J2seOsLib.java
</pre>
Time is a represented as number of milliseconds since the epoch,
and most time and date formatting, locales, and other features
are not implemented.
<h3>Debug Library</h3>
The following library is optional:
<pre>