    {"handle",		sys_file},
    {"strerror",	sys_strerror},
    {"ncpu",		sys_ncpu},
    {"limit_nfiles",	sys_limit_nfiles},
    {"toint",		sys_toint},
    {"run",		sys_run},
    {"spawn",		sys_spawn},
    {"getpid",		sys_getpid},
    {"exit",		sys_exit},
    {"getenv",		sys_getenv},
    {"setenv",		sys_setenv},
    {"env",		sys_env},
    {"pid",		sys_pid},
	

	
	{"open",		sys_open},
    {"create",		sys_create},
    {"tempfile",	sys_tempfile},
    {"pipe",		sys_pipe},
    {"close",		sys_close},
    {"dispose",		sys_dispose},
    {"set_std",		sys_set_std},
    {"seek",		sys_seek},
    {"set_end",		sys_set_end},
    {"lock",		sys_lock},
    {"to_file",		sys_to_file},
    {"from_file",	sys_from_file},
    {"write",		sys_write},
    {"read",		sys_read},
    {"flush",		sys_flush},
#ifndef _WIN32
    {"fdopt",		sys_fdopt},
#else
    {"mailslot",	sys_mailslot},
    {"mailslot_info",	sys_mailslot_info},
    {"named_pipe",	sys_named_pipe},
#endif
    {"nonblocking",	sys_nonblocking},
    {"__tostring",	sys_tostring},
    {"comm_init",	sys_comm_init},
    {"comm_control",	sys_comm_control},
    {"comm_timeout",	sys_comm_timeout},
    {"comm_queues",	sys_comm_queues},
    {"comm_purge",	sys_comm_purge},
	
    {"close",		proc_close},
    {"wait",		proc_wait},
    {"kill",		proc_kill},
	
static luaL_reg mem_meth[] = {
    {"type",		mem_type},
    {"typesize",	mem_typesize},
    {"alloc",		mem_alloc},
    {"realloc",		mem_realloc},
#ifdef SYSMEM_HAVE_MMAP
    {"map",		mem_map},
    {"sync",		mem_sync},
#endif
    {"free",		mem_free},
    {"__gc",		mem_free},
    {"memcpy",		mem_memcpy},
    {"memset",		mem_memset},
    {"length",		mem_length},
    {"__len",		mem_length},
    {"__call",		mem_call},
    {"__index",		mem_index},
    {"__newindex",	mem_newindex},
    /* stream operations */
    {"write",		membuf_write},
    {"writeln",		membuf_writeln},
    {"getstring",	membuf_getstring},
    {"__tostring",	membuf_getstring},
    {"seek",		membuf_seek},
    {"output",		membuf_output},
    {"input",		membuf_input},
    {"read",		membuf_read},
    {"flush",		membuf_flush},
    {"close",		membuf_close},
    {NULL, NULL}
};

static luaL_reg memlib[] = {
    {"pointer",		mem_new},
    {"tostring",	mem_tostring},
    {NULL, NULL}
};