SCCS-vsn: bin/ls/print.c 5.17
-static char sccsid[] = "@(#)print.c 5.16 (Berkeley) %G%";
+static char sccsid[] = "@(#)print.c 5.17 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
colwidth += 5;
if (f_type)
colwidth += 1;
colwidth += 5;
if (f_type)
colwidth += 1;
colwidth = (colwidth + TAB) & ~(TAB - 1);
colwidth = (colwidth + TAB) & ~(TAB - 1);
+ if (termwidth < 2 * colwidth) {
+ printscol(stats, num);
+ return;
+ }
numcols = termwidth / colwidth;
numrows = num / numcols;
numcols = termwidth / colwidth;
numrows = num / numcols;