diff options
author | Nathan Scott <nathans@sgi.com> | 2006-01-12 23:53:25 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-01-12 23:53:25 +0000 |
commit | 5850a810d635e16a5a7739d9435c1f8ae054d6a0 (patch) | |
tree | c48692700f2d326510d762c72804b7b198700570 /include | |
parent | d61ec00a035fde2352e26b1352399fd4469b318c (diff) | |
download | attr-5850a810d635e16a5a7739d9435c1f8ae054d6a0.tar.gz |
Implement the list_attr IRIX API on top of the Linux API. For fsstress.
Diffstat (limited to 'include')
-rw-r--r-- | include/attributes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/attributes.h b/include/attributes.h index 3afd9ac..006114b 100644 --- a/include/attributes.h +++ b/include/attributes.h @@ -144,6 +144,18 @@ extern int attr_remove (const char *__path, const char *__attrname, extern int attr_removef (int __fd, const char *__attrname, int __flags); /* + * List the names and sizes of the values of all the attributes of an object. + * "Cursor" must be allocated and zeroed before the first call, it is used + * to maintain context between system calls if all the attribute names won't + * fit into the buffer on the first system call. + * The return value is -1 on error (w/errno set appropriately), 0 on success. + */ +int attr_list(const char *__path, char *__buffer, const int __buffersize, + int __flags, attrlist_cursor_t *__cursor); +int attr_listf(int __fd, char *__buffer, const int __buffersize, + int __flags, attrlist_cursor_t *__cursor); + +/* * Operate on multiple attributes of the same object simultaneously. * * This call will save on system call overhead when many attributes are |