| /openbsd-src/gnu/usr.bin/cvs/lib/ |
| H A D | getline.c | 49 getstr (char **lineptr, size_t *n, FILE *stream, char terminator, int offset, in getstr() argument 56 if (!lineptr || !n || !stream) in getstr() 62 if (!*lineptr) in getstr() 65 *lineptr = malloc (*n); in getstr() 66 if (!*lineptr) in getstr() 74 read_pos = *lineptr + offset; in getstr() 99 assert((*lineptr + *n) == (read_pos + nchars_avail)); in getstr() 107 nchars_avail = *n + *lineptr - read_pos; in getstr() 108 *lineptr = realloc (*lineptr, *n); in getstr() 109 if (!*lineptr) in getstr() [all …]
|
| /openbsd-src/usr.bin/units/ |
| H A D | units.c | 99 char line[512], *lineptr; in readunits() local 124 lineptr = line; in readunits() 125 if (*lineptr == '/') in readunits() 127 lineptr += strspn(lineptr, " \n\t"); in readunits() 128 len = strcspn(lineptr, " \n\t"); in readunits() 129 lineptr[len] = 0; in readunits() 130 if (!strlen(lineptr)) in readunits() 132 if (lineptr[strlen(lineptr) - 1] == '-') { /* it's a prefix */ in readunits() 140 lineptr[strlen(lineptr) - 1] = 0; in readunits() 142 if (!strcmp(prefixtable[i].prefixname, lineptr)) in readunits() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gas/config/ |
| H A D | tc-ns32k.c | 1092 const char *lineptr; in parse() local 1103 for (lineptr = line; (*lineptr) != '\0' && (*lineptr) != ' '; lineptr++) in parse() 1106 c = *lineptr; in parse() 1107 *(char *) lineptr = '\0'; in parse() 1112 *(char *) lineptr = c; in parse() 1115 lineptr = line; in parse() 1121 if (*lineptr++ != '\0') in parse() 1126 while (*lineptr != '\0') in parse() 1154 while ((c = *lineptr) != '\0' && c != sep) in parse() 1173 switch (lineptr[1]) in parse() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gas/config/ |
| H A D | tc-ns32k.c | 1089 const char *lineptr; local 1100 for (lineptr = line; (*lineptr) != '\0' && (*lineptr) != ' '; lineptr++) 1103 c = *lineptr; 1104 *(char *) lineptr = '\0'; 1109 *(char *) lineptr = c; 1113 lineptr = line; 1120 if (*lineptr++ != '\0') 1125 while (*lineptr != '\0') 1153 while ((c = *lineptr) != '\0' && c != sep) 1172 switch (lineptr[1]) [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | tree-browser.c | 954 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()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | utils.c | 1958 const char *lineptr; in fputs_maybe_filtered() local 1975 lineptr = linebuffer; in fputs_maybe_filtered() 1976 while (*lineptr) in fputs_maybe_filtered() 1982 while (*lineptr && *lineptr != '\n') in fputs_maybe_filtered() 1985 if (*lineptr == '\t') in fputs_maybe_filtered() 1995 lineptr++; in fputs_maybe_filtered() 2000 *wrap_pointer++ = *lineptr; in fputs_maybe_filtered() 2002 fputc_unfiltered (*lineptr, stream); in fputs_maybe_filtered() 2004 lineptr++; in fputs_maybe_filtered() 2044 if (*lineptr == '\n') in fputs_maybe_filtered() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 5361 INTERCEPTOR(SSIZE_T, getline, char **lineptr, SIZE_T *n, void *stream) { 5363 COMMON_INTERCEPTOR_ENTER(ctx, getline, lineptr, n, stream); 5367 SSIZE_T res = REAL(getline)(lineptr, n, stream); 5369 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr)); 5371 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *lineptr, res + 1); 5382 COMMON_INTERCEPTOR_ENTER(ctx, vname, lineptr, n, delim, stream); \ 5383 SSIZE_T res = REAL(vname)(lineptr, n, delim, stream); \ 5385 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, lineptr, sizeof(*lineptr)); \ 5387 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *lineptr, res + 1); \ 5392 INTERCEPTOR(SSIZE_T, __getdelim, char **lineptr, SIZE_T *n, int delim, [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/libio/ |
| H A D | ChangeLog | 1241 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
|
| /openbsd-src/gnu/usr.bin/binutils/gas/ |
| H A D | ChangeLog-0203 | 3120 (parse): Constify line and lineptr.
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gas/ |
| H A D | ChangeLog-0203 | 3120 (parse): Constify line and lineptr.
|