List extended attribute names.
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_listxattr, except that an open file descriptor (as returned by sys_open) is interrogated in place of path.
Arguments
eax |
234 |
ebx |
An open file descriptor. |
ecx |
Pointer to a buffer which will receive the list.
The list is the set of (null-terminated) names, one after the other. Names of extended attributes to which the calling process does not have access may be omitted from the list.
A single extended attribute name is a simple null-terminated string. The name includes a namespace prefix; there may be several, disjoint namespaces associated with an individual inode.
The list of names is returned as an unordered array of null-terminated character strings (attribute names are separated by null bytes ('\0')), like this:
user.name1\0system.name1\0user.name2\0
Filesystems like ext2, ext3 and XFS which implement POSIX ACLs using extended attributes, might return a list like this:
system.posix_acl_access\0system.posix_acl_default\0 |
edx |
Size of the buffer pointed by edx. If this value is 0, then the current size of the list of extended attribute names will be returned without actually filling the buffer. |
Return values
If the system call succeeds the return value is the size of the extended attribute name list.
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 |