cpio.c (104548) | cpio.c (108533) |
---|---|
1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 27 unchanged lines hidden (view full) --- 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)cpio.c 8.1 (Berkeley) 5/31/93"; 41#endif 42#endif /* not lint */ 43#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 27 unchanged lines hidden (view full) --- 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)cpio.c 8.1 (Berkeley) 5/31/93"; 41#endif 42#endif /* not lint */ 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/bin/pax/cpio.c 104548 2002-10-06 03:20:27Z tjr $"); | 44__FBSDID("$FreeBSD: head/bin/pax/cpio.c 108533 2003-01-01 18:49:04Z schweikh $"); |
45 46#include <sys/types.h> 47#include <sys/time.h> 48#include <sys/stat.h> 49#include <string.h> 50#include <stdint.h> 51#include <stdio.h> 52#include <unistd.h> --- 793 unchanged lines hidden (view full) --- 846} 847 848/* 849 * Routines common to the old binary header cpio 850 */ 851 852/* 853 * bcpio_id() | 45 46#include <sys/types.h> 47#include <sys/time.h> 48#include <sys/stat.h> 49#include <string.h> 50#include <stdint.h> 51#include <stdio.h> 52#include <unistd.h> --- 793 unchanged lines hidden (view full) --- 846} 847 848/* 849 * Routines common to the old binary header cpio 850 */ 851 852/* 853 * bcpio_id() |
854 * determine if a block given to us is a old binary cpio header | 854 * determine if a block given to us is an old binary cpio header |
855 * (with/without header byte swapping) 856 * Return: 857 * 0 if a valid header, -1 otherwise 858 */ 859 860int 861bcpio_id(char *blk, int size) 862{ --- 10 unchanged lines hidden (view full) --- 873 ++swp_head; 874 return(0); 875 } 876 return(-1); 877} 878 879/* 880 * bcpio_rd() | 855 * (with/without header byte swapping) 856 * Return: 857 * 0 if a valid header, -1 otherwise 858 */ 859 860int 861bcpio_id(char *blk, int size) 862{ --- 10 unchanged lines hidden (view full) --- 873 ++swp_head; 874 return(0); 875 } 876 return(-1); 877} 878 879/* 880 * bcpio_rd() |
881 * determine if a buffer is a old binary archive entry. (it may have byte | 881 * determine if a buffer is an old binary archive entry. (It may have byte |
882 * swapped header) convert and store the values in the ARCHD parameter. 883 * This is a very old header format and should not really be used. 884 * Return: 885 * 0 if a valid header, -1 otherwise. 886 */ 887 888int 889bcpio_rd(ARCHD *arcn, char *buf) --- 269 unchanged lines hidden --- | 882 * swapped header) convert and store the values in the ARCHD parameter. 883 * This is a very old header format and should not really be used. 884 * Return: 885 * 0 if a valid header, -1 otherwise. 886 */ 887 888int 889bcpio_rd(ARCHD *arcn, char *buf) --- 269 unchanged lines hidden --- |