Deleted Added
full compact
ls.c (88602) ls.c (88603)
1/*
2 * Copyright (c) 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Michael Fischbein.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40 The Regents of the University of California. All rights reserved.\n";
41#endif /* not lint */
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)ls.c 8.5 (Berkeley) 4/2/94";
46#else
47static const char rcsid[] =
1/*
2 * Copyright (c) 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Michael Fischbein.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40 The Regents of the University of California. All rights reserved.\n";
41#endif /* not lint */
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)ls.c 8.5 (Berkeley) 4/2/94";
46#else
47static const char rcsid[] =
48 "$FreeBSD: head/bin/ls/ls.c 88602 2001-12-29 00:18:16Z joe $";
48 "$FreeBSD: head/bin/ls/ls.c 88603 2001-12-29 00:22:29Z joe $";
49#endif
50#endif /* not lint */
51
52#include <sys/types.h>
53#include <sys/stat.h>
54#include <sys/ioctl.h>
55
56#include <dirent.h>

--- 104 unchanged lines hidden (view full) ---

161 termwidth = atoi(p);
162 }
163
164 /* Root is -A automatically. */
165 if (!getuid())
166 f_listdot = 1;
167
168 fts_options = FTS_PHYSICAL;
49#endif
50#endif /* not lint */
51
52#include <sys/types.h>
53#include <sys/stat.h>
54#include <sys/ioctl.h>
55
56#include <dirent.h>

--- 104 unchanged lines hidden (view full) ---

161 termwidth = atoi(p);
162 }
163
164 /* Root is -A automatically. */
165 if (!getuid())
166 f_listdot = 1;
167
168 fts_options = FTS_PHYSICAL;
169 while ((ch = getopt(argc, argv, "1ABCFGHLPRTWZabcdfghiklnoqrstu")) != -1) {
169 while ((ch = getopt(argc, argv, "1ABCFGHLPRTWZabcdfghiklnoqrstuw")) != -1) {
170 switch (ch) {
171 /*
172 * The -1, -C and -l options all override each other so shell
173 * aliasing works right.
174 */
175 case '1':
176 f_singlecol = 1;
177 f_column = f_longform = 0;

--- 92 unchanged lines hidden (view full) ---

270 case 'W':
271 f_whiteout = 1;
272 break;
273 case 'b':
274 f_nonprint = 0;
275 f_octal = 0;
276 f_octal_escape = 1;
277 break;
170 switch (ch) {
171 /*
172 * The -1, -C and -l options all override each other so shell
173 * aliasing works right.
174 */
175 case '1':
176 f_singlecol = 1;
177 f_column = f_longform = 0;

--- 92 unchanged lines hidden (view full) ---

270 case 'W':
271 f_whiteout = 1;
272 break;
273 case 'b':
274 f_nonprint = 0;
275 f_octal = 0;
276 f_octal_escape = 1;
277 break;
278 case 'w':
279 f_nonprint = 0;
280 f_octal = 0;
281 f_octal_escape = 0;
282 break;
278 case 'Z':
279 f_lomac = 1;
280 break;
281 default:
282 case '?':
283 usage();
284 }
285 }

--- 477 unchanged lines hidden ---
283 case 'Z':
284 f_lomac = 1;
285 break;
286 default:
287 case '?':
288 usage();
289 }
290 }

--- 477 unchanged lines hidden ---