diff options
author | mdf <mdf@FreeBSD.org> | 2013-04-02 05:30:41 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2013-04-02 05:30:41 +0000 |
commit | da578c64920f38ac47d89857db4a2473b7d48932 (patch) | |
tree | 9874e26df73e0906a26347302a44a95f01d10702 /lib/libc/sys/extattr_get_file.2 | |
parent | ccb6e7cd5aefa130c472d9f982c5e37c4d1d8fb8 (diff) | |
download | FreeBSD-src-da578c64920f38ac47d89857db4a2473b7d48932.zip FreeBSD-src-da578c64920f38ac47d89857db4a2473b7d48932.tar.gz |
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
Diffstat (limited to 'lib/libc/sys/extattr_get_file.2')
-rw-r--r-- | lib/libc/sys/extattr_get_file.2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/extattr_get_file.2 b/lib/libc/sys/extattr_get_file.2 index e8faa13..db4ea92 100644 --- a/lib/libc/sys/extattr_get_file.2 +++ b/lib/libc/sys/extattr_get_file.2 @@ -50,7 +50,7 @@ .In sys/extattr.h .Ft ssize_t .Fn extattr_get_fd "int fd" "int attrnamespace" "const char *attrname" "void *data" "size_t nbytes" -.Ft int +.Ft ssize_t .Fn extattr_set_fd "int fd" "int attrnamespace" "const char *attrname" "const void *data" "size_t nbytes" .Ft int .Fn extattr_delete_fd "int fd" "int attrnamespace" "const char *attrname" @@ -58,7 +58,7 @@ .Fn extattr_list_fd "int fd" "int attrnamespace" "void *data" "size_t nbytes" .Ft ssize_t .Fn extattr_get_file "const char *path" "int attrnamespace" "const char *attrname" "void *data" "size_t nbytes" -.Ft int +.Ft ssize_t .Fn extattr_set_file "const char *path" "int attrnamespace" "const char *attrname" "const void *data" "size_t nbytes" .Ft int .Fn extattr_delete_file "const char *path" "int attrnamespace" "const char *attrname" @@ -66,7 +66,7 @@ .Fn extattr_list_file "const char *path" "int attrnamespace" "void *data" "size_t nbytes" .Ft ssize_t .Fn extattr_get_link "const char *path" "int attrnamespace" "const char *attrname" "void *data" "size_t nbytes" -.Ft int +.Ft ssize_t .Fn extattr_set_link "const char *path" "int attrnamespace" "const char *attrname" "const void *data" "size_t nbytes" .Ft int .Fn extattr_delete_link "const char *path" "int attrnamespace" "const char *attrname" |