From 4de9557258b861a2107951316063fd383894194d Mon Sep 17 00:00:00 2001 From: Derrik Pates Date: Thu, 19 May 2011 09:08:48 -0600 Subject: [PATCH] Move XATTR_{CREATE,REPLACE} into the XS code, so we can get the definitions of the constants from sys/xattr.h instead of setting them to arbitrary platform-specific constant values. --- Fuse.pm | 10 ---------- Fuse.xs | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Fuse.pm b/Fuse.pm index 1d83039..f8200e8 100755 --- a/Fuse.pm +++ b/Fuse.pm @@ -62,16 +62,6 @@ sub AUTOLOAD { goto &$AUTOLOAD; } -sub XATTR_CREATE { - # See . - return 1; -} - -sub XATTR_REPLACE { - # See . - return 2; -} - bootstrap Fuse $VERSION; sub main { diff --git a/Fuse.xs b/Fuse.xs index cb24269..8f448a8 100755 --- a/Fuse.xs +++ b/Fuse.xs @@ -3,6 +3,7 @@ #include "perl.h" #include "XSUB.h" +#include #include /* Determine if threads support should be included */ @@ -1575,6 +1576,20 @@ fuse_version() OUTPUT: RETVAL +SV * +XATTR_CREATE() + CODE: + RETVAL = newSViv(XATTR_CREATE); + OUTPUT: + RETVAL + +SV * +XATTR_REPLACE() + CODE: + RETVAL = newSViv(XATTR_REPLACE); + OUTPUT: + RETVAL + void perl_fuse_main(...) PREINIT: -- 2.20.1