Searched refs:linebuf (Results 1 - 25 of 45) sorted by relevance

12

/freebsd-11-stable/contrib/groff/src/preproc/eqn/
H A Dmain.cpp68 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-11-stable/contrib/less/
H A Dline.c34 } linebuf; variable in typeref:struct:__anon3
131 linebuf.buf = (char *) ecalloc(LINEBUF_SIZE, sizeof(char));
132 linebuf.attr = (int *) ecalloc(LINEBUF_SIZE, sizeof(int));
149 char *new_buf = (char *) realloc(linebuf.buf, new_size);
150 int *new_attr = (int *) realloc(linebuf.attr, new_size*sizeof(int));
167 memcpy(new_buf, linebuf.buf, size_linebuf * sizeof(char));
168 memcpy(new_attr, linebuf.attr, size_linebuf * sizeof(int));
169 free(linebuf.attr);
170 free(linebuf.buf);
172 linebuf
[all...]
/freebsd-11-stable/contrib/serf/buckets/
H A Dresponse_buckets.c43 serf_linebuf_t linebuf; member in struct:__anon73
89 serf_linebuf_init(&ctx->linebuf);
127 return serf_linebuf_fetch(&ctx->linebuf, ctx->stream, acceptable);
137 if (ctx->linebuf.used >= SERF_LINEBUF_LIMIT) {
142 ctx->linebuf.line[ctx->linebuf.used] = '\0';
144 /* ctx->linebuf.line should be of form: 'HTTP/1.1 200 OK',
147 res = apr_date_checkmask(ctx->linebuf.line, "HTTP/#.# ###*");
153 ctx->sl.version = SERF_HTTP_VERSION(ctx->linebuf.line[5] - '0',
154 ctx->linebuf
[all...]
H A Ddechunk_buckets.c37 serf_linebuf_t linebuf; member in struct:__anon61
55 serf_linebuf_init(&ctx->linebuf);
81 status = serf_linebuf_fetch(&ctx->linebuf, ctx->stream,
87 if (ctx->linebuf.state == SERF_LINEBUF_READY) {
90 if (ctx->linebuf.used == sizeof(ctx->linebuf.line))
92 ctx->linebuf.line[ctx->linebuf.used] = '\0';
95 ctx->body_left = apr_strtoi64(ctx->linebuf.line, NULL, 16);
H A Dbwtp_buckets.c60 serf_linebuf_t linebuf; member in struct:__anon57
333 serf_linebuf_init(&ctx->linebuf);
356 return serf_linebuf_fetch(&ctx->linebuf, ctx->stream, acceptable);
365 /* ctx->linebuf.line should be of form: BW* */
366 res = apr_date_checkmask(ctx->linebuf.line, "BW*");
372 if (ctx->linebuf.line[2] == 'H') {
375 else if (ctx->linebuf.line[2] == 'M') {
382 ctx->channel = apr_strtoi64(ctx->linebuf.line + 3, &reason, 16);
392 if (reason - ctx->linebuf.line < ctx->linebuf
[all...]
H A Dbuckets.c440 void serf_linebuf_init(serf_linebuf_t *linebuf) argument
442 linebuf->state = SERF_LINEBUF_EMPTY;
443 linebuf->used = 0;
448 serf_linebuf_t *linebuf,
455 if (linebuf->state == SERF_LINEBUF_READY) {
456 linebuf->state = SERF_LINEBUF_EMPTY;
461 linebuf->used = 0;
469 if (linebuf->state == SERF_LINEBUF_CRLF_SPLIT) {
497 linebuf->state = SERF_LINEBUF_READY;
517 if (linebuf
447 serf_linebuf_fetch( serf_linebuf_t *linebuf, serf_bucket_t *bucket, int acceptable) argument
[all...]
/freebsd-11-stable/contrib/gcc/
H A Dgen-protos.c135 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-11-stable/usr.bin/xstr/
H A Dxstr.c158 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-11-stable/usr.bin/mail/
H A Dfio.c66 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 Dcollect.c77 char linebuf[LINESIZE], tempname[PATHSIZE], *cp, getsub; local
157 c = readline(stdin, linebuf, LINESIZE);
171 if (linebuf[0] == '.' && linebuf[1] == '\0' &&
175 if (linebuf[0] != escape || value("interactive") == NULL ||
177 if (putline(collf, linebuf, !longline) < 0)
181 c = linebuf[1];
189 if (putline(collf, &linebuf[1], !longline) < 0)
207 shell(&linebuf[2]);
214 execute(&linebuf[
[all...]
H A Dutil.c136 char linebuf[LINESIZE]; local
144 if (readline(ibuf, linebuf, LINESIZE) < 0)
147 if ((lc = gethfield(ibuf, linebuf, lc, &colon)) < 0)
149 if ((hfield = ishfield(linebuf, colon, field)) != NULL)
162 gethfield(FILE *f, char linebuf[], int rem, char **colon) argument
171 if ((c = readline(f, linebuf, LINESIZE)) <= 0)
173 for (cp = linebuf; isprint((unsigned char)*cp) && *cp != ' ' && *cp != ':';
176 if (*cp != ':' || cp == linebuf)
183 cp = linebuf + c;
185 while (--cp >= linebuf
217 ishfield(char linebuf[], char *colon, const char *field) argument
500 char linebuf[LINESIZE]; local
[all...]
H A Dhead.c53 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 Dcmd1.c363 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 Dlist.c385 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 Dcmd2.c227 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 Dlex.c203 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-11-stable/contrib/ofed/opensm/complib/
H A Dcl_nodenamemap.c56 char *linebuf,
80 char linebuf[PARSE_NODE_MAP_BUFLEN + 1]; local
98 memset(linebuf, '\0', PARSE_NODE_MAP_BUFLEN + 1);
100 linebuf, PARSE_NODE_MAP_BUFLEN)) {
108 linebuf);
174 char *linebuf,
197 if (linebuf) {
198 memcpy(linebuf, line,
200 e = strpbrk(linebuf, "\n");
171 parse_node_map_wrap(const char *file_name, int (*create) (void *, uint64_t, char *), void *cxt, char *linebuf, unsigned int linebuflen) argument
/freebsd-11-stable/contrib/pf/ftp-proxy/
H A Dftp-proxy.c121 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-11-stable/tools/tools/bus_autoconf/
H A Dbus_sections.c159 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-11-stable/contrib/elftoolchain/libdwarf/
H A Ddwarf_dealloc.c76 dwarf_srclines_dealloc(Dwarf_Debug dbg, Dwarf_Line *linebuf, argument
86 (void) dbg; (void) linebuf; (void) count;
/freebsd-11-stable/contrib/ldns/
H A Dhigher.c155 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-11-stable/usr.sbin/ypserv/
H A Dyp_access.c112 char linebuf[1024 + 2]; local
143 while (fgets(linebuf, LINEBUFSZ, fp)) {
146 if ((linebuf[0] == '#')
147 || (strspn(linebuf, " \t\r\n") == strlen(linebuf)))
149 if (sscanf(linebuf, "%s %s", addr1, addr2) < 2) {
151 linebuf);
/freebsd-11-stable/usr.sbin/rrenumd/
H A Dlexer.l54 char linebuf[LINEBUF_SIZE];
/freebsd-11-stable/contrib/subversion/subversion/libsvn_repos/
H A Dload.c367 svn_stringbuf_t *linebuf;
383 linebuf = svn_stringbuf_create_empty(scratch_pool);
397 if (linebuf->len + 1 > 80)
400 linebuf->data);
402 svn_stringbuf_appendbyte(linebuf, c);
405 p = strchr(linebuf->data, ':');
408 || p != (linebuf->data + magic_len)
409 || strncmp(linebuf->data,
414 linebuf->data);
573 svn_stringbuf_t *linebuf;
366 svn_stringbuf_t *linebuf; local
570 svn_stringbuf_t *linebuf; local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/asn1/
H A Dasn_mime.c107 static int strip_eol(char *linebuf, int *plen);
531 char linebuf[MAX_SMLEN]; local
541 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0)
542 BIO_write(out, linebuf, len);
546 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) {
547 eol = strip_eol(linebuf, &len);
549 BIO_write(out, linebuf, len);
598 char linebuf[MAX_SMLEN]; local
611 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) {
612 state = mime_bound_check(linebuf, le
654 char linebuf[MAX_SMLEN]; local
962 strip_eol(char *linebuf, int *plen) argument
[all...]

Completed in 165 milliseconds

12