~ubuntu-branches/ubuntu/quantal/cmake/quantal

« back to all changes in this revision

Viewing changes to Utilities/cmlibarchive/libarchive/archive_read_disk_private.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-04-30 12:14:32 UTC
  • mfrom: (3.1.30 sid)
  • Revision ID: package-import@ubuntu.com-20120430121432-rqh2fjl3zcblehh5
Tags: 2.8.8-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add xfail_compiler_flag.diff: Mark compiler flag tests as expected
    failures.
  - Add ubuntu_qt_import_dir_variable.diff: define QT_IMPORTS_DIR even
    when that dir does not exist.
* Remove increase_ctest_test_timeout.diff, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
24
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
25
 *
26
 
 * $FreeBSD$
 
26
 * $FreeBSD: head/lib/libarchive/archive_read_disk_private.h 201105 2009-12-28 03:20:54Z kientzle $
27
27
 */
28
28
 
29
29
#ifndef __LIBARCHIVE_BUILD
33
33
#ifndef ARCHIVE_READ_DISK_PRIVATE_H_INCLUDED
34
34
#define ARCHIVE_READ_DISK_PRIVATE_H_INCLUDED
35
35
 
 
36
struct tree;
 
37
 
36
38
struct archive_read_disk {
37
 
    struct archive  archive;
38
 
 
39
 
    /*
40
 
     * Symlink mode is one of 'L'ogical, 'P'hysical, or 'H'ybrid,
41
 
     * following an old BSD convention.  'L' follows all symlinks,
42
 
     * 'P' follows none, 'H' follows symlinks only for the first
43
 
     * item.
44
 
     */
45
 
    char    symlink_mode;
46
 
 
47
 
    /*
48
 
     * Since symlink interaction changes, we need to track whether
49
 
     * we're following symlinks for the current item.  'L' mode above
50
 
     * sets this true, 'P' sets it false, 'H' changes it as we traverse.
51
 
     */
52
 
    char    follow_symlinks;  /* Either 'L' or 'P'. */
53
 
 
54
 
    const char * (*lookup_gname)(void *private, gid_t gid);
55
 
    void    (*cleanup_gname)(void *private);
56
 
    void     *lookup_gname_data;
57
 
    const char * (*lookup_uname)(void *private, gid_t gid);
58
 
    void    (*cleanup_uname)(void *private);
59
 
    void     *lookup_uname_data;
 
39
        struct archive  archive;
 
40
 
 
41
        /*
 
42
         * Symlink mode is one of 'L'ogical, 'P'hysical, or 'H'ybrid,
 
43
         * following an old BSD convention.  'L' follows all symlinks,
 
44
         * 'P' follows none, 'H' follows symlinks only for the first
 
45
         * item.
 
46
         */
 
47
        char    symlink_mode;
 
48
 
 
49
        /*
 
50
         * Since symlink interaction changes, we need to track whether
 
51
         * we're following symlinks for the current item.  'L' mode above
 
52
         * sets this true, 'P' sets it false, 'H' changes it as we traverse.
 
53
         */
 
54
        char    follow_symlinks;  /* Either 'L' or 'P'. */
 
55
 
 
56
        /* Directory traversals. */
 
57
        struct tree *tree;
 
58
 
 
59
        /* Set 1 if users request to restore atime . */
 
60
        int              restore_time;
 
61
        int              entry_wd_fd;
 
62
 
 
63
        const char * (*lookup_gname)(void *private, int64_t gid);
 
64
        void    (*cleanup_gname)(void *private);
 
65
        void     *lookup_gname_data;
 
66
        const char * (*lookup_uname)(void *private, int64_t uid);
 
67
        void    (*cleanup_uname)(void *private);
 
68
        void     *lookup_uname_data;
60
69
};
61
70
 
62
71
#endif