Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/gperf/lib/
H A Dgetline.cc46 if (!lineptr || !n || !stream) in getstr()
49 if (!*lineptr) in getstr()
52 *lineptr = new char[*n]; in getstr()
56 read_pos = *lineptr + offset; in getstr()
76 if (*lineptr) in getstr()
78 memcpy (new_line, *lineptr, read_pos - *lineptr); in getstr()
79 delete[] *lineptr; in getstr()
81 *lineptr = new_line; in getstr()
89 if (read_pos == *lineptr) in getstr()
106 return read_pos - (*lineptr + offset); in getstr()
[all …]
H A Dgetline.h32 extern int get_line (char **lineptr, size_t *n, FILE *stream);
39 extern int get_delim (char **lineptr, size_t *n, int delimiter, FILE *stream);
/freebsd-12.1/usr.bin/units/
H A Dunits.c166 lineptr = line; in readunits()
167 if (*lineptr == '/' || *lineptr == '#') in readunits()
169 lineptr += strspn(lineptr, " \n\t"); in readunits()
171 lineptr[len] = 0; in readunits()
174 if (lineptr[strlen(lineptr) - 1] == '-') { /* it's a prefix */ in readunits()
179 lineptr[strlen(lineptr) - 1] = 0; in readunits()
187 lineptr += len + 1; in readunits()
188 lineptr += strspn(lineptr, " \n\t"); in readunits()
195 lineptr[len] = 0; in readunits()
211 lineptr += strspn(lineptr, " \n\t"); in readunits()
[all …]
/freebsd-12.1/contrib/gcc/
H A Dtree-browser.c954 TB_getline (char **lineptr, long *n, FILE *stream) in TB_getline() argument
959 if (lineptr == NULL || n == NULL) in TB_getline()
969 if (*lineptr == NULL || *n < 2) /* !seen and no buf yet need 2 chars. */ in TB_getline()
974 line = (char *) xrealloc (*lineptr, MAX_CANON); in TB_getline()
977 *lineptr = line; in TB_getline()
981 line = *lineptr; in TB_getline()
1006 *lineptr = line; in TB_getline()
1013 if (p == *lineptr) in TB_getline()
1019 if (p - 2 >= *lineptr && p[-2] == '\r') in TB_getline()
1023 return p - *lineptr; in TB_getline()
H A DChangeLog-20069098 (AT_lbl): Expect a lineptr or macptr.
/freebsd-12.1/usr.sbin/mtest/
H A Dmtest.c258 char *lineptr; in process_file() local
268 lineptr = line; in process_file()
269 while (isblank(*lineptr)) in process_file()
270 lineptr++; in process_file()
271 if (*lineptr != '#' && *lineptr != '\n') in process_file()
272 process_cmd(lineptr, s, s6, fp); in process_file()
/freebsd-12.1/contrib/gdb/gdb/
H A Dutils.c2017 const char *lineptr; in fputs_maybe_filtered() local
2034 lineptr = linebuffer; in fputs_maybe_filtered()
2035 while (*lineptr) in fputs_maybe_filtered()
2041 while (*lineptr && *lineptr != '\n') in fputs_maybe_filtered()
2044 if (*lineptr == '\t') in fputs_maybe_filtered()
2054 lineptr++; in fputs_maybe_filtered()
2059 *wrap_pointer++ = *lineptr; in fputs_maybe_filtered()
2061 fputc_unfiltered (*lineptr, stream); in fputs_maybe_filtered()
2063 lineptr++; in fputs_maybe_filtered()
2103 if (*lineptr == '\n') in fputs_maybe_filtered()
[all …]
/freebsd-12.1/contrib/ntp/ntpd/
H A Dntp_refclock.c720 char *lineptr, /* current line pointer */ in refclock_gtlin() argument
732 dp = lineptr; in refclock_gtlin()
748 dlen = dp - lineptr; in refclock_gtlin()
755 ? lineptr in refclock_gtlin()
779 char *lineptr, /* current line pointer */ in refclock_gtraw() argument
789 memcpy(lineptr, rbufp->recv_buffer, bmax); in refclock_gtraw()
790 lineptr[bmax] = '\0'; in refclock_gtraw()
795 lineptr)); in refclock_gtraw()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc5000 INTERCEPTOR(SSIZE_T, getline, char **lineptr, SIZE_T *n, void *stream) {
5002 COMMON_INTERCEPTOR_ENTER(ctx, getline, lineptr, n, stream);
5006 SSIZE_T res = REAL(getline)(lineptr, n, stream);
5008 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr));
5010 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *lineptr, res + 1);
5021 COMMON_INTERCEPTOR_ENTER(ctx, vname, lineptr, n, delim, stream); \
5022 SSIZE_T res = REAL(vname)(lineptr, n, delim, stream); \
5024 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr)); \
5026 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *lineptr, res + 1); \
5031 INTERCEPTOR(SSIZE_T, __getdelim, char **lineptr, SIZE_T *n, int delim,
[all …]
/freebsd-12.1/contrib/binutils/gas/
H A DChangeLog-02033120 (parse): Constify line and lineptr.