aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/extattr.h
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2013-04-02 05:30:41 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2013-04-02 05:30:41 +0000
commite324bf91e8d2dd177c46733ea6df3efcabdc026f (patch)
tree9874e26df73e0906a26347302a44a95f01d10702 /sys/sys/extattr.h
parentbd9c196a87ba89e229074a012f7e44c44444639e (diff)
downloadsrc-e324bf91e8d2dd177c46733ea6df3efcabdc026f.tar.gz
src-e324bf91e8d2dd177c46733ea6df3efcabdc026f.zip
Fix return type of extattr_set_* and fix rmextattr(8) utility.
extattr_set_{fd,file,link} is logically a write(2)-like operation and should return ssize_t, just like extattr_get_*. Also, the user-space utility was using an int for the return value of extattr_get_* and extattr_list_*, both of which return an ssize_t. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=248995
Diffstat (limited to 'sys/sys/extattr.h')
-rw-r--r--sys/sys/extattr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/extattr.h b/sys/sys/extattr.h
index 6e8b73541a6a..ce5619bef162 100644
--- a/sys/sys/extattr.h
+++ b/sys/sys/extattr.h
@@ -92,11 +92,11 @@ ssize_t extattr_list_file(const char *_path, int _attrnamespace, void *_data,
size_t _nbytes);
ssize_t extattr_list_link(const char *_path, int _attrnamespace, void *_data,
size_t _nbytes);
-int extattr_set_fd(int _fd, int _attrnamespace, const char *_attrname,
+ssize_t extattr_set_fd(int _fd, int _attrnamespace, const char *_attrname,
const void *_data, size_t _nbytes);
-int extattr_set_file(const char *_path, int _attrnamespace,
+ssize_t extattr_set_file(const char *_path, int _attrnamespace,
const char *_attrname, const void *_data, size_t _nbytes);
-int extattr_set_link(const char *_path, int _attrnamespace,
+ssize_t extattr_set_link(const char *_path, int _attrnamespace,
const char *_attrname, const void *_data, size_t _nbytes);
__END_DECLS