Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 51) sorted by relevance

123

/civetweb-2.7.6/src/third_party/
Dlfs.c217 static int _file_lock (lua_State *L, FILE *fh, const char *mode, const long start, long len, const … in _file_lock() argument
232 switch (*mode) { in _file_lock()
250 switch (*mode) { in _file_lock()
341 static const int mode[] = {_O_BINARY, _O_TEXT}; in lfs_g_setmode() local
344 int res = lfs_setmode(L, f, mode[op]); in lfs_g_setmode()
349 if (mode[i] == res) { in lfs_g_setmode()
379 const char *mode = luaL_checkstring (L, 2); in file_lock() local
382 if (_file_lock (L, fh, mode, start, len, "lock")) { in file_lock()
610 #define S_ISDIR(mode) (mode&_S_IFDIR) argument
613 #define S_ISREG(mode) (mode&_S_IFREG) argument
[all …]
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/
Dliolib.c39 #define lua_checkmode(mode) \ argument
40 (*mode != '\0' && strchr("rwa", *(mode++)) != NULL && \
41 (*mode != '+' || ++mode) && /* skip if char is '+' */ \
42 (*mode != 'b' || ++mode) && /* skip if char is 'b' */ \
43 (*mode == '\0'))
218 static void opencheck (lua_State *L, const char *fname, const char *mode) { in opencheck() argument
220 p->f = fopen(fname, mode); in opencheck()
228 const char *mode = luaL_optstring(L, 2, "r"); in io_open() local
230 const char *md = mode; /* to traverse/check mode */ in io_open()
232 p->f = fopen(filename, mode); in io_open()
[all …]
Dldo.c626 const char *mode; member
631 static void checkmode (lua_State *L, const char *mode, const char *x) { in checkmode() argument
632 if (mode && strchr(mode, x[0]) == NULL) { in checkmode()
634 "attempt to load a %s chunk (mode is " LUA_QS ")", x, mode); in checkmode()
646 checkmode(L, p->mode, "binary"); in f_parser()
650 checkmode(L, p->mode, "text"); in f_parser()
663 const char *mode) { in luaD_protectedparser() argument
667 p.z = z; p.name = name; p.mode = mode; in luaD_protectedparser()
Dlbaselib.c264 const char *mode = luaL_optstring(L, 2, NULL); in luaB_loadfile() local
266 int status = luaL_loadfilex(L, fname, mode); in luaB_loadfile()
313 const char *mode = luaL_optstring(L, 3, "bt"); in luaB_load() local
317 status = luaL_loadbufferx(L, s, l, chunkname, mode); in luaB_load()
323 status = lua_load(L, generic_reader, NULL, chunkname, mode); in luaB_load()
Dlgc.c436 const TValue *mode = gfasttm(g, h->metatable, TM_MODE); in traversetable() local
438 if (mode && ttisstring(mode) && /* is there a weak mode? */ in traversetable()
439 ((weakkey = strchr(svalue(mode), 'k')), in traversetable()
440 (weakvalue = strchr(svalue(mode), 'v')), in traversetable()
952 void luaC_changemode (lua_State *L, int mode) { in luaC_changemode() argument
954 if (mode == g->gckind) return; /* nothing to change */ in luaC_changemode()
955 if (mode == KGC_GEN) { /* change to generational mode */ in luaC_changemode()
Dlauxlib.h76 const char *mode);
81 const char *name, const char *mode);
Dlauxlib.c631 const char *mode) { in luaL_loadfilex() argument
654 status = lua_load(L, getF, &lf, lua_tostring(L, -1), mode); in luaL_loadfilex()
683 const char *name, const char *mode) { in luaL_loadbufferx() argument
687 return lua_load(L, getS, &ls, name, mode); in luaL_loadbufferx()
Dldo.h30 const char *mode);
Dlgc.h155 LUAI_FUNC void luaC_changemode (lua_State *L, int mode);
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/
Dliolib.c40 static int l_checkmode (const char *mode) { in l_checkmode() argument
41 return (*mode != '\0' && strchr("rwa", *(mode++)) != NULL && in l_checkmode()
42 (*mode != '+' || (++mode, 1)) && /* skip if char is '+' */ in l_checkmode()
43 (strspn(mode, L_MODEEXT) == strlen(mode))); /* check extensions */ in l_checkmode()
248 static void opencheck (lua_State *L, const char *fname, const char *mode) { in opencheck() argument
250 p->f = fopen(fname, mode); in opencheck()
258 const char *mode = luaL_optstring(L, 2, "r"); in io_open() local
260 const char *md = mode; /* to traverse/check mode */ in io_open()
262 p->f = fopen(filename, mode); in io_open()
278 const char *mode = luaL_optstring(L, 2, "r"); in io_popen() local
[all …]
Dldo.c752 const char *mode; member
757 static void checkmode (lua_State *L, const char *mode, const char *x) { in checkmode() argument
758 if (mode && strchr(mode, x[0]) == NULL) { in checkmode()
760 "attempt to load a %s chunk (mode is '%s')", x, mode); in checkmode()
771 checkmode(L, p->mode, "binary"); in f_parser()
775 checkmode(L, p->mode, "text"); in f_parser()
784 const char *mode) { in luaD_protectedparser() argument
788 p.z = z; p.name = name; p.mode = mode; in luaD_protectedparser()
Dlobject.c251 static const char *l_str2dloc (const char *s, lua_Number *result, int mode) { in l_str2dloc() argument
253 *result = (mode == 'x') ? lua_strx2number(s, &endptr) /* try to convert */ in l_str2dloc()
277 int mode = pmode ? ltolower(cast_uchar(*pmode)) : 0; in l_str2d() local
278 if (mode == 'n') /* reject 'inf' and 'nan' */ in l_str2d()
280 endptr = l_str2dloc(s, result, mode); /* try to convert */ in l_str2d()
288 endptr = l_str2dloc(buff, result, mode); /* try again */ in l_str2d()
Dlbaselib.c289 const char *mode = luaL_optstring(L, 2, NULL); in luaB_loadfile() local
291 int status = luaL_loadfilex(L, fname, mode); in luaB_loadfile()
338 const char *mode = luaL_optstring(L, 3, "bt"); in luaB_load() local
342 status = luaL_loadbufferx(L, s, l, chunkname, mode); in luaB_load()
348 status = lua_load(L, generic_reader, NULL, chunkname, mode); in luaB_load()
Dlauxlib.h84 const char *mode);
89 const char *name, const char *mode);
Dlgc.c453 const TValue *mode = gfasttm(g, h->metatable, TM_MODE); in traversetable() local
455 if (mode && ttisstring(mode) && /* is there a weak mode? */ in traversetable()
456 ((weakkey = strchr(svalue(mode), 'k')), in traversetable()
457 (weakvalue = strchr(svalue(mode), 'v')), in traversetable()
Dlauxlib.c704 const char *mode) { in luaL_loadfilex() argument
727 status = lua_load(L, getF, &lf, lua_tostring(L, -1), mode); in luaL_loadfilex()
756 const char *name, const char *mode) { in luaL_loadbufferx() argument
760 return lua_load(L, getS, &ls, name, mode); in luaL_loadbufferx()
Dldo.h40 const char *mode);
Dlvm.h100 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, int mode);
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/
Dliolib.c163 const char *mode = luaL_optstring(L, 2, "r"); in io_open() local
165 *pf = fopen(filename, mode); in io_open()
176 const char *mode = luaL_optstring(L, 2, "r"); in io_popen() local
178 *pf = lua_popen(L, filename, mode); in io_popen()
200 static int g_iofile (lua_State *L, int f, const char *mode) { in g_iofile() argument
205 *pf = fopen(filename, mode); in g_iofile()
443 static const int mode[] = {SEEK_SET, SEEK_CUR, SEEK_END}; in f_seek() local
448 op = fseek(f, offset, mode[op]); in f_seek()
459 static const int mode[] = {_IONBF, _IOFBF, _IOLBF}; in f_setvbuf() local
464 int res = setvbuf(f, NULL, mode[op], sz); in f_setvbuf()
Dlgc.c162 const TValue *mode; in traversetable() local
165 mode = gfasttm(g, h->metatable, TM_MODE); in traversetable()
166 if (mode && ttisstring(mode)) { /* is there a weak mode? */ in traversetable()
167 weakkey = (strchr(svalue(mode), 'k') != NULL); in traversetable()
168 weakvalue = (strchr(svalue(mode), 'v') != NULL); in traversetable()
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_heap_alloc.c388 duk_small_uint_t mode; in duk__init_heap_strings() local
392 mode = 32; /* 0 = uppercase, 32 = lowercase (= 'a' - 'A') */ in duk__init_heap_strings()
396 t = t + DUK_ASC_UC_A + mode; in duk__init_heap_strings()
408 t = t + DUK_ASC_UC_A + (mode ^ 32); in duk__init_heap_strings()
410 mode = mode ^ 32; in duk__init_heap_strings()
414 t = t + DUK_ASC_UC_A + mode; in duk__init_heap_strings()
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_heap_alloc.c388 duk_small_uint_t mode; in duk__init_heap_strings() local
392 mode = 32; /* 0 = uppercase, 32 = lowercase (= 'a' - 'A') */ in duk__init_heap_strings()
396 t = t + DUK_ASC_UC_A + mode; in duk__init_heap_strings()
408 t = t + DUK_ASC_UC_A + (mode ^ 32); in duk__init_heap_strings()
410 mode = mode ^ 32; in duk__init_heap_strings()
414 t = t + DUK_ASC_UC_A + mode; in duk__init_heap_strings()
/civetweb-2.7.6/examples/https/
Dcivetweb.conf56 additional_header X-Xss-Protection: 1; mode=block
/civetweb-2.7.6/test/
Dpage_keep_alive_chunked.lua54 … send('<tr><td>' .. f .. '</td><td>' .. at.mode .. '</td><td>' .. at.size .. '</td></tr>\n')
Dresource_script_demo.lua13 if (not mg.request_info.uri:find(scriptUri)) or (not resourcedir) or (not attr) or (attr.mode~="dir…

123