Back to index

glibc  2.9
listxattr.c File Reference
#include <errno.h>
#include <sys/xattr.h>
#include <hurd.h>
#include <hurd/xattr.h>

Go to the source code of this file.


ssize_t listxattr (const char *path, char *list, size_t size)

Function Documentation

ssize_t listxattr ( const char *  path,
char *  list,
size_t  size 

Definition at line 26 of file listxattr.c.

  error_t err;
  file_t port = __file_name_lookup (path, 0, 0);
  if (port == MACH_PORT_NULL)
    return -1;
  err = _hurd_xattr_list (port, list, &size);
  __mach_port_deallocate (__mach_task_self (), port);
  return err ? __hurd_fail (err) : size;

Here is the call graph for this function: