Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ENOATTR & E2BIG #34

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions jfuse-api/src/main/java/org/cryptomator/jfuse/api/Errno.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,18 @@ public interface Errno {
*/
int enodata();

/**
* The named attribute does not exist, or the process has no access to this attribute;
*
* @return error constant {@code ENOATTR}
*/
int enoattr();

/**
* Argument list too long
*
* @return error constant {@code E2BIG}
*/
int e2big();

}
1 change: 1 addition & 0 deletions jfuse-linux-aarch64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<includeConstant>ENOLCK</includeConstant>
<includeConstant>ENAMETOOLONG</includeConstant>
<includeConstant>ENODATA</includeConstant>
<includeConstant>E2BIG</includeConstant>
</includeConstants>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,20 @@ public int enametoolong() {
public int enodata() {
return errno_h.ENODATA();
}

/**
* Alias for {@link #enodata()}
* @return error constant ENODATA
* @deprecated Use {@link #enodata()} instead
*/
@Override
@Deprecated
public int enoattr() {
return enodata();
}

@Override
public int e2big() {
return errno_h.E2BIG();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ public static int ENOENT() {
public static int EIO() {
return (int)5L;
}
/**
* {@snippet :
* #define E2BIG 7
* }
*/
public static int E2BIG() {
return (int)7L;
}
/**
* {@snippet :
* #define EBADF 9
Expand Down
1 change: 1 addition & 0 deletions jfuse-linux-amd64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<includeConstant>ENOLCK</includeConstant>
<includeConstant>ENAMETOOLONG</includeConstant>
<includeConstant>ENODATA</includeConstant>
<includeConstant>E2BIG</includeConstant>
</includeConstants>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,20 @@ public int enametoolong() {
public int enodata() {
return errno_h.ENODATA();
}

/**
* Alias for {@link #enodata()}
* @return error constant ENODATA
* @deprecated Use {@link #enodata()} instead
*/
@Override
@Deprecated
public int enoattr() {
return enodata();
}

@Override
public int e2big() {
return errno_h.E2BIG();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ public static int ENOENT() {
public static int EIO() {
return (int)5L;
}
/**
* {@snippet :
* #define E2BIG 7
* }
*/
public static int E2BIG() {
return (int)7L;
}
/**
* {@snippet :
* #define EBADF 9
Expand Down
2 changes: 2 additions & 0 deletions jfuse-mac/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@
<includeConstant>ENOLCK</includeConstant>
<includeConstant>ENAMETOOLONG</includeConstant>
<includeConstant>ENODATA</includeConstant>
<includeConstant>ENOATTR</includeConstant>
<includeConstant>E2BIG</includeConstant>
</includeConstants>
</configuration>
</execution>
Expand Down
10 changes: 10 additions & 0 deletions jfuse-mac/src/main/java/org/cryptomator/jfuse/mac/MacErrno.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,14 @@ public int enametoolong() {
public int enodata() {
return errno_h.ENODATA();
}

@Override
public int enoattr() {
return errno_h.ENOATTR();
}

@Override
public int e2big() {
return errno_h.E2BIG();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ public static int ENOENT() {
public static int EIO() {
return (int)5L;
}
/**
* {@snippet :
* #define E2BIG 7
* }
*/
public static int E2BIG() {
return (int)7L;
}
/**
* {@snippet :
* #define EBADF 9
Expand Down Expand Up @@ -145,6 +153,14 @@ public static int ENOLCK() {
public static int ENOSYS() {
return (int)78L;
}
/**
* {@snippet :
* #define ENOATTR 93
* }
*/
public static int ENOATTR() {
return (int)93L;
}
/**
* {@snippet :
* #define ENODATA 96
Expand Down
1 change: 1 addition & 0 deletions jfuse-win/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<includeConstant>ENOLCK</includeConstant>
<includeConstant>ENAMETOOLONG</includeConstant>
<includeConstant>ENODATA</includeConstant>
<includeConstant>E2BIG</includeConstant>
</includeConstants>
</configuration>
</execution>
Expand Down
16 changes: 16 additions & 0 deletions jfuse-win/src/main/java/org/cryptomator/jfuse/win/WinErrno.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,20 @@ public int enametoolong() {
public int enodata() {
return errno_h.ENODATA();
}

/**
* Alias for {@link #enodata()}
* @return error constant ENODATA
* @deprecated Use {@link #enodata()} instead
*/
@Override
@Deprecated
public int enoattr() {
return enodata();
}

@Override
public int e2big() {
return errno_h.E2BIG();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ public static int ENOENT() {
public static int EIO() {
return (int)5L;
}
/**
* {@snippet :
* #define E2BIG 7
* }
*/
public static int E2BIG() {
return (int)7L;
}
/**
* {@snippet :
* #define EBADF 9
Expand Down