/l4re-core-master/lua/lib/contrib/src/ |
A D | lzio.h | 29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) argument 31 #define luaZ_buffer(buff) ((buff)->buffer) argument 32 #define luaZ_sizebuffer(buff) ((buff)->buffsize) argument 33 #define luaZ_bufflen(buff) ((buff)->n) argument 35 #define luaZ_buffremove(buff,i) ((buff)->n -= (i)) argument 36 #define luaZ_resetbuffer(buff) ((buff)->n = 0) argument 39 #define luaZ_resizebuffer(L, buff, size) \ argument 40 ((buff)->buffer = luaM_reallocvchar(L, (buff)->buffer, \ 41 (buff)->buffsize, size), \ 42 (buff)->buffsize = size) [all …]
|
A D | lobject.c | 362 if (buff[strspn(buff, "-0123456789")] == '\0') { /* looks like an int? */ in tostringbuff() 375 char buff[MAXNUMBER2STR]; in luaO_tostring() local 406 lua_State *L = buff->L; in pushstr() 409 buff->pushed++; in pushstr() 411 buff->pushed = 1; in pushstr() 419 pushstr(buff, buff->space, buff->blen); /* push buffer contents */ in clearbuff() 431 clearbuff(buff); in getbuff() 432 return buff->space + buff->blen; in getbuff() 462 addsize(buff, len); in addnum2buff() 473 buff.pushed = buff.blen = 0; in luaO_pushvfstring() [all …]
|
A D | llex.c | 58 Mbuffer *b = ls->buff; in save() 362 char buff[UTF8BUFFSZ]; in utf8esc() local 363 int n = luaO_utf8esc(buff, readutf8esc(ls)); in utf8esc() 365 save(ls, buff[UTF8BUFFSZ - n]); in utf8esc() 412 luaZ_buffremove(ls->buff, 1); /* remove '\\' */ in read_string() 430 luaZ_buffremove(ls->buff, 1); /* remove '\\' */ in read_string() 440 seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + 1, in read_string() 441 luaZ_bufflen(ls->buff) - 2); in read_string() 446 luaZ_resetbuffer(ls->buff); in llex() 545 ts = luaX_newstring(ls, luaZ_buffer(ls->buff), in llex() [all …]
|
A D | lstrlib.c | 1037 buff[n++] = '-'; /* add sign */ in num2straux() 1040 buff[n++] = '0'; buff[n++] = 'x'; /* add "0x" */ in num2straux() 1046 m = adddigit(buff, n++, m * 16); in num2straux() 1058 int n = num2straux(buff, sz, x); in lua_number2strx() 1062 buff[i] = toupper(uchar(buff[i])); in lua_number2strx() 1112 char buff[10]; in addquoted() local 1114 l_sprintf(buff, sizeof(buff), "\\%d", (int)uchar(*s)); in addquoted() 1116 l_sprintf(buff, sizeof(buff), "\\%03d", (int)uchar(*s)); in addquoted() 1117 luaL_addstring(b, buff); in addquoted() 1153 return l_sprintf(buff, MAX_ITEM, "%s", s); in quotefloat() [all …]
|
A D | lzio.c | 26 const char *buff; in luaZ_fill() local 28 buff = z->reader(L, z->data, &size); in luaZ_fill() 30 if (buff == NULL || size == 0) in luaZ_fill() 33 z->p = buff; in luaZ_fill()
|
A D | loadlib.c | 178 char buff[MAX_PATH + 1]; in setprogdir() local 180 DWORD nsize = sizeof(buff)/sizeof(char); in setprogdir() 182 if (n == 0 || n == nsize || (lb = strrchr(buff, '\\')) == NULL) in setprogdir() 186 luaL_gsub(L, lua_tostring(L, -1), LUA_EXEC_DIR, buff); in setprogdir() 485 luaL_Buffer buff; in searchpath() local 492 luaL_buffinit(L, &buff); in searchpath() 494 luaL_addgsub(&buff, path, LUA_PATH_MARK, name); in searchpath() 495 luaL_addchar(&buff, '\0'); in searchpath() 496 pathname = luaL_buffaddr(&buff); /* writable list of file names */ in searchpath() 497 endpathname = pathname + luaL_bufflen(&buff) - 1; in searchpath() [all …]
|
A D | loslib.c | 170 char buff[LUA_TMPNAMBUFSIZE]; in os_tmpname() local 172 lua_tmpnam(buff, err); in os_tmpname() 175 lua_pushstring(L, buff); in os_tmpname() 275 ptrdiff_t convlen, char *buff) { in checkoption() argument 282 memcpy(buff, conv, oplen); /* copy valid option to buffer */ in checkoption() 283 buff[oplen] = '\0'; in checkoption() 333 char *buff = luaL_prepbuffsize(&b, SIZETIMEFMT); in os_date() local 336 reslen = strftime(buff, SIZETIMEFMT, cc, stm); in os_date()
|
A D | lundump.c | 117 char buff[LUAI_MAXSHORTLEN]; in loadStringN() local 118 loadVector(S, buff, size); /* load string into buffer */ in loadStringN() 119 ts = luaS_newlstr(L, buff, size); /* create string */ in loadStringN() 274 char buff[sizeof(LUA_SIGNATURE) + sizeof(LUAC_DATA)]; /* larger than both */ in checkliteral() local 276 loadVector(S, buff, len); in checkliteral() 277 if (memcmp(s, buff, len) != 0) in checkliteral()
|
A D | ldump.c | 62 lu_byte buff[DIBS]; in dumpSize() local 65 buff[DIBS - (++n)] = x & 0x7f; /* fill buffer in reverse order */ in dumpSize() 68 buff[DIBS - 1] |= 0x80; /* mark last byte */ in dumpSize() 69 dumpVector(D, buff + DIBS - n, n); in dumpSize()
|
A D | ltablib.c | 248 unsigned int buff[sof(c) + sof(t)]; in l_randomizePivot() local 250 memcpy(buff, &c, sof(c) * sizeof(unsigned int)); in l_randomizePivot() 251 memcpy(buff + sof(c), &t, sof(t) * sizeof(unsigned int)); in l_randomizePivot() 252 for (i = 0; i < sof(buff); i++) in l_randomizePivot() 253 rnd += buff[i]; in l_randomizePivot()
|
A D | lstate.c | 72 char buff[3 * sizeof(size_t)]; in luai_makeseed() local 75 addbuff(buff, p, L); /* heap variable */ in luai_makeseed() 76 addbuff(buff, p, &h); /* local variable */ in luai_makeseed() 77 addbuff(buff, p, &lua_newstate); /* public function */ in luai_makeseed() 78 lua_assert(p == sizeof(buff)); in luai_makeseed() 79 return luaS_hash(buff, p, h); in luai_makeseed()
|
A D | liolib.c | 431 char buff[L_MAXLENNUM + 1]; /* +1 for ending '\0' */ member 440 rn->buff[0] = '\0'; /* invalidate result */ in nextc() 444 rn->buff[rn->n++] = rn->c; /* save current char */ in nextc() 501 rn.buff[rn.n] = '\0'; /* finish string */ in read_number() 502 if (l_likely(lua_stringtonumber(L, rn.buff))) in read_number() 524 char *buff = luaL_prepbuffer(&b); /* preallocate buffer space */ in read_line() local 528 buff[i++] = c; /* read up to end of line or buffer limit */ in read_line()
|
A D | lauxlib.c | 711 char buff[BUFSIZ]; /* area for reading file */ member 727 *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); /* read block */ in getF() 729 return lf->buff; in getF() 749 lf->buff[lf->n++] = c; /* to be read by the parser */ in skipBOM() 792 lf.buff[lf.n++] = '\n'; /* add line to correct line numbers */ in luaL_loadfilex() 799 lf.buff[lf.n++] = c; /* 'c' is the first character of the stream */ in luaL_loadfilex() 828 LUALIB_API int luaL_loadbufferx (lua_State *L, const char *buff, size_t size, in luaL_loadbufferx() argument 831 ls.s = buff; in luaL_loadbufferx()
|
A D | luac.c | 311 char buff[100]; in PrintConstant() local 312 sprintf(buff,LUA_NUMBER_FMT,fltvalue(o)); in PrintConstant() 313 printf("%s",buff); in PrintConstant() 314 if (buff[strspn(buff,"-0123456789")]=='\0') printf(".0"); in PrintConstant()
|
A D | luaconf.h | 607 #define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p) argument
|
A D | ldebug.c | 755 char buff[LUA_IDSIZE]; in luaG_addinfo() local 757 luaO_chunkid(buff, getstr(src), tsslen(src)); in luaG_addinfo() 759 buff[0] = '?'; buff[1] = '\0'; in luaG_addinfo() 761 return luaO_pushfstring(L, "%s:%d: %s", buff, line, msg); in luaG_addinfo()
|
A D | llex.h | 73 Mbuffer *buff; /* buffer for tokens */ member
|
A D | lparser.h | 167 LUAI_FUNC LClosure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
|
A D | ldblib.c | 398 char buff[5]; in db_gethook() local 414 lua_pushstring(L, unmakemask(mask, buff)); /* 2nd result = mask */ in db_gethook()
|
A D | ldo.c | 911 Mbuffer buff; /* dynamic structure used by the scanner */ member 937 cl = luaY_parser(L, p->z, &p->buff, &p->dyd, p->name, c); in f_parser() 953 luaZ_initbuffer(L, &p.buff); in luaD_protectedparser() 955 luaZ_freebuffer(L, &p.buff); in luaD_protectedparser()
|
A D | lvm.c | 624 static void copy2buff (StkId top, int n, char *buff) { in copy2buff() argument 628 memcpy(buff + tl, svalue(s2v(top - n)), l * sizeof(char)); in copy2buff() 664 char buff[LUAI_MAXSHORTLEN]; in luaV_concat() local 665 copy2buff(top, n, buff); /* copy strings to buffer */ in luaV_concat() 666 ts = luaS_newlstr(L, buff, tl); in luaV_concat()
|
A D | lauxlib.h | 97 LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz,
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/mntent/ |
A D | mntent.c | 19 struct mntent *mnt, char *buff, int bufsize) in getmntent_r() argument 25 if (!filep || !mnt || !buff) in getmntent_r() 29 while ((cp = fgets(buff, bufsize, filep)) != NULL) { in getmntent_r() 30 if (buff[0] == '#' || buff[0] == '\n') in getmntent_r() 42 mnt->mnt_fsname = strtok_r(buff, sep, &ptrptr); in getmntent_r() 71 static char *buff = NULL; in libc_hidden_def() local 75 if (!buff) { in libc_hidden_def() 76 buff = malloc(BUFSIZ); in libc_hidden_def() 77 if (!buff) in libc_hidden_def() 81 tmp = getmntent_r(filep, &mnt, buff, BUFSIZ); in libc_hidden_def()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/utils/ |
A D | ldconfig.c | 220 char buff[BUFFER_SIZE]; in is_shlib() local 236 if (!chroot_realpath(chroot_dir, buff, real)) in is_shlib() 237 warn("can't resolve %s in chroot %s", buff, chroot_dir); in is_shlib() 241 warn("skipping %s", buff); in is_shlib() 243 warnx("%s is not a regular file or symlink, skipping", buff); in is_shlib() 250 warn("skipping %s", buff); in is_shlib() 254 warnx("can't read header from %s, skipping", buff); in is_shlib() 265 warnx("%s is not a shared library, skipping", buff); in is_shlib() 269 warnx("%s is not an a.out library, it's ELF!", buff); in is_shlib() 273 good = readsoname(buff, file, expected_type, type, in is_shlib() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/pwd_grp/ |
A D | pwd_grp.c | 656 char buff[__UCLIBC_PWD_BUFFER_SIZE__]; in __getgrouplist_internal() local 673 while (!__pgsreader(__parsegrent, &group, buff, sizeof(buff), grfile)) { in __getgrouplist_internal()
|