fsetxattr has been supported since Linux 2.4 and glibc 2.3.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
AC_HAVE_PWRITEV2
AC_HAVE_COPY_FILE_RANGE
-AC_HAVE_FSETXATTR
AC_NEED_INTERNAL_FSXATTR
AC_NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG
AC_NEED_INTERNAL_FSCRYPT_POLICY_V2
int tfd,
struct xfs_bstat *bstatp)
{
-#ifdef HAVE_FSETXATTR
struct xfs_fd txfd = XFS_FD_INIT(tfd);
struct stat tstatbuf;
int i;
if (dflag && diff)
fsrprintf(_("failed to match fork offset\n"));;
-#endif /* HAVE_FSETXATTR */
return 0;
}
HAVE_PWRITEV2 = @have_pwritev2@
HAVE_COPY_FILE_RANGE = @have_copy_file_range@
-HAVE_FSETXATTR = @have_fsetxattr@
NEED_INTERNAL_FSXATTR = @need_internal_fsxattr@
NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG = @need_internal_fscrypt_add_key_arg@
NEED_INTERNAL_FSCRYPT_POLICY_V2 = @need_internal_fscrypt_policy_v2@
ifeq ($(HAVE_MNTENT),yes)
PCFLAGS+= -DHAVE_MNTENT
endif
-ifeq ($(HAVE_FSETXATTR),yes)
-PCFLAGS+= -DHAVE_FSETXATTR
-endif
ifeq ($(NEED_INTERNAL_FSXATTR),yes)
PCFLAGS+= -DOVERRIDE_SYSTEM_FSXATTR
endif
AC_SUBST(have_copy_file_range)
])
-#
-# Check if we have a fsetxattr call
-#
-AC_DEFUN([AC_HAVE_FSETXATTR],
- [ AC_CHECK_DECL([fsetxattr],
- have_fsetxattr=yes,
- [],
- [#include <sys/types.h>
- #include <sys/xattr.h>]
- )
- AC_SUBST(have_fsetxattr)
- ])
-
#
# Check if we need to override the system struct fsxattr with
# the internal definition. This /only/ happens if the system