Back to index

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

Function Documentation

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

Definition at line 26 of file setxattr.c.

  error_t err;
  file_t port = __file_name_lookup (path, 0, 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 __hurd_fail (err);

Here is the call graph for this function: