archive_write_set_format_cpio.c (228763) | archive_write_set_format_cpio.c (228773) |
---|---|
1/*- 2 * Copyright (c) 2003-2007 Tim Kientzle 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include "archive_platform.h" | 1/*- 2 * Copyright (c) 2003-2007 Tim Kientzle 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include "archive_platform.h" |
27__FBSDID("$FreeBSD: head/contrib/libarchive/libarchive/archive_write_set_format_cpio.c 228763 2011-12-21 11:13:29Z mm $"); | 27__FBSDID("$FreeBSD: head/contrib/libarchive/libarchive/archive_write_set_format_cpio.c 228773 2011-12-21 15:18:52Z mm $"); |
28 29#ifdef HAVE_ERRNO_H 30#include <errno.h> 31#endif 32#include <stdio.h> 33#ifdef HAVE_STDLIB_H 34#include <stdlib.h> 35#endif --- 33 unchanged lines hidden (view full) --- 69 char c_mode[6]; 70 char c_uid[6]; 71 char c_gid[6]; 72 char c_nlink[6]; 73 char c_rdev[6]; 74 char c_mtime[11]; 75 char c_namesize[6]; 76 char c_filesize[11]; | 28 29#ifdef HAVE_ERRNO_H 30#include <errno.h> 31#endif 32#include <stdio.h> 33#ifdef HAVE_STDLIB_H 34#include <stdlib.h> 35#endif --- 33 unchanged lines hidden (view full) --- 69 char c_mode[6]; 70 char c_uid[6]; 71 char c_gid[6]; 72 char c_nlink[6]; 73 char c_rdev[6]; 74 char c_mtime[11]; 75 char c_namesize[6]; 76 char c_filesize[11]; |
77}; | 77} __packed; |
78 79/* 80 * Set output format to 'cpio' format. 81 */ 82int 83archive_write_set_format_cpio(struct archive *_a) 84{ 85 struct archive_write *a = (struct archive_write *)_a; --- 259 unchanged lines hidden --- | 78 79/* 80 * Set output format to 'cpio' format. 81 */ 82int 83archive_write_set_format_cpio(struct archive *_a) 84{ 85 struct archive_write *a = (struct archive_write *)_a; --- 259 unchanged lines hidden --- |