removexattr

Removes the specified extended attribute from a file.

Syntax

int removexattr (
   const char  *path,
   const char  *name
);

Parameters

path

Points to the name of the file to remove the extended attribute from.

name

Points to the extended attribute to remove.

Return Values

On success, returns zero. On failure, returns -1 and sets errno.

Remarks

Extended attributes are name/value pairs that are associated with files, directories, symbolic links, etc. They are extensions to the normal attributes associated with all files in the system.

An extended attribute name is a simple NULL-terminated string. The name includes a namespace prefix. There might be several namespaces associated with an individual extended attribute.

IMPORTANT:This function does not remove the netware.metadata or netware.metadata2 extended attribute, but it does remove all the trustees and directory space restrictions associated with the file or directory.