Home
last modified time | relevance | path

Searched refs:lineptr (Results 1 – 20 of 20) sorted by relevance

/external/u-boot/tools/
Dgetline.c21 static int getstr(char **lineptr, size_t *n, FILE *stream, in getstr() argument
28 if (!lineptr || !n || !stream) in getstr()
31 if (!*lineptr) { in getstr()
33 *lineptr = malloc(*n); in getstr()
34 if (!*lineptr) in getstr()
39 read_pos = *lineptr + offset; in getstr()
48 assert(*n - nchars_avail == read_pos - *lineptr); in getstr()
55 nchars_avail = *n + *lineptr - read_pos; in getstr()
56 *lineptr = realloc(*lineptr, *n); in getstr()
57 if (!*lineptr) in getstr()
[all …]
Dgetline.h1 int getline(char **lineptr, size_t *n, FILE *stream);
/external/honggfuzz/
Dinput.c216 char* lineptr = NULL; in input_parseDictionary() local
219 free(lineptr); in input_parseDictionary()
222 ssize_t len = getdelim(&lineptr, &n, '\n', fDict); in input_parseDictionary()
226 if (len > 1 && lineptr[len - 1] == '\n') { in input_parseDictionary()
227 lineptr[len - 1] = '\0'; in input_parseDictionary()
230 if (lineptr[0] == '#') { in input_parseDictionary()
233 if (lineptr[0] == '\n') { in input_parseDictionary()
236 if (lineptr[0] == '\0') { in input_parseDictionary()
241 if (sscanf(lineptr, "\"%1024s", bufv) != 1 && in input_parseDictionary()
242 sscanf(lineptr, "%1024[^=]=\"%1024s", bufn, bufv) != 2) { in input_parseDictionary()
[all …]
/external/libcups/cups/
Dppd.c2910 *lineptr; /* Current position in line buffer */ in ppd_read() local
2936 lineptr = line->buffer; in ppd_read()
2942 if (lineptr >= (line->buffer + line->bufsize - 1)) in ppd_read()
2973 lineptr = temp + (lineptr - line->buffer); in ppd_read()
3002 if (lineptr == line->buffer && ignoreblank) in ppd_read()
3010 *lineptr++ = '\n'; in ppd_read()
3029 *lineptr++ = (char)ch; in ppd_read()
3166 if (lineptr > line->buffer && lineptr[-1] == '\n') in ppd_read()
3167 lineptr --; in ppd_read()
3169 *lineptr = '\0'; in ppd_read()
[all …]
Ddest.c4177 *lineptr, /* Pointer into line */ local
4201 while (cupsFileGetConf(fp, line, sizeof(line), &lineptr, &linenum))
4208 linenum, line, lineptr));
4210 if ((_cups_strcasecmp(line, "dest") && _cups_strcasecmp(line, "default")) || !lineptr)
4216 name = lineptr;
4222 while (!isspace(*lineptr & 255) && *lineptr && *lineptr != '/')
4223 lineptr ++;
4225 if (*lineptr == '/')
4231 *lineptr++ = '\0';
4232 instance = lineptr;
[all …]
Dhttp.c1172 char *lineptr, /* Pointer into line */ in httpGets() local
1190 lineptr = line; in httpGets()
1194 while (lineptr < lineend) in httpGets()
1296 lineptr < lineend && bufptr < bufend;) in httpGets()
1307 *lineptr++ = *bufptr++; in httpGets()
1322 *lineptr = '\0'; in httpGets()
/external/google-breakpad/src/common/dwarf/
Ddwarf2reader.cc534 const char* lineptr = buffer_; in ReadHeader() local
538 = reader_->ReadInitialLength(lineptr, &initial_length_size); in ReadHeader()
540 lineptr += initial_length_size; in ReadHeader()
548 header_.version = reader_->ReadTwoBytes(lineptr); in ReadHeader()
549 lineptr += 2; in ReadHeader()
551 header_.prologue_length = reader_->ReadOffset(lineptr); in ReadHeader()
552 lineptr += reader_->OffsetSize(); in ReadHeader()
554 header_.min_insn_length = reader_->ReadOneByte(lineptr); in ReadHeader()
555 lineptr += 1; in ReadHeader()
557 header_.default_is_stmt = reader_->ReadOneByte(lineptr); in ReadHeader()
[all …]
/external/honggfuzz/libhfcommon/
Dfiles.c309 char* lineptr = NULL; in files_parseSymbolFilter() local
312 if (getline(&lineptr, &n, f) == -1) { in files_parseSymbolFilter()
316 if (strlen(lineptr) < 3) { in files_parseSymbolFilter()
317 LOG_F("Input symbol '%s' too short (strlen < 3)", lineptr); in files_parseSymbolFilter()
327 (*filterList)[symbolsRead] = malloc(strlen(lineptr)); in files_parseSymbolFilter()
329 PLOG_E("malloc(%zu) failed", strlen(lineptr)); in files_parseSymbolFilter()
333 snprintf((*filterList)[symbolsRead], strlen(lineptr), "%s", lineptr); in files_parseSymbolFilter()
339 free(lineptr); in files_parseSymbolFilter()
/external/curl/lib/
Dcookie.c434 char *lineptr, /* first character of the line */ in Curl_cookie_add() argument
465 size_t linelength = strlen(lineptr); in Curl_cookie_add()
472 semiptr = strchr(lineptr, ';'); /* first, find a semicolon */ in Curl_cookie_add()
474 while(*lineptr && ISBLANK(*lineptr)) in Curl_cookie_add()
475 lineptr++; in Curl_cookie_add()
477 ptr = lineptr; in Curl_cookie_add()
788 if(strncmp(lineptr, "#HttpOnly_", 10) == 0) { in Curl_cookie_add()
789 lineptr += 10; in Curl_cookie_add()
793 if(lineptr[0]=='#') { in Curl_cookie_add()
799 ptr = strchr(lineptr, '\r'); in Curl_cookie_add()
[all …]
Daltsvc.c192 char *lineptr = line; in altsvc_load() local
193 while(*lineptr && ISBLANK(*lineptr)) in altsvc_load()
194 lineptr++; in altsvc_load()
195 if(*lineptr == '#') in altsvc_load()
199 altsvc_add(asi, lineptr); in altsvc_load()
Dcookie.h95 char *lineptr,
/external/google-breakpad/src/processor/
Dsimple_serializer-inl.h173 static size_t SizeOf(const linked_ptr<Line> &lineptr) { in SizeOf() argument
174 if (lineptr.get() == NULL) return 0; in SizeOf()
175 return SimpleSerializer<Line>::SizeOf(*(lineptr.get())); in SizeOf()
177 static char *Write(const linked_ptr<Line> &lineptr, char *dest) { in Write() argument
178 if (lineptr.get()) in Write()
179 dest = SimpleSerializer<Line>::Write(*(lineptr.get()), dest); in Write()
/external/libcups/filter/
Dtestclient.c407 *lineptr; /* Pointer into line */ in make_raster_file() local
671 for (lineptr = line + xoff; *template; template ++) in make_raster_file()
676 *lineptr++ = *color; in make_raster_file()
680 lineptr += xrep; in make_raster_file()
690 for (lineptr = line + 3 * xoff; *template; template ++) in make_raster_file()
694 for (xcount = xrep; xcount > 0; xcount --, lineptr += 3) in make_raster_file()
695 memcpy(lineptr, color, 3); in make_raster_file()
699 lineptr += 3 * xrep; in make_raster_file()
/external/u-boot/drivers/video/
Dbus_vcxk.c329 unsigned char *lineptr; in vcxk_draw_mono() local
333 lineptr = dataptr; in vcxk_draw_mono()
335 if ((*lineptr << (xcnt % 8)) & 0x80) in vcxk_draw_mono()
341 lineptr++; in vcxk_draw_mono()
/external/u-boot/scripts/kconfig/
Dconfdata.c193 static int add_byte(int c, char **lineptr, size_t slen, size_t *n) in add_byte() argument
200 nline = xrealloc(*lineptr, new_size); in add_byte()
204 *lineptr = nline; in add_byte()
208 (*lineptr)[slen] = c; in add_byte()
213 static ssize_t compat_getline(char **lineptr, size_t *n, FILE *stream) in compat_getline() argument
215 char *line = *lineptr; in compat_getline()
230 *lineptr = line; in compat_getline()
243 *lineptr = line; in compat_getline()
/external/iperf3/src/
Diperf_auth.c289 ssize_t iperf_getpass (char **lineptr, size_t *n, FILE *stream) { in iperf_getpass() argument
303 nread = getline (lineptr, n, stream); in iperf_getpass()
309 char *buf = *lineptr; in iperf_getpass()
Diperf_auth.h40 ssize_t iperf_getpass (char **lineptr, size_t *n, FILE *stream);
/external/honggfuzz/linux/
Dtrace.c875 char *lineptr = NULL, *cAddr = NULL; in arch_parseAsanReport() local
878 free(lineptr); in arch_parseAsanReport()
881 if (getline(&lineptr, &n, fReport) == -1) { in arch_parseAsanReport()
887 if ((strlen(lineptr) > headerSz) && (strncmp(header, lineptr, headerSz) == 0)) { in arch_parseAsanReport()
891 cAddr = strstr(lineptr, "address 0x"); in arch_parseAsanReport()
903 char* pLineLC = lineptr; in arch_parseAsanReport()
952 LOG_D("Invalid ASan report entry (%s)", lineptr); in arch_parseAsanReport()
/external/minijail/
Dsyscall_filter.c505 static ssize_t getmultiline(char **lineptr, size_t *n, FILE *stream) in getmultiline() argument
507 ssize_t ret = getline(lineptr, n, stream); in getmultiline()
511 char *line = *lineptr; in getmultiline()
537 *lineptr = line; in getmultiline()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc4350 INTERCEPTOR(SSIZE_T, getline, char **lineptr, SIZE_T *n, void *stream) {
4352 COMMON_INTERCEPTOR_ENTER(ctx, getline, lineptr, n, stream);
4356 SSIZE_T res = REAL(getline)(lineptr, n, stream);
4358 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr));
4360 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *lineptr, res + 1);
4371 COMMON_INTERCEPTOR_ENTER(ctx, vname, lineptr, n, delim, stream); \
4372 SSIZE_T res = REAL(vname)(lineptr, n, delim, stream); \
4374 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr)); \
4376 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *lineptr, res + 1); \
4381 INTERCEPTOR(SSIZE_T, __getdelim, char **lineptr, SIZE_T *n, int delim,
[all …]