search for: guestfs_int_lua_create

Displaying 2 results from an estimated 2 matches for "guestfs_int_lua_create".

2018 Jan 22
2
[PATCH] lua, perl: Use thread-safe strerror_r instead of strerror (RHBZ#1536763).
...or/lua.ml b/generator/lua.ml index dd6aedbe9..7cfceb152 100644 --- a/generator/lua.ml +++ b/generator/lua.ml @@ -63,6 +63,8 @@ let generate_lua_c () = #endif #endif +#include \"ignore-value.h\" + #include <guestfs.h> #include \"guestfs-utils.h\" @@ -142,6 +144,7 @@ guestfs_int_lua_create (lua_State *L) guestfs_h *g; struct userdata *u; unsigned flags = 0; + char err[128]; if (lua_gettop (L) == 1) { OPTARG_IF_SET (1, \"environment\", @@ -157,9 +160,10 @@ guestfs_int_lua_create (lua_State *L) return luaL_error (L, \"Guestfs.create: too many arg...
2018 Jan 22
0
Re: [PATCH] lua, perl: Use thread-safe strerror_r instead of strerror (RHBZ#1536763).
...> #endif > #endif > > +#include \"ignore-value.h\" In my local version, ignore_value() was not needed in the lua bindings Did you get a build failure without it? > #include <guestfs.h> > #include \"guestfs-utils.h\" > > @@ -142,6 +144,7 @@ guestfs_int_lua_create (lua_State *L) > guestfs_h *g; > struct userdata *u; > unsigned flags = 0; > + char err[128]; In other places were strerror_r is used, the size of the buffer is 256. Can you please adapt it? (Mostly so we have the same code everywhere.) Thanks, -- Pino Toscano