Back to index

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

Go to the source code of this file.


ssize_t lgetxattr (const char *path, const char *name, void *value, size_t size)

Function Documentation

ssize_t lgetxattr ( const char *  path,
const char *  name,
void *  value,
size_t  size 

Definition at line 27 of file lgetxattr.c.

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

Here is the call graph for this function: