Lines Matching refs:inbuf
118 char inbuf[BUFSIZ];
309 snprintf(inbuf, sizeof(inbuf), "%s/%s", _PATH_MSGS, cp);
317 if (stat(inbuf, &stbuf) != 0)
321 unlink(inbuf);
379 fgets(inbuf, sizeof inbuf, stdin);
383 ptr, ctime(&t), inbuf);
389 fgets(inbuf, sizeof inbuf, stdin);
392 blankline = (blankline || (inbuf[0] == '\n'));
393 seensubj = (seensubj || (!blankline && (strncmp(inbuf, "Subj", 4) == 0)));
394 fputs(inbuf, newmsg);
460 if (tgetent(inbuf, getenv("TERM")) <= 0
521 && fgets(inbuf, sizeof inbuf, newmsg)
522 && inbuf[0] != '\n') {
523 fputs(inbuf, stdout);
544 inbuf[0] = 'y';
548 in = inbuf;
625 if (inbuf[0] == '-' || isdigit(inbuf[0]))
667 while (fgets(inbuf, sizeof inbuf, newmsg)) {
668 fputs(inbuf, outf);
759 (void) fgets(inbuf, sizeof inbuf, stdin);
760 if ((n = strlen(inbuf)) > 0 && inbuf[n - 1] == '\n')
761 inbuf[n - 1] = '\0';
763 inbuf[0] = 'x';
769 if (((inch = inbuf[0]) == 's' || inch == 'm') && !restricted) {
771 if ((inch = inbuf[0]) == 's' || inch == 'm') {
773 if (inbuf[1] == '-')
775 else if (isdigit(inbuf[1]))
776 cmsg = atoi(&inbuf[1]);
791 in = nxtfld((unsigned char *)inbuf);
821 while ((n = fread(inbuf, 1, sizeof inbuf, cpfrom)))
822 fwrite(inbuf, 1, n, cpto);
851 if (fgets(inbuf, sizeof inbuf, infile)) {
852 if (strncmp(inbuf, "From", 4)==0) {
859 in = nxtfld((unsigned char *)inbuf);
894 while (fgets(inbuf, sizeof inbuf, infile)
895 && !(blankline = (inbuf[0] == '\n'))) {
899 if (!seensubj && strncmp(inbuf, "Subj", 4)==0) {
902 strncpy(subj, nxtfld((unsigned char *)inbuf), sizeof subj);