#define FOR_more
#include "toys.h"
-#include <signal.h>
GLOBALS(
struct termios inf;
if (!isatty(STDOUT_FILENO) || !(cin = fopen("/dev/tty", "r"))) {
loopfiles(toys.optargs, do_cat_operation);
- toys.exitval = 0;
return;
}
if (st.st_size)
more_msg_len += printf("(%d%% of %lld bytes)",
(int) (100 * ( (double) ftell(fp) / (double) st.st_size)),
- st.st_size);
+ (long long)st.st_size);
fflush(NULL);
while (1) {
stop:
tcsetattr(TT.cin_fd, TCSANOW, &TT.inf);
fclose(cin);
+ // Even if optarg not found, exit value still 0
toys.exitval = 0;
}