Implement binding for extended file attributes handling on Linux. (master)#1021
Implement binding for extended file attributes handling on Linux. (master)#1021wilx wants to merge 3 commits intojava-native-access:masterfrom
Conversation
|
While I was adding the JavaDocs I have realized that the attribute name string is of unspecified encoding, which, I guess, means some native encoding will be used. But the attribute name can be non-ASCII as well which requires known encoding to be used. I can use attribute name with Japanese: So it seems to me the utility functions should take name encoding parameter as well and all other variants should forward to it. What do you think? |
|
According to the manpage the signature for int setxattr (const char *path, const char *name, const void *value, size_t size, int flags);For the datatypes it is said:
There are multiple mappings possible. The existing mappings map C So I would bind the above as: int setxattr (String path, String name, byte[] value, size_t size, int flags); |
|
@wilx could you please have a look at this branch: I squashed your commits and added two new ones: matthiasblaesing@62cd54e - adds a CHANGES.md entry for the new function The latter commit is intended to circumvent |
|
@wilx I am OK with that. |
|
Merged via 4e88709 |
This is like #1018 but for master branch and with most of review comments addressed.