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 /sys/kern/syscalls.master | |
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 'sys/kern/syscalls.master')
-rw-r--r-- | sys/kern/syscalls.master | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index cf4138a..4b3348f 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -632,7 +632,7 @@ 355 AUE_EXTATTRCTL STD { int extattrctl(const char *path, int cmd, \ const char *filename, int attrnamespace, \ const char *attrname); } -356 AUE_EXTATTR_SET_FILE STD { int extattr_set_file( \ +356 AUE_EXTATTR_SET_FILE STD { ssize_t extattr_set_file( \ const char *path, int attrnamespace, \ const char *attrname, void *data, \ size_t nbytes); } @@ -662,7 +662,7 @@ 368 AUE_NULL UNIMPL __cap_set_fd 369 AUE_NULL UNIMPL __cap_set_file 370 AUE_NULL UNIMPL nosys -371 AUE_EXTATTR_SET_FD STD { int extattr_set_fd(int fd, \ +371 AUE_EXTATTR_SET_FD STD { ssize_t extattr_set_fd(int fd, \ int attrnamespace, const char *attrname, \ void *data, size_t nbytes); } 372 AUE_EXTATTR_GET_FD STD { ssize_t extattr_get_fd(int fd, \ @@ -731,7 +731,7 @@ struct mac *mac_p); } 411 AUE_NULL STD { int __mac_set_link(const char *path_p, \ struct mac *mac_p); } -412 AUE_EXTATTR_SET_LINK STD { int extattr_set_link( \ +412 AUE_EXTATTR_SET_LINK STD { ssize_t extattr_set_link( \ const char *path, int attrnamespace, \ const char *attrname, void *data, \ size_t nbytes); } |