Back to index

glibc  2.9
lsetxattr.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 lsetxattr (const char *path, const char *name, const void *value, size_t size, int flags)

Function Documentation

ssize_t lsetxattr ( const char *  path,
const char *  name,
const void *  value,
size_t  size,
int  flags 

Definition at line 27 of file lsetxattr.c.

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

Here is the call graph for this function: