Changes from original files:
	linit.c
	lualib.h
	mkfile

New files that are added:
	lp9lib.c
	lp9lib.h

The lp9lib.c includes plan9 interface.

Current lp9lib contails following functions
Bug report to me

2009/04/03
Kenji Arisawa
Email: arisawa@aichi-u.ac.jp


open(name,option)
	name: path to file
	option:
	"r": read only
	"w": write (not truncated)
	"rw": read/write (not truncated)
	"w+": write (truncated)
	"a": write in append mode
	option default: "r"
	return: the file descriptor

close(fd)
	fd: file descriptor returned by open()
	return: nil

read(fd,size)
	fd: file descriptor returned by open()
	size: buffer size in reading
	size default: read all content
	return: read content

write(fd,string)
	fd: file descriptor returned by open()
	string: content to write
	return: byte size wrote

seek(fd,offset,how)
	fd: file descriptor returned by open()
	posintion: integer for ositioning
	how: "set","cur","end"  -- look system manual for detail
	return: new offset

access(name,mode)
	name: path to file
	mode: integer, look system manual for the meaning
	return: true or false

bind(name,old,how)
	name: path to file
	old: path to the target, look system manual for the meaning
	how: "a","b","c","ac","bc"
	return: true or false

unmount(name,old), unmount(old)
	name,old: path to file
	return: true or false

dirstat(name)
	name: path to file
	return: stat structure
	the structure is a Lua table with keys:
		"type","dev","qid","mode","atime","mtime","length","name","uid","gid","muid"
	note that
	- "qid" is modified from original one,
	- "mode" is a string expression of octal

dirwstat(name,stat)
	name: path to file
	stat: table returned by dirstat()
	return: nil
	note: dirwstat() is only be examined for changing "mode","uid","gid","mtime"
	bug: we should return the result status

readdir(name)
	name: path to directory
	return: the stat info of all files in the directory
	the results are sorted by file names

mkdir(name)
	name: dir name to be created
	return: true
	note: mkdir() cause error in fail

bit(x,ope,y)
	function: bit operators
	x,y: integer
	ope: "&","|","^","<<",">>"
	bit() is a bit operator
	return: the result

popen(command)
	command: Plan9 rc command list
	return: file descriptor
	note: Plan9 pipe is bidirectional, thus we can read/write to the file

fork()
	return: pid (process id)

wait(pid)
	pid: process id
	return: user_mode_time,system_time,elapsed_time
		all in units of milliseconds

alarm(millisecs)
	millisecs: time for an alarm note in unit of milli seconds
	return: nil

sleep(millisecs)
	millisecs: sleeping time in unit of milli seconds
	return: nil
