File-ExtAttr
view release on metacpan or search on metacpan
void
_listfattr (path, fd, flags = 0)
const char *path
int fd
HV * flags
PREINIT:
ssize_t size, ret;
char *namebuf = NULL;
char *nameptr;
PPCODE:
if(fd == -1)
size = portable_listxattr(path, NULL, 0, flags);
else
size = portable_flistxattr(fd, NULL, 0, flags);
if (size < 0)
{
errno = -(int) size;
XSRETURN_UNDEF;
} else if (size == 0)
void
_listfattrns (path, fd, flags = 0)
const char *path
int fd
HV * flags
PREINIT:
ssize_t size, ret;
char *namebuf = NULL;
char *nameptr;
PPCODE:
if(fd == -1)
size = portable_listxattrns(path, NULL, 0, flags);
else
size = portable_flistxattrns(fd, NULL, 0, flags);
if (size < 0)
{
errno = -(int) size;
XSRETURN_UNDEF;
} else if (size == 0)
( run in 0.448 second using v1.01-cache-2.11-cpan-5511b514fd6 )