Retrieves an extended attribute value.
Extended attributes are name:value pairs associated with inodes (files, directories, symlinks, etc). They are extensions to the normal attributes which are associated with all inodes in the system (i.e. the sys_stat data).
This system call is identical to sys_getxattr except that an open file descriptor (as returned by sys_open) is interrogated in place of path.
Arguments
eax |
231 |
ebx |
An open file descriptor. |
ecx |
Pointer to a null-terminated string that specifies the name.
The name
attribute includes a namespace prefix; there may be several, disjoint namespaces associated with an individual inode. |
edx |
Pointer to a buffer which will receive the value data. |
esi |
Size of the buffer pointed by edx. If this value is 0, then the current size of the named extended attribute will be returned without actually filling the buffer. |
Return values
If the system call succeeds the return value is a positive number indicating the size of the extended attribute value.
If the system call fails the return value is one of the following errno values:
-ENOATTR |
The named attribute does not exist, or the process has no access to this attribute. |
-ERANGE |
Size of the buffer is too small to hold the result. |
-ENOTSUP |
Extended attributes are not supported by the filesystem, or are disabled. |
-EBADF |
File descriptor specified by ebx is invalid. |
-ENOMEM |
Out of memory (i.e. kernel memory). |
|
Remarks
n/a
Compatibility
n/a |