/freebsd-10-stable/contrib/groff/src/preproc/eqn/ |
H A D | main.cpp | 68 string linebuf; local 73 while (read_line(fp, &linebuf)) { 74 if (linebuf.length() >= 4 75 && linebuf[0] == '.' && linebuf[1] == 'l' && linebuf[2] == 'f' 76 && (linebuf[3] == ' ' || linebuf[3] == '\n' || compatible_flag)) { 77 put_string(linebuf, stdout); 78 linebuf 132 inline_equation(FILE *fp, string &linebuf, string &str) argument [all...] |
/freebsd-10-stable/contrib/gcc/ |
H A D | gen-protos.c | 135 sstring linebuf; local 145 INIT_SSTRING (&linebuf); 159 linebuf.ptr = linebuf.base; 161 c = read_upto (inf, &linebuf, '\n'); 162 if (linebuf.base[0] == '#') /* skip cpp command */ 164 if (linebuf.base[0] == '\0') /* skip empty line */ 167 if (! parse_fn_proto (linebuf.base, linebuf.ptr, &fn_decl))
|
/freebsd-10-stable/contrib/serf/buckets/ |
H A D | dechunk_buckets.c | 32 serf_linebuf_t linebuf; member in struct:__anon4420 50 serf_linebuf_init(&ctx->linebuf); 76 status = serf_linebuf_fetch(&ctx->linebuf, ctx->stream, 82 if (ctx->linebuf.state == SERF_LINEBUF_READY) { 85 if (ctx->linebuf.used == sizeof(ctx->linebuf.line)) 87 ctx->linebuf.line[ctx->linebuf.used] = '\0'; 90 ctx->body_left = apr_strtoi64(ctx->linebuf.line, NULL, 16);
|
H A D | response_buckets.c | 38 serf_linebuf_t linebuf; member in struct:__anon4432 84 serf_linebuf_init(&ctx->linebuf); 122 return serf_linebuf_fetch(&ctx->linebuf, ctx->stream, acceptable); 131 /* ctx->linebuf.line should be of form: HTTP/1.1 200 OK */ 132 res = apr_date_checkmask(ctx->linebuf.line, "HTTP/#.# ###*"); 138 ctx->sl.version = SERF_HTTP_VERSION(ctx->linebuf.line[5] - '0', 139 ctx->linebuf.line[7] - '0'); 140 ctx->sl.code = apr_strtoi64(ctx->linebuf.line + 8, &reason, 10); 149 ctx->linebuf.used 150 - (reason - ctx->linebuf [all...] |
H A D | bwtp_buckets.c | 55 serf_linebuf_t linebuf; member in struct:__anon4416 328 serf_linebuf_init(&ctx->linebuf); 351 return serf_linebuf_fetch(&ctx->linebuf, ctx->stream, acceptable); 360 /* ctx->linebuf.line should be of form: BW* */ 361 res = apr_date_checkmask(ctx->linebuf.line, "BW*"); 367 if (ctx->linebuf.line[2] == 'H') { 370 else if (ctx->linebuf.line[2] == 'M') { 377 ctx->channel = apr_strtoi64(ctx->linebuf.line + 3, &reason, 16); 387 if (reason - ctx->linebuf.line < ctx->linebuf [all...] |
H A D | buckets.c | 435 void serf_linebuf_init(serf_linebuf_t *linebuf) argument 437 linebuf->state = SERF_LINEBUF_EMPTY; 438 linebuf->used = 0; 443 serf_linebuf_t *linebuf, 450 if (linebuf->state == SERF_LINEBUF_READY) { 451 linebuf->state = SERF_LINEBUF_EMPTY; 456 linebuf->used = 0; 464 if (linebuf->state == SERF_LINEBUF_CRLF_SPLIT) { 492 linebuf->state = SERF_LINEBUF_READY; 512 if (linebuf 442 serf_linebuf_fetch( serf_linebuf_t *linebuf, serf_bucket_t *bucket, int acceptable) argument [all...] |
/freebsd-10-stable/usr.bin/xstr/ |
H A D | xstr.c | 158 static char linebuf[BUFSIZ]; variable 170 if (fgets(linebuf, sizeof linebuf, stdin) == NULL) { 175 if (linebuf[0] == '#') { 176 if (linebuf[1] == ' ' && isdigit(linebuf[2])) 177 printf("#line%s", &linebuf[1]); 179 printf("%s", linebuf); 182 for (cp = linebuf; (c = *cp++);) switch (c) { 252 if (fgets(linebuf, sizeo [all...] |
/freebsd-10-stable/usr.bin/mail/ |
H A D | fio.c | 66 char linebuf[LINESIZE], pathbuf[PATHSIZE]; local 98 if (fgets(linebuf, sizeof(linebuf), ibuf) == NULL) { 104 count = strlen(linebuf); 109 if (count >= 2 && linebuf[count - 1] == '\n' && 110 linebuf[count - 2] == '\r') { 112 linebuf[count - 1] = '\n'; 115 (void)fwrite(linebuf, sizeof(*linebuf), count, otf); 119 linebuf[coun 164 putline(FILE *obuf, char *linebuf, int outlf) argument 185 readline(FILE *ibuf, char *linebuf, int linesize) argument [all...] |
H A D | collect.c | 77 char linebuf[LINESIZE], tempname[PATHSIZE], *cp, getsub; local 158 c = readline(stdin, linebuf, LINESIZE); 172 if (linebuf[0] == '.' && linebuf[1] == '\0' && 176 if (linebuf[0] != escape || value("interactive") == NULL || 178 if (putline(collf, linebuf, !longline) < 0) 182 c = linebuf[1]; 190 if (putline(collf, &linebuf[1], !longline) < 0) 208 shell(&linebuf[2]); 215 execute(&linebuf[ [all...] |
H A D | util.c | 134 char linebuf[LINESIZE]; local 142 if (readline(ibuf, linebuf, LINESIZE) < 0) 145 if ((lc = gethfield(ibuf, linebuf, lc, &colon)) < 0) 147 if ((hfield = ishfield(linebuf, colon, field)) != NULL) 160 gethfield(FILE *f, char linebuf[], int rem, char **colon) argument 169 if ((c = readline(f, linebuf, LINESIZE)) <= 0) 171 for (cp = linebuf; isprint((unsigned char)*cp) && *cp != ' ' && *cp != ':'; 174 if (*cp != ':' || cp == linebuf) 181 cp = linebuf + c; 183 while (--cp >= linebuf 215 ishfield(char linebuf[], char *colon, const char *field) argument 500 char linebuf[LINESIZE]; local [all...] |
H A D | head.c | 53 ishead(char linebuf[]) argument 58 if (strncmp(linebuf, "From ", 5) != 0) 60 parse(linebuf, &hl, parbuf); 62 fail(linebuf, "No date field"); 66 fail(linebuf, "Date field not legal date"); 76 fail(const char *linebuf __unused, const char *reason __unused) 82 fprintf(stderr, "\"%s\"\nnot a header because %s\n", linebuf, reason);
|
H A D | cmd1.c | 363 char *valtop, linebuf[LINESIZE]; local 385 if (readline(ibuf, linebuf, sizeof(linebuf)) < 0) 387 puts(linebuf); 388 lineb = strspn(linebuf, " \t") == strlen(linebuf);
|
H A D | list.c | 385 char *linebuf; local 388 if ((linebuf = malloc(linebufsize)) == NULL) 403 cp2 = linebuf; 407 if (cp2 - linebuf == linebufsize - 1) { 409 if ((linebuf = realloc(linebuf, linebufsize)) == NULL) 411 cp2 = linebuf + linebufsize - BUFSIZ - 1; 475 argv[argn++] = savestr(linebuf); 478 (void)free(linebuf);
|
H A D | cmd2.c | 227 snarf(char linebuf[], int *flag) argument 232 cp = strlen(linebuf) + linebuf - 1; 238 while (cp > linebuf && isspace((unsigned char)*cp)) 246 while (cp > linebuf && !isspace((unsigned char)*cp))
|
H A D | lex.c | 203 char linebuf[LINESIZE]; local 234 if (readline(input, &linebuf[n], LINESIZE - n) < 0) { 239 if ((n = strlen(linebuf)) == 0) 242 if (linebuf[n] != '\\') 244 linebuf[n++] = ' '; 264 if (execute(linebuf, 0)) 277 execute(char linebuf[], int contxt) argument 295 for (cp = linebuf; isspace((unsigned char)*cp); cp++)
|
/freebsd-10-stable/contrib/pf/ftp-proxy/ |
H A D | ftp-proxy.c | 121 char linebuf[MAX_LINE + 1]; variable 163 if (linebuf[0] == 'P' || linebuf[0] == 'p' || 164 linebuf[0] == 'E' || linebuf[0] == 'e') { 178 if (anonymous_only && (linebuf[0] == 'U' || linebuf[0] == 'u')) 187 if (strcasecmp("USER ftp\r\n", linebuf) != 0 && 188 strcasecmp("USER anonymous\r\n", linebuf) != 0) { 189 snprintf(linebuf, sizeo [all...] |
/freebsd-10-stable/tools/tools/bus_autoconf/ |
H A D | bus_sections.c | 159 char linebuf[3][MAX_STRING]; local 180 linebuf[state][off] = c; 186 linebuf[state][off] = 0; 191 cmd = strchr(command_list, linebuf[2][0]); 203 pfi = format_info_new(linebuf[0], bit_offset ^ 204 atoi(linebuf[1]), cmd_index); 214 pfi_last = format_info_new(linebuf[0], 215 atoi(linebuf[1]), cmd_index);
|
/freebsd-10-stable/contrib/less/ |
H A D | line.c | 25 static char *linebuf = NULL; /* Buffer which holds the current output line */ variable 26 static char *attr = NULL; /* Extension of linebuf to hold attributes */ 36 static int curr; /* Index into linebuf */ 92 linebuf = (char *) ecalloc(LINEBUF_SIZE, sizeof(char)); 108 char *new_buf = (char *) realloc(linebuf, new_size); 134 memcpy(new_buf, linebuf, size_linebuf * sizeof(char)); 137 free(linebuf); 139 linebuf = new_buf; 185 linebuf[n] = ch; 219 * {{ Since forw_raw_line modifies linebuf, w [all...] |
/freebsd-10-stable/contrib/ldns/ |
H A D | higher.c | 155 ldns_buffer *linebuf; local 185 linebuf = LDNS_MALLOC(ldns_buffer); 186 if(!linebuf) { 195 ldns_buffer_new_frm_data(linebuf, line, (size_t) i); 196 for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN); 198 j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN), cnt++) { 234 ldns_buffer_free(linebuf);
|
/freebsd-10-stable/usr.sbin/ypserv/ |
H A D | yp_access.c | 114 char linebuf[1024 + 2]; local 145 while (fgets(linebuf, LINEBUFSZ, fp)) { 148 if ((linebuf[0] == '#') 149 || (strspn(linebuf, " \t\r\n") == strlen(linebuf))) 151 if (sscanf(linebuf, "%s %s", addr1, addr2) < 2) { 153 linebuf);
|
/freebsd-10-stable/usr.sbin/rrenumd/ |
H A D | lexer.l | 58 char linebuf[LINEBUF_SIZE];
|
/freebsd-10-stable/crypto/openssl/crypto/asn1/ |
H A D | asn_mime.c | 107 static int strip_eol(char *linebuf, int *plen); 530 char linebuf[MAX_SMLEN]; local 540 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0) 541 BIO_write(out, linebuf, len); 545 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) { 546 eol = strip_eol(linebuf, &len); 548 BIO_write(out, linebuf, len); 597 char linebuf[MAX_SMLEN]; local 610 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) { 611 state = mime_bound_check(linebuf, le 651 char linebuf[MAX_SMLEN]; local 959 strip_eol(char *linebuf, int *plen) argument [all...] |
/freebsd-10-stable/sbin/swapon/ |
H A D | swapon.c | 453 static char mdpath[PATH_MAX], linebuf[PATH_MAX]; local 517 (linelen < 2 || linelen > sizeof(linebuf))) { 522 strncpy(linebuf, p, linelen); 523 linebuf[linelen - 1] = '\0'; 525 ul = strtoul(linebuf, &p, 10); 532 linebuf); 579 (linelen < 2 || linelen > sizeof(linebuf) - 1)) { 584 strncpy(linebuf, p, linelen); 585 linebuf[linelen - 1] = '\0'; 586 p = strchr(linebuf, ' '); [all...] |
/freebsd-10-stable/contrib/subversion/subversion/libsvn_repos/ |
H A D | load.c | 406 svn_stringbuf_t *linebuf; 415 SVN_ERR(svn_stream_readline(stream, &linebuf, "\n", &eof, linepool)); 422 SVN_ERR(parse_format_version(&version, linebuf->data)); 461 SVN_ERR(svn_stream_readline(stream, &linebuf, "\n", &eof, linepool)); 465 if (svn_stringbuf_isempty(linebuf)) 471 if ((linebuf->len == 0) || (svn_ctype_isspace(linebuf->data[0]))) 478 SVN_ERR(read_header_block(stream, linebuf, &headers, linepool)); 404 svn_stringbuf_t *linebuf; local
|
/freebsd-10-stable/usr.sbin/usbdump/ |
H A D | usbdump.c | 406 char linebuf[128]; local 415 linebuf[i] = ' '; 416 hexbyte(linebuf + i + 1, ((line - region) >> 8) & 0xFF); 417 hexbyte(linebuf + i + 3, (line - region) & 0xFF); 418 linebuf[i + 5] = ' '; 419 linebuf[i + 6] = ' '; 424 hexbyte(linebuf + i, 427 linebuf[i] = '-'; 428 linebuf[i + 1] = '-'; 430 linebuf[ [all...] |