]> Dogcows Code - chaz/tar/blob - src/xattrs.h
build: new configure option --enable-gcc-warnings
[chaz/tar] / src / xattrs.h
1 /* Support for extended attributes.
2
3 Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software
4 Foundation, Inc.
5
6 Written by James Antill, on 2006-07-27.
7
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 3, or (at your option) any later
11 version.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16 Public License for more details.
17
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22
23 #ifndef GUARD_XATTTRS_H
24 #define GUARD_XATTTRS_H
25
26 /* Add include/exclude fnmatch pattern for xattr key domain. Set INCL parameter
27 to true/false if you want to add include/exclude pattern */
28 extern void xattrs_mask_add (const char *mask, bool incl);
29
30 /* clear helping structures when tar finishes */
31 extern void xattrs_clear_setup (void);
32
33 extern void xattrs_acls_get (int parentfd, char const *file_name,
34 struct tar_stat_info *st, int fd, int xisfile);
35 extern void xattrs_selinux_get (int parentfd, char const *file_name,
36 struct tar_stat_info *st, int fd);
37 extern void xattrs_xattrs_get (int parentfd, char const *file_name,
38 struct tar_stat_info *st, int fd);
39
40 extern void xattrs_acls_set (struct tar_stat_info const *st,
41 char const *file_name, char typeflag);
42 extern void xattrs_selinux_set (struct tar_stat_info const *st,
43 char const *file_name, char typeflag);
44 extern void xattrs_xattrs_set (struct tar_stat_info const *st,
45 char const *file_name, char typeflag,
46 int later_run);
47
48 extern void xattrs_print_char (struct tar_stat_info const *st, char *output);
49 extern void xattrs_print (struct tar_stat_info const *st);
50
51 #endif /* GUARD_XATTTRS_H */
This page took 0.042663 seconds and 5 git commands to generate.