Skip to content

Commit

Permalink
Merge pull request #34 from cryptomator/feature/errno-ENOATTR-E2BIG
Browse files Browse the repository at this point in the history
add `ENOATTR` & `E2BIG`
  • Loading branch information
infeo authored Sep 5, 2023
2 parents 3b1075f + baa9b82 commit f555628
Show file tree
Hide file tree
Showing 13 changed files with 117 additions and 0 deletions.
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

0 comments on commit f555628

Please sign in to comment.