From owner-svn-soc-all@FreeBSD.ORG Sat Jul 13 17:48:29 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E0E93A22 for ; Sat, 13 Jul 2013 17:48:29 +0000 (UTC) (envelope-from dpl@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) by mx1.freebsd.org (Postfix) with ESMTP id D26131ABE for ; Sat, 13 Jul 2013 17:48:29 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6DHmT4A055978 for ; Sat, 13 Jul 2013 17:48:29 GMT (envelope-from dpl@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r6DHmTxw055972 for svn-soc-all@FreeBSD.org; Sat, 13 Jul 2013 17:48:29 GMT (envelope-from dpl@FreeBSD.org) Date: Sat, 13 Jul 2013 17:48:29 GMT Message-Id: <201307131748.r6DHmTxw055972@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to dpl@FreeBSD.org using -f From: dpl@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r254760 - soc2013/dpl/head/contrib/xz/src/xz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2013 17:48:29 -0000 Author: dpl Date: Sat Jul 13 17:48:29 2013 New Revision: 254760 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254760 Log: Put file_pair definition here, since it is used in coder.h also. Modified: soc2013/dpl/head/contrib/xz/src/xz/private.h Modified: soc2013/dpl/head/contrib/xz/src/xz/private.h ============================================================================== --- soc2013/dpl/head/contrib/xz/src/xz/private.h Sat Jul 13 17:47:22 2013 (r254759) +++ soc2013/dpl/head/contrib/xz/src/xz/private.h Sat Jul 13 17:48:29 2013 (r254760) @@ -52,6 +52,41 @@ # define STDERR_FILENO (fileno(stderr)) #endif +typedef struct { + /// Name of the source filename (as given on the command line) or + /// pointer to static "(stdin)" when reading from standard input. + const char *src_name; + + /// Destination filename converted from src_name or pointer to static + /// "(stdout)" when writing to standard output. + char *dest_name; + + /// File descriptor of the source file + int src_fd; + + /// File descriptor of the target file + int dest_fd; + + /// True once end of the source file has been detected. + bool src_eof; + + /// If true, we look for long chunks of zeros and try to create + /// a sparse file. + bool dest_try_sparse; + + /// This is used only if dest_try_sparse is true. This holds the + /// number of zero bytes we haven't written out, because we plan + /// to make that byte range a sparse chunk. + off_t dest_pending_sparse; + + /// Stat of the source file. + struct stat src_st; + + /// Stat of the destination file. + struct stat dest_st; +} file_pair; + + #include "main.h" #include "coder.h" #include "message.h"