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

12

/netbsd-6-1-5-RELEASE/gnu/dist/groff/src/preproc/eqn/
H A Dmain.cpp70 string linebuf; local
75 while (read_line(fp, &linebuf)) {
76 if (linebuf.length() >= 4
77 && linebuf[0] == '.' && linebuf[1] == 'l' && linebuf[2] == 'f'
78 && (linebuf[3] == ' ' || linebuf[3] == '\n' || compatible_flag)) {
79 put_string(linebuf, stdout);
80 linebuf
134 inline_equation(FILE *fp, string &linebuf, string &str) argument
[all...]
/netbsd-6-1-5-RELEASE/games/hack/
H A Dhack.end.c494 char linebuf[BUFSZ]; local
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
512 linebuf[0] = '\0';
516 Snprintf(linebuf+pos, sizeof(linebuf)-pos, "%3d", rank);
518 Snprintf(linebuf
[all...]
/netbsd-6-1-5-RELEASE/distrib/utils/more/
H A Dline.c55 static char linebuf[1024]; /* Buffer which holds the current output line */ variable
56 static char *curr; /* Pointer into linebuf */
96 Usually points to linebuf. */
103 line = curr = linebuf;
153 if (curr > linebuf + sizeof(linebuf) - 12)
169 if (curr <= linebuf + 1
193 if (bo_width > 0 && curr > linebuf + 2
224 curr > linebuf + 2 && curr[-3] == ' ')
426 p = linebuf;
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/mail/
H A Dfio.c181 char linebuf[LINESIZE]; local
190 (void)snprintf(linebuf, LINESIZE, "%s/mail.XXXXXX", tmpdir);
191 if ((c = mkstemp(linebuf)) == -1 ||
193 (void)fprintf(stderr, "mail: can't open %s\n", linebuf);
196 (void)unlink(linebuf);
219 if (fgets(linebuf, LINESIZE, ibuf) == NULL) {
225 len = strlen(linebuf);
231 if (len >= 2 && linebuf[len - 1] == '\n' &&
232 linebuf[len - 2] == '\r') {
233 linebuf[le
292 putline(FILE *obuf, const char *linebuf, int outlf) argument
313 readline(FILE *ibuf, char *linebuf, int linesize, int no_restart) argument
[all...]
H A Dhead.c127 fail(const char linebuf[], const char reason[]) argument
132 linebuf, reason);
225 ishead(const char linebuf[]) argument
231 cp = linebuf;
235 parse(linebuf, &hl, parbuf);
237 fail(linebuf, "No from or date field");
241 fail(linebuf, "Date field not legal date");
H A Dcollect.c366 char linebuf[LINESIZE]; local
452 c = readline(stdin, linebuf, LINESIZE, reset_on_stop);
470 if (linebuf[0] == '.' && linebuf[1] == '\0' &&
474 if (linebuf[0] != escape || value(ENAME_INTERACTIVE) == NULL ||
476 if (putline(collf, linebuf, !longline) < 0)
480 c = linebuf[1];
488 if (putline(collf, &linebuf[1], !longline) < 0)
497 hp->h_attach = mime_attach_files(hp->h_attach, &linebuf[2]);
511 (void)shell(&linebuf[
[all...]
H A Dsupport.c180 ishfield(const char linebuf[], char *colon, const char field[]) argument
185 if (strcasecmp(linebuf, field) != 0) {
205 gethfield(FILE *f, char linebuf[], int rem, char **colon) argument
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[LINESIZ local
412 blankline(char linebuf[]) argument
563 char linebuf[LINESIZE]; local
[all...]
H A Dlex.c584 execute(char linebuf[], enum execute_contxt_e contxt) argument
603 cp = skip_space(linebuf);
846 char linebuf[LINESIZE]; local
908 (void)strlcpy(linebuf, line, sizeof(linebuf));
911 if (readline(input, &linebuf[n], LINESIZE - n, 0) < 0) {
918 if (readline(input, &linebuf[n], LINESIZE - n, reset_on_stop) < 0) {
929 if ((ptr = comment_char(linebuf)) != NULL)
932 if ((n = (int)strlen(linebuf)) == 0)
935 if (linebuf[
[all...]
H A Dlist.c100 char linebuf[LINESIZE]; local
113 cp2 = linebuf;
178 argv[argn++] = savestr(linebuf);
H A Dcmd2.c145 snarf(char linebuf[], int *flag, const char *string) argument
150 cp = strlen(linebuf) + linebuf - 1;
155 while (cp >= linebuf && isspace((unsigned char)*cp))
162 while (cp > linebuf && !isspace((unsigned char)*cp))
/netbsd-6-1-5-RELEASE/external/bsd/less/dist/
H A Dline.c23 static char *linebuf = NULL; /* Buffer which holds the current output line */ variable
24 static char *attr = NULL; /* Extension of linebuf to hold attributes */
33 static int curr; /* Index into linebuf */
84 linebuf = (char *) ecalloc(LINEBUF_SIZE, sizeof(char));
100 char *new_buf = (char *) realloc(linebuf, new_size);
126 memcpy(new_buf, linebuf, size_linebuf * sizeof(char));
129 free(linebuf);
131 linebuf = new_buf;
183 * {{ Since forw_raw_line modifies linebuf, we must
184 * do this first, before storing anything in linebuf
[all...]
/netbsd-6-1-5-RELEASE/libexec/getNAME/
H A DgetNAME.c66 static char *linebuf = NULL; variable
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...]
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/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))
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/src/
H A Dlogin.c84 * char *linebuf
95 * linebuf the current line
99 * char *password as a pointer into linebuf
102 * This function temporarily alters linebuf, so it isn't thread safe when
103 * called on the same linebuf
108 char *linebuf)
114 if (*linebuf == '/')
122 if (isspace(*(linebuf + 1)))
124 q = linebuf + 1;
126 entry_version = strtoul (linebuf
106 password_entry_parseline(const char *cvsroot_canonical, const unsigned char warn, const int linenumber, char *linebuf) argument
289 char *linebuf = NULL; local
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dcheckpoint.c26 char linebuf[128]; local
28 char *tmp = &linebuf[0];
/netbsd-6-1-5-RELEASE/usr.bin/xstr/
H A Dxstr.c88 static char linebuf[8192]; variable
173 if (fgets(linebuf, sizeof linebuf, stdin) == NULL) {
178 if (linebuf[0] == '#') {
179 printf("%s", linebuf);
182 for (cp = linebuf; (c = *cp++);)
282 if (fgets(linebuf,
283 sizeof linebuf, stdin) == NULL) {
289 cp = linebuf;
312 if (fgets(linebuf, sizeo
[all...]
/netbsd-6-1-5-RELEASE/dist/pf/usr.sbin/ftp-proxy/
H A Dftp-proxy.c121 char linebuf[MAX_LINE + 1]; variable
166 if (linebuf[0] == 'P' || linebuf[0] == 'p' ||
167 linebuf[0] == 'E' || linebuf[0] == 'e') {
181 if (anonymous_only && (linebuf[0] == 'U' || linebuf[0] == 'u'))
190 if (strcasecmp("USER ftp\r\n", linebuf) != 0 &&
191 strcasecmp("USER anonymous\r\n", linebuf) != 0) {
192 snprintf(linebuf, sizeo
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/syslogd/
H A Dextern.h53 extern char *linebuf;
/netbsd-6-1-5-RELEASE/lib/libc/citrus/
H A Dcitrus_iconv.c107 char *linebuf, size_t linebufsize,
117 cp = p = _lookup_simple(path, key, linebuf, linebufsize,
162 char linebuf[LINE_MAX]; local
167 ret = lookup_iconv_entry(basedir, convname, linebuf, sizeof(linebuf),
173 linebuf, sizeof(linebuf),
106 lookup_iconv_entry(const char *curdir, const char *key, char *linebuf, size_t linebufsize, const char **module, const char **variable) argument
H A Dcitrus_mapper.c133 void *linebuf, size_t linebufsize,
165 p = linebuf;
323 char linebuf[PATH_MAX]; local
343 ret = lookup_mapper_entry(ma->ma_dir, mapname, linebuf,
132 lookup_mapper_entry(const char *dir, const char *mapname, void *linebuf, size_t linebufsize, const char **module, const char **variable) argument
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dasn_mime.c105 static int strip_eol(char *linebuf, int *plen);
541 char linebuf[MAX_SMLEN]; local
552 while((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0)
553 BIO_write(out, linebuf, len);
559 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0)
561 eol = strip_eol(linebuf, &len);
563 BIO_write(out, linebuf, len);
610 char linebuf[MAX_SMLEN]; local
623 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) {
624 state = mime_bound_check(linebuf, le
664 char linebuf[MAX_SMLEN]; local
937 strip_eol(char *linebuf, int *plen) argument
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/top/dist/
H A Dcommands.c834 char linebuf[MAX_COLS]; local
839 if (readline(linebuf, sizeof(linebuf), No) > 0)
841 if (linebuf[0] == '+' &&
842 linebuf[1] == '\0')
847 else if ((i = userid(linebuf)) == -1)
849 message_error(" %s: unknown user", linebuf);
864 char linebuf[MAX_COLS]; local
873 if (readline(linebuf, sizeof(linebuf), N
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/lpr/pac/
H A Dpac.c211 char linebuf[BUFSIZ]; local
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);
/netbsd-6-1-5-RELEASE/games/cribbage/
H A Dio.c67 static char linebuf[LINESIZE]; variable
531 for (sp = linebuf; (c = readchar()) != '\n'; clrtoeol(), refresh()) {
533 if (sp > linebuf) {
544 sp = linebuf;
548 if (sp == linebuf && c == ' ')
550 if (sp >= &linebuf[LINESIZE - 1] || !(isprint(c) || c == ' '))
562 return (linebuf);
/netbsd-6-1-5-RELEASE/sys/arch/amiga/stand/bootblock/boot/
H A Dmain.c92 char linebuf[128]; local
166 gets(linebuf);
168 if (*linebuf == 'q')
171 if (*linebuf)
172 path = linebuf;

Completed in 594 milliseconds

12