Deleted Added
full compact
du.c (87216) du.c (90389)
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

--- 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 const char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
46#endif
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 * Chris Newcomb.
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 const char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
46#endif
47static const char rcsid[] =
48 "$FreeBSD: head/usr.bin/du/du.c 87216 2001-12-02 13:48:40Z markm $";
48 "$FreeBSD: head/usr.bin/du/du.c 90389 2002-02-08 07:49:13Z peter $";
49#endif /* not lint */
50
51
52#include <sys/param.h>
53#include <sys/queue.h>
54#include <sys/stat.h>
55
56#include <err.h>

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

279
280 if (listall || p->fts_level == 0) {
281 if (hflag) {
282 (void) prthumanval(howmany(p->fts_statp->st_blocks,
283 blocksize));
284 (void) printf("\t%s\n", p->fts_path);
285 } else {
286 (void) printf("%qd\t%s\n",
49#endif /* not lint */
50
51
52#include <sys/param.h>
53#include <sys/queue.h>
54#include <sys/stat.h>
55
56#include <err.h>

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

279
280 if (listall || p->fts_level == 0) {
281 if (hflag) {
282 (void) prthumanval(howmany(p->fts_statp->st_blocks,
283 blocksize));
284 (void) printf("\t%s\n", p->fts_path);
285 } else {
286 (void) printf("%qd\t%s\n",
287 howmany(p->fts_statp->st_blocks, blocksize),
287 (long long)howmany(p->fts_statp->st_blocks, blocksize),
288 p->fts_path);
289 }
290 }
291
292 p->fts_parent->fts_number += p->fts_statp->st_blocks;
293 }
294 savednumber = p->fts_parent->fts_number;
295 }

--- 142 unchanged lines hidden ---
288 p->fts_path);
289 }
290 }
291
292 p->fts_parent->fts_number += p->fts_statp->st_blocks;
293 }
294 savednumber = p->fts_parent->fts_number;
295 }

--- 142 unchanged lines hidden ---