Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
that don't provide any insights not available on the native methods' man pages
  • Loading branch information
overheadhunter committed Jan 13, 2021
1 parent 5d00aa6 commit bcd206c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ static int fgetxattr(int fd, byte[] name, long valueAddress, int valueLen) throw
{
NativeBuffer buffer = NativeBuffers.asNativeBuffer(name);
try {
// position: According to man2 fgetxattr, position is reserved and should be 0
// options: XATTR_NOFOLLOW not applicable, XATTR_SHOWCOMPRESSION irrelevant to user-defined attributes
return fgetxattr0(fd, buffer.address(), valueAddress, valueLen, 0L, 0);
} finally {
buffer.release();
Expand All @@ -90,9 +88,6 @@ static void fsetxattr(int fd, byte[] name, long valueAddress, int valueLen) thro
{
NativeBuffer buffer = NativeBuffers.asNativeBuffer(name);
try {
// position: According to man2 fgetxattr, position is reserved and should be 0
// options: XATTR_NOFOLLOW not applicable, XATTR_CREATE/XATTR_REPLACE will not be set,
// matching behaviour of LinuxNativeDispatcher (therefore no atomic check-and-set support atm)
fsetxattr0(fd, buffer.address(), valueAddress, valueLen, 0L, 0);
} finally {
buffer.release();
Expand All @@ -108,7 +103,6 @@ private static native void fsetxattr0(int fd, long nameAddress, long valueAddres
static void fremovexattr(int fd, byte[] name) throws UnixException {
NativeBuffer buffer = NativeBuffers.asNativeBuffer(name);
try {
// options: XATTR_NOFOLLOW not applicable, XATTR_SHOWCOMPRESSION irrelevant to user-defined attributes
fremovexattr0(fd, buffer.address(), 0);
} finally {
buffer.release();
Expand All @@ -121,7 +115,6 @@ static void fremovexattr(int fd, byte[] name) throws UnixException {
* ssize_t flistxattr(int fd, char *namebuf, size_t size, int options);
*/
static int flistxattr(int fd, long nameBufAddress, int size) throws UnixException {
// options: XATTR_NOFOLLOW not applicable, XATTR_SHOWCOMPRESSION irrelevant to user-defined attributes
return flistxattr0(fd, nameBufAddress, size, 0);
}

Expand Down

0 comments on commit bcd206c

Please sign in to comment.