position.c (25317) | position.c (35773) |
---|---|
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 * --- 19 unchanged lines hidden (view full) --- 28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. | 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 * --- 19 unchanged lines hidden (view full) --- 28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. |
36 * 37 * $Id: position.c,v 1.5 1997/02/22 14:02:48 peter Exp $ | |
38 */ 39 40#ifndef lint | 36 */ 37 38#ifndef lint |
39#if 0 |
|
41static char const sccsid[] = "@(#)position.c 8.3 (Berkeley) 4/2/94"; | 40static char const sccsid[] = "@(#)position.c 8.3 (Berkeley) 4/2/94"; |
41#endif 42static const char rcsid[] = 43 "$Id$"; |
|
42#endif /* not lint */ 43 | 44#endif /* not lint */ 45 |
44#include <sys/types.h> 45#include <sys/stat.h> 46#include <sys/ioctl.h> | |
47#include <sys/mtio.h> 48 49#include <err.h> | 46#include <sys/mtio.h> 47 48#include <err.h> |
50#include <errno.h> 51#include <string.h> | |
52#include <unistd.h> 53 54#include "dd.h" 55#include "extern.h" 56 57/* 58 * Position input/output data streams before starting the copy. Device type 59 * dependent. Seekable devices use lseek, and the rest position by reading. --- 109 unchanged lines hidden --- | 49#include <unistd.h> 50 51#include "dd.h" 52#include "extern.h" 53 54/* 55 * Position input/output data streams before starting the copy. Device type 56 * dependent. Seekable devices use lseek, and the rest position by reading. --- 109 unchanged lines hidden --- |