dd.c (90108) | dd.c (91079) |
---|---|
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 * --- 32 unchanged lines hidden (view full) --- 41 The Regents of the University of California. All rights reserved.\n"; 42#endif /* not lint */ 43 44#ifndef lint 45#if 0 46static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94"; 47#endif 48static const char rcsid[] = | 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 * --- 32 unchanged lines hidden (view full) --- 41 The Regents of the University of California. All rights reserved.\n"; 42#endif /* not lint */ 43 44#ifndef lint 45#if 0 46static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94"; 47#endif 48static const char rcsid[] = |
49 "$FreeBSD: head/bin/dd/dd.c 90108 2002-02-02 06:24:13Z imp $"; | 49 "$FreeBSD: head/bin/dd/dd.c 91079 2002-02-22 20:51:00Z markm $"; |
50#endif /* not lint */ 51 52#include <sys/param.h> 53#include <sys/stat.h> 54#include <sys/conf.h> 55#include <sys/disklabel.h> 56#include <sys/filio.h> | 50#endif /* not lint */ 51 52#include <sys/param.h> 53#include <sys/stat.h> 54#include <sys/conf.h> 55#include <sys/disklabel.h> 56#include <sys/filio.h> |
57#include <sys/time.h> | |
58 59#include <ctype.h> 60#include <err.h> 61#include <errno.h> 62#include <fcntl.h> 63#include <locale.h> 64#include <stdio.h> 65#include <stdlib.h> --- 7 unchanged lines hidden (view full) --- 73static void dd_in(void); 74static void getfdtype(IO *); 75static void setup(void); 76 77IO in, out; /* input/output state */ 78STAT st; /* statistics */ 79void (*cfunc)(void); /* conversion function */ 80u_quad_t cpy_cnt; /* # of blocks to copy */ | 57 58#include <ctype.h> 59#include <err.h> 60#include <errno.h> 61#include <fcntl.h> 62#include <locale.h> 63#include <stdio.h> 64#include <stdlib.h> --- 7 unchanged lines hidden (view full) --- 72static void dd_in(void); 73static void getfdtype(IO *); 74static void setup(void); 75 76IO in, out; /* input/output state */ 77STAT st; /* statistics */ 78void (*cfunc)(void); /* conversion function */ 79u_quad_t cpy_cnt; /* # of blocks to copy */ |
81off_t pending = 0; /* pending seek if sparse */ 82u_int ddflags; /* conversion options */ | 80static off_t pending = 0; /* pending seek if sparse */ 81u_int ddflags = 0; /* conversion options */ |
83size_t cbsz; /* conversion block size */ 84quad_t files_cnt = 1; /* # of files to copy */ 85const u_char *ctab; /* conversion table */ 86 87int 88main(int argc __unused, char *argv[]) 89{ 90 (void)setlocale(LC_CTYPE, ""); --- 375 unchanged lines hidden --- | 82size_t cbsz; /* conversion block size */ 83quad_t files_cnt = 1; /* # of files to copy */ 84const u_char *ctab; /* conversion table */ 85 86int 87main(int argc __unused, char *argv[]) 88{ 89 (void)setlocale(LC_CTYPE, ""); --- 375 unchanged lines hidden --- |