du.c (ba174a5e38b1ab764c4a36ef4dd83e80c4add148) | du.c (2966d28c322dcfa4b9db2558da0b91839e7798b9) |
---|---|
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 --- 126 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': | 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 --- 126 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("BLOCKSIZE=512"); | 143 setenv("BLOCKSIZE", "512", 1); |
144 hflag = 1; 145 break; 146 case 'k': 147 hflag = 0; | 144 hflag = 1; 145 break; 146 case 'k': 147 hflag = 0; |
148 putenv("BLOCKSIZE=1024"); | 148 setenv("BLOCKSIZE", "1024", 1); |
149 break; 150 case 'm': 151 hflag = 0; | 149 break; 150 case 'm': 151 hflag = 0; |
152 putenv("BLOCKSIZE=1048576"); | 152 setenv("BLOCKSIZE", "1048576", 1); |
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 --- |