Searched refs:lineptr (Results 1 - 8 of 8) sorted by relevance

/freebsd-11-stable/contrib/gperf/lib/
H A Dgetline.cc41 getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset) argument
46 if (!lineptr || !n || !stream)
49 if (!*lineptr)
52 *lineptr = new char[*n];
56 read_pos = *lineptr + offset;
66 assert (*n - nchars_avail == (size_t) (read_pos - *lineptr));
74 nchars_avail = *n + *lineptr - read_pos;
76 if (*lineptr)
78 memcpy (new_line, *lineptr, read_pos - *lineptr);
110 get_line(char **lineptr, size_t *n, FILE *stream) argument
116 get_delim(char **lineptr, size_t *n, int delimiter, FILE *stream) argument
[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-11-stable/usr.bin/units/
H A Dunits.c124 char line[512], *lineptr; local
166 lineptr = line;
167 if (*lineptr == '/' || *lineptr == '#')
169 lineptr += strspn(lineptr, " \n\t");
170 len = strcspn(lineptr, " \n\t");
171 lineptr[len] = 0;
172 if (!strlen(lineptr))
174 if (lineptr[strle
[all...]
/freebsd-11-stable/contrib/gcc/
H A Dtree-browser.c954 TB_getline (char **lineptr, long *n, FILE *stream) argument
959 if (lineptr == NULL || n == NULL)
969 if (*lineptr == NULL || *n < 2) /* !seen and no buf yet need 2 chars. */
974 line = (char *) xrealloc (*lineptr, MAX_CANON);
977 *lineptr = line;
981 line = *lineptr;
1006 *lineptr = line;
1013 if (p == *lineptr)
1019 if (p - 2 >= *lineptr && p[-2] == '\r')
1023 return p - *lineptr;
[all...]
/freebsd-11-stable/usr.sbin/mtest/
H A Dmtest.c258 char *lineptr; local
268 lineptr = line;
269 while (isblank(*lineptr))
270 lineptr++;
271 if (*lineptr != '#' && *lineptr != '\n')
272 process_cmd(lineptr, s, s6, fp);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntp_refclock.c720 char *lineptr, /* current line pointer */
732 dp = lineptr;
748 dlen = dp - lineptr;
755 ? lineptr
779 char *lineptr, /* current line pointer */
789 memcpy(lineptr, rbufp->recv_buffer, bmax);
790 lineptr[bmax] = '\0';
795 lineptr));
718 refclock_gtlin( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
777 refclock_gtraw( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
/freebsd-11-stable/contrib/gdb/gdb/
H A Dutils.c2027 const char *lineptr;
2044 lineptr = linebuffer;
2045 while (*lineptr)
2051 while (*lineptr && *lineptr != '\n')
2054 if (*lineptr == '\t')
2064 lineptr++;
2069 *wrap_pointer++ = *lineptr;
2071 fputc_unfiltered (*lineptr, stream);
2073 lineptr
2017 const char *lineptr; local
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc5085 INTERCEPTOR(SSIZE_T, getline, char **lineptr, SIZE_T *n, void *stream) {
5087 COMMON_INTERCEPTOR_ENTER(ctx, getline, lineptr, n, stream);
5091 SSIZE_T res = REAL(getline)(lineptr, n, stream);
5093 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr));
5095 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *lineptr, res + 1);
5106 COMMON_INTERCEPTOR_ENTER(ctx, vname, lineptr, n, delim, stream); \
5107 SSIZE_T res = REAL(vname)(lineptr, n, delim, stream); \
5109 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr)); \
[all...]

Completed in 208 milliseconds