search for: lualib

Displaying 14 results from an estimated 14 matches for "lualib".

2013 Oct 03
0
Automatic boot menu?
...10:16 mascarenhas Exp $ +*/ + +#include <dirent.h> +#include <errno.h> +#include <fcntl.h> +#include <string.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <unistd.h> + +#include "lua.h" +#include "lauxlib.h" +#include "lualib.h" + +#define chdir_error strerror(errno) + +#define LFS_LIBNAME "lfs" + +/* Size of path buffer string, stolen from pwd.c */ +#ifndef PATH_MAX +# ifdef NAME_MAX +# define PATH_MAX NAME_MAX +# elif FILENAME_MAX +# define PATH_MAX FILENAME_MAX +# else +# define PATH_MA...
2013 Jul 18
4
LUA
...able to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. OS CentOS 6.4 Asterisk version 1.8.13.0 & 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua Jacob Miles Software Engineer jacob.e.miles at l-3com.com 903.457.4422 -------------- next part -------...
2013 Aug 30
2
Automatic boot menu?
"H. Peter Anvin" <hpa at zytor.com> writes: > On 08/29/2013 04:14 AM, Ferenc Wagner wrote: > >> "H. Peter Anvin" <hpa at zytor.com> writes: >> >>> On 08/22/2013 10:20 AM, Ferenc Wagner wrote: >>> >>>> Now that Syslinux has ls.c32 and lua.c32, it should be possible to build >>>> a customizable boot menu in
2011 Oct 04
1
Added DHCPINFO Tables to the lua.c32 Implementation - syslinux-4.04
...ub key values. + * + * Usage: + t = dhcp.gettable() + + for k,v in pairs(t) do + print(k.." : "..v) + end + */ + +#include <stdio.h> +#include "dhcp.h" +#include "lua.h" +#include "lauxlib.h" +#include "lualib.h" +#include <syslinux/pxe.h> + +#define STR_BUF_SIZE 129 /* Sized to accomdate File field in BOOTP message */ + +void +ip_address_list(lua_State *L, uint8_t* value, uint8_t len, uint8_t option ) +{ + static char op_name[64]; + static char op_value[255]; + int loop; +...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
...m.h | 9 +- com32/lua/src/lua.c | 341 +- com32/lua/src/lua.h | 225 +- com32/lua/{etc => src}/lua.hpp | 0 com32/lua/src/luac.c | 332 +- com32/lua/src/luaconf.h | 737 ++-- com32/lua/src/lualib.h | 47 +- com32/lua/src/lundump.c | 141 +- com32/lua/src/lundump.h | 22 +- com32/lua/src/lvm.c | 923 ++-- com32/lua/src/lvm.h | 26 +- com32/lua/src/lzio.c | 34 +- com32/lua/src/lzio...
2009 Aug 29
2
Asterisk 1.6.0.14 and 1.6.1.5 Now Available
The Asterisk Development Team is pleased to announce the release of Asterisk 1.6.0.14 and 1.6.1.5. Asterisk 1.6.0.14 and 1.6.1.5 are available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk/ Asterisk 1.6.0.14 is the first full, non-security release since 1.6.0.10. The release candidate 1.6.0.11-rc1 was redone as 1.6.0.14-rc1 (which this release has been created
2009 Aug 29
2
Asterisk 1.6.0.14 and 1.6.1.5 Now Available
The Asterisk Development Team is pleased to announce the release of Asterisk 1.6.0.14 and 1.6.1.5. Asterisk 1.6.0.14 and 1.6.1.5 are available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk/ Asterisk 1.6.0.14 is the first full, non-security release since 1.6.0.10. The release candidate 1.6.0.11-rc1 was redone as 1.6.0.14-rc1 (which this release has been created
2012 Sep 19
1
[PATCH 1/1] lua: Enabling io.read() in Lua.c32 with some restrictions
...++++++++++++++++++----------- 1 files changed, 29 insertions(+), 11 deletions(-) diff --git a/com32/lua/src/liolib.c b/com32/lua/src/liolib.c index 3f27395..cf9dca2 100644 --- a/com32/lua/src/liolib.c +++ b/com32/lua/src/liolib.c @@ -18,12 +18,18 @@ #include "lauxlib.h" #include "lualib.h" - +#ifdef SYSLINUX + #define NO_TMP_FILE 1 + #define NO_READ_NUMBER 1 + #define NO_TEST_EOF 1 + #define NO_CLEAR_ERR 1 + #define NO_F_SEEK 1 + #define NO_F_SETVBUF 1 +#endif #define IO_INPUT 1 #define IO_OUTPUT 2 - static const char *const fnames[] = {&...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...2/lua/src/dmi.c | 624 ++++++++++++++++++++++++++++++++++----------------- 2 files changed, 420 insertions(+), 208 deletions(-) diff --git a/com32/lua/src/cpu.c b/com32/lua/src/cpu.c index 8a246e3..6ef4e5a 100644 --- a/com32/lua/src/cpu.c +++ b/com32/lua/src/cpu.c @@ -9,13 +9,13 @@ #include"lualib.h" #include"cpuid.h" -static void add_string_item(lua_State *L, const char *item, const char *value_str) { +void add_string_item(lua_State *L, const char *item, const char *value_str) { lua_pushstring(L,item); lua_pushstring(L,value_str); lua_settable(L,-3); } -static void...
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
...nclude <disk/errno_disk.h> +#include <disk/error.h> +#include <disk/mbrs.h> +#include <disk/msdos.h> +#include <disk/partition.h> +#include <disk/swsusp.h> +#include <disk/read.h> + +#include "lua.h" +#include "lauxlib.h" +#include "lualib.h" + +#define SET_TABLE_STRING_INT(state, key, value) do {\ + lua_pushstring((state), (key));\ + lua_pushinteger((state), (value));\ + lua_settable((state), -3);\ +} while(0); + +#define SET_TABLE_STRING_STRING(state, key, value) do {\ + lua_pushstring((state), (key));\ + lua_pushstring((...
2009 Aug 31
0
asterisk-users Digest, Vol 61, Issue 85
...x/pbx_lua.c.orig 2009-08-29 14:39:46.000000000 -0500 +++ pbx/pbx_lua.c 2009-08-29 14:40:20.000000000 -0500 @@ -42,9 +42,9 @@ #include "asterisk/paths.h" #include "asterisk/hashtab.h" -#include <lua5.1/lua.h> -#include <lua5.1/lauxlib.h> -#include <lua5.1/lualib.h> +#include <lua.h> +#include <lauxlib.h> +#include <lualib.h> static char *config = "extensions.lua"; static char *registrar = "pbx_lua"; [root at hoho4 asterisk-1.6.1.5]# On Sat, 2009-08-29 at 12:01 -0400, Asterisk Development Team wrote: > Th...
2013 Oct 15
0
Upgrade to Lua 5.2.2, add filesystem module and get_key binding
...+- > com32/lua/src/lua.c | 341 +- > com32/lua/src/lua.h | 225 +- > com32/lua/{etc => src}/lua.hpp | 0 > com32/lua/src/luac.c | 332 +- > com32/lua/src/luaconf.h | 737 ++-- > com32/lua/src/lualib.h | 47 +- > com32/lua/src/lundump.c | 141 +- > com32/lua/src/lundump.h | 22 +- > com32/lua/src/lvm.c | 923 ++-- > com32/lua/src/lvm.h | 26 +- > com32/lua/src/lzio.c |...
2014 Mar 02
3
pull request: upgrade to Lua 5.2.3, automatic Linux boot menu and cmenu binding
...| 9 +- com32/lua/src/lua.c | 341 ++- com32/lua/src/lua.h | 225 +- com32/lua/{etc => src}/lua.hpp | 0 com32/lua/src/luac.c | 332 ++- com32/lua/src/luaconf.h | 738 ++---- com32/lua/src/lualib.h | 47 +- com32/lua/src/lundump.c | 141 +- com32/lua/src/lundump.h | 22 +- com32/lua/src/lvm.c | 923 ++++--- com32/lua/src/lvm.h | 26 +- com32/lua/src/lzio.c | 34 +- com32/lua/src/l...
2006 May 01
6
[PATCH] Use stddef.h in Mini-OS to define size_t
Please patch Mini-OS so that it uses stddef.h to define size_t and NULL. This problem fixes errors that occur when linking Mini-OS with ANSI standard code that uses stddef.h. John diff -ur oxen-3.0-testing/extras/mini-os/include/lib.h nxen-3.0-testing/extras/mini-os/include/lib.h --- oxen-3.0-testing/extras/mini-os/include/lib.h 2006-04-14 22:21:55.000000000 -0400 +++