Lines Matching defs:linebuf
188 char linebuf[LINESIZE];
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';
243 (void)fwrite(linebuf, sizeof(*linebuf), len, otf);
247 linebuf[len - 1] = 0;
248 if (maybe && linebuf[0] == 'F' && ishead(linebuf)) {
254 } else if (linebuf[0] == 0) {
257 for (cp = linebuf, cp2 = "status";; cp++) {
280 int linelen = (int)strlen(linebuf);
289 maybe = linebuf[0] == 0;
299 putline(FILE *obuf, const char *linebuf, int outlf)
303 c = strlen(linebuf);
304 (void)fwrite(linebuf, sizeof(*linebuf), c, obuf);
320 readline(FILE *ibuf, char *linebuf, int linesize, int no_restart)
335 if (fgets(linebuf, linesize, ibuf) == NULL)
338 n = (int)strlen(linebuf);
339 if (n > 0 && linebuf[n - 1] == '\n')
340 linebuf[--n] = '\0';