SCCS-vsn: bin/ls/ls.c 5.24
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)ls.c 5.23 (Berkeley) %G%";
+static char sccsid[] = "@(#)ls.c 5.24 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
char **argv;
{
extern int optind, stat();
char **argv;
{
extern int optind, stat();
struct winsize win;
int ch;
char *p, *getenv();
struct winsize win;
int ch;
char *p, *getenv();
*/
if (isatty(1)) {
f_nonprint = 1;
*/
if (isatty(1)) {
f_nonprint = 1;
- (void)ioctl(1, TIOCGETP, &sgbuf);
if (ioctl(1, TIOCGWINSZ, &win) == -1 || !win.ws_col) {
if (p = getenv("COLUMNS"))
termwidth = atoi(p);
if (ioctl(1, TIOCGWINSZ, &win) == -1 || !win.ws_col) {
if (p = getenv("COLUMNS"))
termwidth = atoi(p);