Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 10 of 10) sorted by relevance

/ndk/sources/host-tools/make-3.81/
Dstrcache.c39 static int bufsize = CACHE_BUFFER_SIZE; variable
46 new = (struct strcache *) xmalloc (sizeof (*new) + bufsize); in new_cache()
49 new->bytesfree = bufsize; in new_cache()
67 if (len > bufsize) in add_string()
68 bufsize = len * 2; in add_string()
168 if (size > bufsize) in strcache_setbufsize()
169 bufsize = size; in strcache_setbufsize()
170 return bufsize; in strcache_setbufsize()
186 int totsize = 0, avgsize, maxsize = 0, minsize = bufsize; in strcache_print_stats()
187 int totfree = 0, avgfree, maxfree = 0, minfree = bufsize; in strcache_print_stats()
Dansi2knr.c238 #define bufsize 5000 /* arbitrary size */ macro
302 buf = malloc(bufsize);
309 while ( fgets(line, (unsigned)(buf + bufsize - line), in) != NULL )
320 f: if ( line >= buf + (bufsize - 1) ) /* overflow check */
322 if ( fgets(line, (unsigned)(buf + bufsize - line), in) == NULL )
346 if ( line != buf + (bufsize - 1) ) /* overflow check */
/ndk/sources/host-tools/nawk-20071023/
Dlib.c109 int bufsize = *pbufsize, savebufsize = bufsize; in getrec() local
144 c = readrec(&buf, &bufsize, infile); in getrec()
159 *pbufsize = bufsize; in getrec()
186 int bufsize = *pbufsize; in readrec() local
200 if (rr-buf+1 > bufsize) in readrec()
201 if (!adjbuf(&buf, &bufsize, 1+rr-buf, recsize, &rr, "readrec 1")) in readrec()
209 if (!adjbuf(&buf, &bufsize, 2+rr-buf, recsize, &rr, "readrec 2")) in readrec()
214 if (!adjbuf(&buf, &bufsize, 1+rr-buf, recsize, &rr, "readrec 3")) in readrec()
219 *pbufsize = bufsize; in readrec()
Dlex.c174 static int bufsize = 5; /* BUG: setting this small causes core dump! */ in yylex() local
176 if (buf == 0 && (buf = (char *) malloc(bufsize)) == NULL) in yylex()
187 c = gettok(&buf, &bufsize); in yylex()
304 c = gettok(&buf, &bufsize); in yylex()
Drun.c397 int bufsize = recsize; in getline() local
400 if ((buf = (char *) malloc(bufsize)) == NULL) in getline()
415 n = readrec(&buf, &bufsize, fp); in getline()
433 n = getrec(&buf, &bufsize, 0); in getline()
817 int bufsize = *pbufsize; in format() local
824 adjbuf(&buf, &bufsize, MAXNUMSIZE+1+p-buf, recsize, &p, "format1"); in format()
838 adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, &p, "format2"); in format()
850 adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, &p, "format"); in format()
858 adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, &p, "format4"); in format()
892 adjbuf(&buf, &bufsize, 1+n+p-buf, recsize, &p, "format5"); in format()
[all …]
Dproto.h126 extern int readrec(char **buf, int *bufsize, FILE *inf);
/ndk/sources/host-tools/make-3.81/w32/subproc/
Dsub_proc.c608 DWORD bufsize = 1024; in proc_stdout_thread() local
611 pproc->outp = malloc(bufsize); in proc_stdout_thread()
624 if (pproc->outcnt + nread > bufsize) { in proc_stdout_thread()
625 bufsize += nread + 512; in proc_stdout_thread()
626 pproc->outp = realloc(pproc->outp, bufsize); in proc_stdout_thread()
640 DWORD bufsize = 1024; in proc_stderr_thread() local
643 pproc->errp = malloc(bufsize); in proc_stderr_thread()
655 if (pproc->errcnt + nread > bufsize) { in proc_stderr_thread()
656 bufsize += nread + 512; in proc_stderr_thread()
657 pproc->errp = realloc(pproc->errp, bufsize); in proc_stderr_thread()
/ndk/sources/android/support/src/stdio/
Dstrtod.c3107 int bufsize, f; in __hdtoa() local
3151 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits; in __hdtoa()
3152 s0 = rv_alloc(bufsize); in __hdtoa()
3162 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--) in __hdtoa()
/ndk/
Dndk-gdb.py369 bufsize=1, close_fds='posix' in sys.builtin_module_names)
/ndk/tests/build/issue20862-libpng-O0/jni/
Dpngpriv.h1425 PNG_EXTERN size_t png_safecat(png_charp buffer, size_t bufsize, size_t pos,