args.c (295260) | args.c (295261) |
---|---|
1/*- 2 * Copyright (c) 1991, 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 * Keith Muller of the University of California, San Diego and Lance 7 * Visser of Convex Computer Corporation. 8 * --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94"; 37#endif 38#endif /* not lint */ 39#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 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 * Keith Muller of the University of California, San Diego and Lance 7 * Visser of Convex Computer Corporation. 8 * --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94"; 37#endif 38#endif /* not lint */ 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/bin/dd/args.c 295260 2016-02-04 15:10:08Z trasz $"); | 40__FBSDID("$FreeBSD: head/bin/dd/args.c 295261 2016-02-04 15:21:01Z trasz $"); |
41 42#include <sys/types.h> 43 44#include <err.h> 45#include <errno.h> 46#include <inttypes.h> 47#include <limits.h> 48#include <signal.h> --- 329 unchanged lines hidden (view full) --- 378 case 'M': 379 case 'm': 380 mult = 1 << 20; 381 break; 382 case 'G': 383 case 'g': 384 mult = 1 << 30; 385 break; | 41 42#include <sys/types.h> 43 44#include <err.h> 45#include <errno.h> 46#include <inttypes.h> 47#include <limits.h> 48#include <signal.h> --- 329 unchanged lines hidden (view full) --- 378 case 'M': 379 case 'm': 380 mult = 1 << 20; 381 break; 382 case 'G': 383 case 'g': 384 mult = 1 << 30; 385 break; |
386 case 'T': 387 case 't': 388 mult = (uintmax_t)1 << 40; 389 break; 390 case 'P': 391 case 'p': 392 mult = (uintmax_t)1 << 50; 393 break; |
|
386 case 'W': 387 case 'w': 388 mult = sizeof(int); 389 break; 390 } 391 392 return (mult); 393} --- 106 unchanged lines hidden --- | 394 case 'W': 395 case 'w': 396 mult = sizeof(int); 397 break; 398 } 399 400 return (mult); 401} --- 106 unchanged lines hidden --- |