Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2013 17:48:29 GMT
From:      dpl@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r254760 - soc2013/dpl/head/contrib/xz/src/xz
Message-ID:  <201307131748.r6DHmTxw055972@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307131748.r6DHmTxw055972>