mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-25 19:10:46 +00:00
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
$HOME/src/gnu/gnulib/build-aux/update-copyright \
$(git ls-files | sed -e '/^gnulib$/d
/^paxutils$/d
/^COPYING$/d
/\/fdl.texi$/d')
sed -i '2000,${
/^Copyright @copyright/d
s/^[0-9]*--\(2026 Free Software Foundation, Inc.\)/Copyright (C) \1/
}' doc/tar.texi
48 lines
2.0 KiB
C
48 lines
2.0 KiB
C
/* Support for extended attributes.
|
|
|
|
Copyright (C) 2006-2026 Free Software Foundation, Inc.
|
|
|
|
This file is part of GNU tar.
|
|
|
|
GNU tar is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
GNU tar is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
Written by James Antill, on 2006-07-27. */
|
|
|
|
#ifndef GUARD_XATTTRS_H
|
|
#define GUARD_XATTTRS_H
|
|
|
|
/* Add include/exclude fnmatch pattern for xattr key domain. Set INCL parameter
|
|
to true/false if you want to add include/exclude pattern */
|
|
extern void xattrs_mask_add (const char *mask, bool incl);
|
|
|
|
extern void xattrs_acls_get (int parentfd, char const *file_name,
|
|
struct tar_stat_info *st, bool xisfile);
|
|
extern void xattrs_selinux_get (int parentfd, char const *file_name,
|
|
struct tar_stat_info *st, int fd);
|
|
extern void xattrs_xattrs_get (int parentfd, char const *file_name,
|
|
struct tar_stat_info *st, int fd);
|
|
|
|
extern void xattrs_acls_set (struct tar_stat_info const *st,
|
|
char const *file_name, char typeflag);
|
|
extern void xattrs_selinux_set (struct tar_stat_info const *st,
|
|
char const *file_name, char typeflag);
|
|
extern void xattrs_xattrs_set (struct tar_stat_info const *st,
|
|
char const *file_name, char typeflag,
|
|
bool later_run);
|
|
|
|
extern void xattrs_print_char (struct tar_stat_info const *st, char *output);
|
|
extern void xattrs_print (struct tar_stat_info const *st);
|
|
|
|
#endif /* GUARD_XATTTRS_H */
|