du.c (169113) | du.c (169177) |
---|---|
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 --- 32 unchanged lines hidden (view full) --- 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 47#endif /* not lint */ 48#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 --- 32 unchanged lines hidden (view full) --- 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 47#endif /* not lint */ 48#include <sys/cdefs.h> |
49__FBSDID("$FreeBSD: head/usr.bin/du/du.c 169113 2007-04-30 05:14:29Z ache $"); | 49__FBSDID("$FreeBSD: head/usr.bin/du/du.c 169177 2007-05-01 16:02:44Z ache $"); |
50 51#include <sys/param.h> 52#include <sys/queue.h> 53#include <sys/stat.h> 54 55#include <err.h> 56#include <errno.h> 57#include <fnmatch.h> --- 77 unchanged lines hidden (view full) --- 135 warnx("invalid argument to option d: %s", optarg); 136 usage(); 137 } 138 break; 139 case 'c': 140 cflag = 1; 141 break; 142 case 'h': | 50 51#include <sys/param.h> 52#include <sys/queue.h> 53#include <sys/stat.h> 54 55#include <err.h> 56#include <errno.h> 57#include <fnmatch.h> --- 77 unchanged lines hidden (view full) --- 135 warnx("invalid argument to option d: %s", optarg); 136 usage(); 137 } 138 break; 139 case 'c': 140 cflag = 1; 141 break; 142 case 'h': |
143 putenv(strdup("BLOCKSIZE=512")); | 143 putenv("BLOCKSIZE=512"); |
144 hflag = 1; 145 break; 146 case 'k': 147 hflag = 0; | 144 hflag = 1; 145 break; 146 case 'k': 147 hflag = 0; |
148 putenv(strdup("BLOCKSIZE=1024")); | 148 putenv("BLOCKSIZE=1024"); |
149 break; 150 case 'm': 151 hflag = 0; | 149 break; 150 case 'm': 151 hflag = 0; |
152 putenv(strdup("BLOCKSIZE=1048576")); | 152 putenv("BLOCKSIZE=1048576"); |
153 break; 154 case 'n': 155 nodumpflag = 1; 156 break; 157 case 'r': /* Compatibility. */ 158 break; 159 case 'x': 160 ftsoptions |= FTS_XDEV; --- 328 unchanged lines hidden --- | 153 break; 154 case 'n': 155 nodumpflag = 1; 156 break; 157 case 'r': /* Compatibility. */ 158 break; 159 case 'x': 160 ftsoptions |= FTS_XDEV; --- 328 unchanged lines hidden --- |