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/compat | |
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/compat')
-rw-r--r-- | sys/compat/freebsd32/syscalls.master | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/freebsd32/syscalls.master b/sys/compat/freebsd32/syscalls.master index b798d8c..0a40ab2 100644 --- a/sys/compat/freebsd32/syscalls.master +++ b/sys/compat/freebsd32/syscalls.master @@ -634,7 +634,7 @@ 355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \ const char *filename, int attrnamespace, \ const char *attrname); } -356 AUE_EXTATTR_SET_FILE NOPROTO { int extattr_set_file( \ +356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \ const char *path, int attrnamespace, \ const char *attrname, void *data, \ size_t nbytes); } @@ -665,7 +665,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 NOPROTO { int extattr_set_fd(int fd, \ +371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \ int attrnamespace, const char *attrname, \ void *data, size_t nbytes); } 372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \ @@ -726,7 +726,7 @@ 409 AUE_NULL UNIMPL __mac_get_pid 410 AUE_NULL UNIMPL __mac_get_link 411 AUE_NULL UNIMPL __mac_set_link -412 AUE_EXTATTR_SET_LINK NOPROTO { int extattr_set_link( \ +412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \ const char *path, int attrnamespace, \ const char *attrname, void *data, \ size_t nbytes); } |