Deleted Added
full compact
du.c (227335) du.c (228356)
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 * Chris Newcomb.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

37#endif /* not lint */
38
39#ifndef lint
40#if 0
41static const char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
42#endif
43#endif /* not lint */
44#include <sys/cdefs.h>
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 * Chris Newcomb.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

37#endif /* not lint */
38
39#ifndef lint
40#if 0
41static const char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
42#endif
43#endif /* not lint */
44#include <sys/cdefs.h>
45__FBSDID("$FreeBSD: head/usr.bin/du/du.c 227335 2011-11-08 11:36:46Z ed $");
45__FBSDID("$FreeBSD: head/usr.bin/du/du.c 228356 2011-12-09 02:30:56Z gjb $");
46
47#include <sys/param.h>
48#include <sys/queue.h>
49#include <sys/stat.h>
50
51#include <err.h>
52#include <errno.h>
53#include <fnmatch.h>

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

494
495 (void)printf("%4s", buf);
496}
497
498static void
499usage(void)
500{
501 (void)fprintf(stderr,
46
47#include <sys/param.h>
48#include <sys/queue.h>
49#include <sys/stat.h>
50
51#include <err.h>
52#include <errno.h>
53#include <fnmatch.h>

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

494
495 (void)printf("%4s", buf);
496}
497
498static void
499usage(void)
500{
501 (void)fprintf(stderr,
502 "usage: du [-A] [-H | -L | -P] [-a | -s | -d depth] [-c] "
503 "[-l] [-h | -k | -m | -B bsize] [-n] [-x] [-I mask] "
504 "[file ...]\n");
502 "usage: du [-Aclnx] [-H | -L | -P] [-h | -k | -m ] "
503 "[-a | -s | -d depth] [-B blocksize] [-I mask] "
504 "[-t threshold] [file ...]\n");
505 exit(EX_USAGE);
506}
507
508static void
509ignoreadd(const char *mask)
510{
511 struct ignentry *ign;
512

--- 41 unchanged lines hidden ---
505 exit(EX_USAGE);
506}
507
508static void
509ignoreadd(const char *mask)
510{
511 struct ignentry *ign;
512

--- 41 unchanged lines hidden ---