summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2013-10-22 21:33:05 +0200
committerAndreas Gruenbacher <agruen@linbit.com>2013-11-18 21:38:12 +0100
commit216e7f8b6efb79dd05f47714ae22c4a93f8f6a85 (patch)
tree3e99161e355e89db04738c5b70de2572b6aab895
parent1c80572042ea4909d8487fa6eabf35d240e6c7f7 (diff)
downloadattr-216e7f8b6efb79dd05f47714ae22c4a93f8f6a85.tar.gz
Mark the Irix compatibility functions as deprecated
-rw-r--r--include/attributes.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/include/attributes.h b/include/attributes.h
index ba02025..7e07f11 100644
--- a/include/attributes.h
+++ b/include/attributes.h
@@ -120,9 +120,11 @@ typedef struct attr_multiop {
* The return value is -1 on error (w/errno set appropriately), 0 on success.
*/
extern int attr_get (const char *__path, const char *__attrname,
- char *__attrvalue, int *__valuelength, int __flags);
+ char *__attrvalue, int *__valuelength, int __flags)
+ __attribute__ ((deprecated ("Use getxattr or lgetxattr instead")));
extern int attr_getf (int __fd, const char *__attrname, char *__attrvalue,
- int *__valuelength, int __flags);
+ int *__valuelength, int __flags)
+ __attribute__ ((deprecated ("Use fgetxattr instead")));
/*
* Set the value of an attribute, creating the attribute if necessary.
@@ -130,18 +132,22 @@ extern int attr_getf (int __fd, const char *__attrname, char *__attrvalue,
*/
extern int attr_set (const char *__path, const char *__attrname,
const char *__attrvalue, const int __valuelength,
- int __flags);
+ int __flags)
+ __attribute__ ((deprecated ("Use setxattr or lsetxattr instead")));
extern int attr_setf (int __fd, const char *__attrname,
const char *__attrvalue, const int __valuelength,
- int __flags);
+ int __flags)
+ __attribute__ ((deprecated ("Use fsetxattr instead")));
/*
* Remove an attribute.
* The return value is -1 on error (w/errno set appropriately), 0 on success.
*/
extern int attr_remove (const char *__path, const char *__attrname,
- int __flags);
-extern int attr_removef (int __fd, const char *__attrname, int __flags);
+ int __flags)
+ __attribute__ ((deprecated ("Use removexattr or lremovexattr instead")));
+extern int attr_removef (int __fd, const char *__attrname, int __flags)
+ __attribute__ ((deprecated ("Use fremovexattr instead")));
/*
* List the names and sizes of the values of all the attributes of an object.
@@ -151,9 +157,11 @@ extern int attr_removef (int __fd, const char *__attrname, int __flags);
* 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 __flags, attrlist_cursor_t *__cursor)
+ __attribute__ ((deprecated ("Use listxattr or llistxattr instead")));
int attr_listf(int __fd, char *__buffer, const int __buffersize,
- int __flags, attrlist_cursor_t *__cursor);
+ int __flags, attrlist_cursor_t *__cursor)
+ __attribute__ ((deprecated ("Use flistxattr instead")));
/*
* Operate on multiple attributes of the same object simultaneously.
@@ -173,9 +181,11 @@ int attr_listf(int __fd, char *__buffer, const int __buffersize,
* to a ATTR_OP_GET are the same as the args to an attr_get() call.
*/
extern int attr_multi (const char *__path, attr_multiop_t *__oplist,
- int __count, int __flags);
+ int __count, int __flags)
+ __attribute__ ((deprecated ("Use getxattr, setxattr, listxattr, removexattr instead")));
extern int attr_multif (int __fd, attr_multiop_t *__oplist,
- int __count, int __flags);
+ int __count, int __flags)
+ __attribute__ ((deprecated ("Use getxattr, setxattr, listxattr, removexattr instead")));
#ifdef __cplusplus
}