lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


POSLIB 1.0.4 -- minor upgrade to POSLIB

POSLIB 1.0.4 is available for anonymous FTP from
http://www.lmf-di.puc-rio.br/~terra/projects/poslib_index.html
ftp://ftp3.lmf-di.puc-rio.br/terra/poslib/poslib.tar.gz

Changed:
Functions stat() and access() no longer terminates execution of the 
program (lua_error) on some error situations. All errors are now 
indicated by nil + error string (see manual at the WWW page for details). 
Thanks to Cassino for the feedback.

Claudio Terra
971204

P.S.: if anyone succeeds compiling this under Windows NT, please let me 
know!


poslib --	A POSIX Library for Lua
=================================
Poslib is a POSIX library for the programming language Lua. It provides 
a Lua interface to the functions in the POSIX standard, allowing Lua 
programs to access many operating system functions and environment 
information. Poslib provides a subset of POSIX defined in 
IEEE Std. 1003.1-1990.


Poslib functions
================
- File System:
  dir, getcwd, chdir, pathconf, stat, mkdir, link, lock, unlink, rmdir, 
  chmod, umask, chown, chgrp, access, utime. 

- Authentication and Process Information:
  getprocessid, getgroup, getpasswd, setuid, setgid, sleep. 

- System Configuration:
  uname, sysconf, getenv*. 

- Time and Clock:
  times, clock, date*, currdate.

(functions with a "*" next to their names are enhanced versions of 
functions
already present in the standard Lua libraries)

Not the whole standard is implemented, since many functions make little
sense in an embedded language like Lua, and others are somehow already
implemented in Lua or one of its basic libraries. 
In some cases, closely related POSIX functions have been assembled in a 
single poslib function. Conventions have been created to represent time 
and dates (the date table) and file permissions (the mode string). C 
functions
are provided to help creating and manipulating Lua objects acording to
these conventions.


More Information and Manual
===========================
Information about poslib and a online manual can be found at
http://www.lmf-di.puc-rio.br/~terra/projects/poslib_index.html


Download
========
Version 1.0 of poslib is available for anonymous FTP at:
ftp://ftp3.lmf-di.puc-rio.br/terra/poslib/poslib.tar.gz


Feedback
========
Please sent comments, problem reports and suggestions to
terra@inf.puc-rio.br





Claudio Terra
terra@inf.puc-rio.br
PUC-Rio, Brazil