Deleted Added
full compact
args.c (112265) args.c (126667)
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 *

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

36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94";
41#endif
42#endif /* not lint */
43#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 *

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

36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94";
41#endif
42#endif /* not lint */
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD: head/bin/dd/args.c 112265 2003-03-15 13:34:48Z ru $");
44__FBSDID("$FreeBSD: head/bin/dd/args.c 126667 2004-03-05 19:35:51Z phk $");
45
46#include <sys/types.h>
47
48#include <err.h>
49#include <errno.h>
50#include <inttypes.h>
51#include <limits.h>
52#include <stdlib.h>

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

294 { "ibm", C_EBCDIC, C_ASCII, a2ibm_POSIX },
295 { "lcase", C_LCASE, C_UCASE, NULL },
296 { "noerror", C_NOERROR, 0, NULL },
297 { "notrunc", C_NOTRUNC, 0, NULL },
298 { "oldascii", C_ASCII, C_EBCDIC, e2a_32V },
299 { "oldebcdic", C_EBCDIC, C_ASCII, a2e_32V },
300 { "oldibm", C_EBCDIC, C_ASCII, a2ibm_32V },
301 { "osync", C_OSYNC, C_BS, NULL },
45
46#include <sys/types.h>
47
48#include <err.h>
49#include <errno.h>
50#include <inttypes.h>
51#include <limits.h>
52#include <stdlib.h>

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

294 { "ibm", C_EBCDIC, C_ASCII, a2ibm_POSIX },
295 { "lcase", C_LCASE, C_UCASE, NULL },
296 { "noerror", C_NOERROR, 0, NULL },
297 { "notrunc", C_NOTRUNC, 0, NULL },
298 { "oldascii", C_ASCII, C_EBCDIC, e2a_32V },
299 { "oldebcdic", C_EBCDIC, C_ASCII, a2e_32V },
300 { "oldibm", C_EBCDIC, C_ASCII, a2ibm_32V },
301 { "osync", C_OSYNC, C_BS, NULL },
302 { "pareven", C_PAREVEN, C_PARODD|C_PARSET|C_PARNONE, NULL},
303 { "parnone", C_PARNONE, C_PARODD|C_PARSET|C_PAREVEN, NULL},
304 { "parodd", C_PARODD, C_PAREVEN|C_PARSET|C_PARNONE, NULL},
305 { "parset", C_PARSET, C_PARODD|C_PAREVEN|C_PARNONE, NULL},
302 { "sparse", C_SPARSE, 0, NULL },
303 { "swab", C_SWAB, 0, NULL },
304 { "sync", C_SYNC, 0, NULL },
305 { "ucase", C_UCASE, C_LCASE, NULL },
306 { "unblock", C_UNBLOCK, C_BLOCK, NULL },
307};
308
309static void

--- 165 unchanged lines hidden ---
306 { "sparse", C_SPARSE, 0, NULL },
307 { "swab", C_SWAB, 0, NULL },
308 { "sync", C_SYNC, 0, NULL },
309 { "ucase", C_UCASE, C_LCASE, NULL },
310 { "unblock", C_UNBLOCK, C_BLOCK, NULL },
311};
312
313static void

--- 165 unchanged lines hidden ---