MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / io_open

Function io_open

lua/liolib.c:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160
161static int io_open (lua_State *L) {
162 /* COMDB2 MODIFICATION */
163 return luaL_error(L, "Function disabled for comdb2.");
164#if 0
165 const char *filename = luaL_checkstring(L, 1);
166 const char *mode = luaL_optstring(L, 2, "r");
167 FILE **pf = newfile(L);
168 *pf = fopen(filename, mode);
169 return (*pf == NULL) ? pushresult(L, 0, filename) : 1;
170#endif
171}
172
173
174/*

Callers

nothing calls this directly

Calls 3

luaL_errorFunction · 0.85
newfileFunction · 0.85
pushresultFunction · 0.85

Tested by

no test coverage detected