socsvn commit: r254760 - soc2013/dpl/head/contrib/xz/src/xz

dpl at FreeBSD.org dpl at FreeBSD.org
Sat Jul 13 17:48:29 UTC 2013


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"


More information about the svn-soc-all mailing list