/src/distrib/utils/more/ |
line.c | 55 static char linebuf[1024]; /* Buffer which holds the current output line */ variable in typeref:typename:char[1024] 56 static char *curr; /* Pointer into linebuf */ 96 Usually points to linebuf. */ 103 line = curr = linebuf; 153 if (curr > linebuf + sizeof(linebuf) - 12) 157 * {{ Linebuf is supposed to be big enough that this 169 if (curr <= linebuf + 1 193 if (bo_width > 0 && curr > linebuf + 2 224 curr > linebuf + 2 && curr[-3] == ' ' [all...] |
line.c | 55 static char linebuf[1024]; /* Buffer which holds the current output line */ variable in typeref:typename:char[1024] 56 static char *curr; /* Pointer into linebuf */ 96 Usually points to linebuf. */ 103 line = curr = linebuf; 153 if (curr > linebuf + sizeof(linebuf) - 12) 157 * {{ Linebuf is supposed to be big enough that this 169 if (curr <= linebuf + 1 193 if (bo_width > 0 && curr > linebuf + 2 224 curr > linebuf + 2 && curr[-3] == ' ' [all...] |
/src/lib/libc/citrus/ |
citrus_iconv.c | 107 char *linebuf, size_t linebufsize, 117 cp = p = _lookup_simple(path, key, linebuf, linebufsize, 162 char linebuf[LINE_MAX]; local in function:open_shared 167 ret = lookup_iconv_entry(basedir, convname, linebuf, sizeof(linebuf), 173 linebuf, sizeof(linebuf),
|
citrus_mapper.c | 133 void *linebuf, size_t linebufsize, 165 p = linebuf; 323 char linebuf[PATH_MAX]; local in function:_citrus_mapper_open 343 ret = lookup_mapper_entry(ma->ma_dir, mapname, linebuf,
|
citrus_iconv.c | 107 char *linebuf, size_t linebufsize, 117 cp = p = _lookup_simple(path, key, linebuf, linebufsize, 162 char linebuf[LINE_MAX]; local in function:open_shared 167 ret = lookup_iconv_entry(basedir, convname, linebuf, sizeof(linebuf), 173 linebuf, sizeof(linebuf),
|
citrus_mapper.c | 133 void *linebuf, size_t linebufsize, 165 p = linebuf; 323 char linebuf[PATH_MAX]; local in function:_citrus_mapper_open 343 ret = lookup_mapper_entry(ma->ma_dir, mapname, linebuf,
|
/src/libexec/getNAME/ |
getNAME.c | 66 static char *linebuf = NULL; variable in typeref:typename:char * 222 split(linebuf, name); 224 (void)printf("%s\n", linebuf); 242 if ((newlinebuf = realloc(linebuf, newmaxlen)) == NULL) 244 linebuf = newlinebuf; 248 linebuf[curlen++] = ' '; 249 (void)memcpy(&linebuf[curlen], line, len); 252 linebuf[curlen] = '\0'; 256 if ((s = strstr(linebuf, "\\-")) != NULL) { 258 curlen - (s + 1 - linebuf)); [all...] |
getNAME.c | 66 static char *linebuf = NULL; variable in typeref:typename:char * 222 split(linebuf, name); 224 (void)printf("%s\n", linebuf); 242 if ((newlinebuf = realloc(linebuf, newmaxlen)) == NULL) 244 linebuf = newlinebuf; 248 linebuf[curlen++] = ' '; 249 (void)memcpy(&linebuf[curlen], line, len); 252 linebuf[curlen] = '\0'; 256 if ((s = strstr(linebuf, "\\-")) != NULL) { 258 curlen - (s + 1 - linebuf)); [all...] |
/src/usr.bin/last/ |
want.c | 79 char linebuf[sizeof(bp->ut_line) + 1], *linep; local in function:wtmp
|
want.c | 79 char linebuf[sizeof(bp->ut_line) + 1], *linep; local in function:wtmp
|
/src/games/cribbage/ |
io.c | 67 static char linebuf[LINESIZE]; variable in typeref:typename:char[] 537 for (i = strlen(unctrl(linebuf[pos])); i; i--) 555 linebuf[pos++] = c; 560 linebuf[pos] = '\0'; 562 return (linebuf);
|
io.c | 67 static char linebuf[LINESIZE]; variable in typeref:typename:char[] 537 for (i = strlen(unctrl(linebuf[pos])); i; i--) 555 linebuf[pos++] = c; 560 linebuf[pos] = '\0'; 562 return (linebuf);
|
/src/sbin/raidctl/ |
rf_configure.c | 617 char linebuf[BUFSIZ]; local in function:rf_ReadSpareTable 619 if (fgets(linebuf, BUFSIZ, fp) == NULL) { 624 numFound = sscanf(linebuf, " %d %d %d %d", &tableNum, &tupleNum,
|
rf_configure.c | 617 char linebuf[BUFSIZ]; local in function:rf_ReadSpareTable 619 if (fgets(linebuf, BUFSIZ, fp) == NULL) { 624 numFound = sscanf(linebuf, " %d %d %d %d", &tableNum, &tupleNum,
|
/src/sys/arch/amiga/stand/bootblock/boot/ |
main.c | 92 char linebuf[128]; local in function:pain 167 kgets(linebuf, sizeof(linebuf)); 169 if (*linebuf == 'q') 172 if (*linebuf) 173 path = linebuf;
|
main.c | 92 char linebuf[128]; local in function:pain 167 kgets(linebuf, sizeof(linebuf)); 169 if (*linebuf == 'q') 172 if (*linebuf) 173 path = linebuf;
|
/src/usr.bin/mail/ |
collect.c | 372 char linebuf[LINESIZE]; local in function:collect 458 c = readline(stdin, linebuf, LINESIZE, reset_on_stop); 476 if (linebuf[0] == '.' && linebuf[1] == '\0' && 480 if (linebuf[0] != escape || value(ENAME_INTERACTIVE) == NULL || 482 if (putline(collf, linebuf, !longline) < 0) 486 c = linebuf[1]; 494 if (putline(collf, &linebuf[1], !longline) < 0) 503 hp->h_attach = mime_attach_files(hp->h_attach, &linebuf[2]); 517 (void)shell(&linebuf[2]) [all...] |
fio.c | 188 char linebuf[LINESIZE]; local in function:setptr 197 (void)snprintf(linebuf, LINESIZE, "%s/mail.XXXXXX", tmpdir); 198 if ((c = mkstemp(linebuf)) == -1 || 200 (void)fprintf(stderr, "mail: can't open %s\n", linebuf); 203 (void)unlink(linebuf); 226 if (fgets(linebuf, LINESIZE, ibuf) == NULL) { 232 len = strlen(linebuf); 238 if (len >= 2 && linebuf[len - 1] == '\n' && 239 linebuf[len - 2] == '\r') { 240 linebuf[len - 2] = '\n' [all...] |
collect.c | 372 char linebuf[LINESIZE]; local in function:collect 458 c = readline(stdin, linebuf, LINESIZE, reset_on_stop); 476 if (linebuf[0] == '.' && linebuf[1] == '\0' && 480 if (linebuf[0] != escape || value(ENAME_INTERACTIVE) == NULL || 482 if (putline(collf, linebuf, !longline) < 0) 486 c = linebuf[1]; 494 if (putline(collf, &linebuf[1], !longline) < 0) 503 hp->h_attach = mime_attach_files(hp->h_attach, &linebuf[2]); 517 (void)shell(&linebuf[2]) [all...] |
fio.c | 188 char linebuf[LINESIZE]; local in function:setptr 197 (void)snprintf(linebuf, LINESIZE, "%s/mail.XXXXXX", tmpdir); 198 if ((c = mkstemp(linebuf)) == -1 || 200 (void)fprintf(stderr, "mail: can't open %s\n", linebuf); 203 (void)unlink(linebuf); 226 if (fgets(linebuf, LINESIZE, ibuf) == NULL) { 232 len = strlen(linebuf); 238 if (len >= 2 && linebuf[len - 1] == '\n' && 239 linebuf[len - 2] == '\r') { 240 linebuf[len - 2] = '\n' [all...] |
support.c | 180 ishfield(const char linebuf[], char *colon, const char field[]) 185 if (strcasecmp(linebuf, field) != 0) { 205 gethfield(FILE *f, char linebuf[], int rem, char **colon) 214 if ((c = readline(f, linebuf, LINESIZE, 0)) <= 0) 216 for (cp = linebuf; 220 if (*cp != ':' || cp == linebuf) 227 cp = linebuf + c; 229 while (--cp >= linebuf && is_WSP(*cp)) 242 if (cp + c >= linebuf + LINESIZE - 2) 262 char linebuf[LINESIZE] local in function:hfield 568 char linebuf[LINESIZE]; local in function:name1 [all...] |
/src/usr.sbin/lpr/pac/ |
pac.c | 211 char linebuf[BUFSIZ]; local in function:account 217 while (fgets(linebuf, BUFSIZ, acf) != NULL) { 219 if (sscanf(linebuf, "%f %d%1023s", &t, &ic, who) == 0) { 220 sscanf(linebuf, "%f %1023s", &t, who);
|
pac.c | 211 char linebuf[BUFSIZ]; local in function:account 217 while (fgets(linebuf, BUFSIZ, acf) != NULL) { 219 if (sscanf(linebuf, "%f %d%1023s", &t, &ic, who) == 0) { 220 sscanf(linebuf, "%f %1023s", &t, who);
|
/src/games/hack/ |
hack.end.c | 494 char linebuf[BUFSZ]; local in function:outheader 496 (void) strcpy(linebuf, "Number Points Name"); 497 bp = eos(linebuf); 498 while (bp < linebuf + COLNO - 9) 501 puts(linebuf); 509 char linebuf[BUFSZ]; local in function:outentry 512 linebuf[0] = '\0'; 516 Snprintf(linebuf+pos, sizeof(linebuf)-pos, "%3d", rank); 518 Snprintf(linebuf+pos, sizeof(linebuf)-pos, " ") [all...] |
hack.end.c | 494 char linebuf[BUFSZ]; local in function:outheader 496 (void) strcpy(linebuf, "Number Points Name"); 497 bp = eos(linebuf); 498 while (bp < linebuf + COLNO - 9) 501 puts(linebuf); 509 char linebuf[BUFSZ]; local in function:outentry 512 linebuf[0] = '\0'; 516 Snprintf(linebuf+pos, sizeof(linebuf)-pos, "%3d", rank); 518 Snprintf(linebuf+pos, sizeof(linebuf)-pos, " ") [all...] |