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 O_DIRECT for Linux x86_64 and aarch64 (#107) #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions gen/const/OpenFlags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def gen_openflags_java(options)
O_NOCTTY
O_TMPFILE
O_CLOEXEC
O_DIRECT
]
consts.each { |c| cg.const c }
end
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/jnr/constants/platform/linux/OpenFlags.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated. DO NOT EDIT!
// Generated 2018-09-20 16:28:34 +0000
// Generated 2022-05-03 23:39:46 +0000
package jnr.constants.platform.linux;
public enum OpenFlags implements jnr.constants.Constant {
O_RDONLY(0L),
Expand All @@ -23,7 +23,8 @@ public enum OpenFlags implements jnr.constants.Constant {
// O_BINARY not defined
O_NOCTTY(256L),
O_TMPFILE(4259840L),
O_CLOEXEC(524288L);
O_CLOEXEC(524288L),
O_DIRECT(16384L);
private final long value;
private OpenFlags(long value) { this.value = value; }
public static final long MIN_VALUE = 0L;
Expand All @@ -50,6 +51,7 @@ public static final java.util.Map<OpenFlags, String> generateTable() {
map.put(O_NOCTTY, "O_NOCTTY");
map.put(O_TMPFILE, "O_TMPFILE");
map.put(O_CLOEXEC, "O_CLOEXEC");
map.put(O_DIRECT, "O_DIRECT");
return map;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated. DO NOT EDIT!
// Generated 2021-06-03 02:37:31 +0000
// Generated 2022-05-03 23:25:00 +0000
package jnr.constants.platform.linux.aarch64;
public enum OpenFlags implements jnr.constants.Constant {
O_RDONLY(0L),
Expand All @@ -23,7 +23,8 @@ public enum OpenFlags implements jnr.constants.Constant {
// O_BINARY not defined
O_NOCTTY(256L),
O_TMPFILE(4210688L),
O_CLOEXEC(524288L);
O_CLOEXEC(524288L),
O_DIRECT(65536L);
private final long value;
private OpenFlags(long value) { this.value = value; }
public static final long MIN_VALUE = 0L;
Expand All @@ -50,6 +51,7 @@ public static final java.util.Map<OpenFlags, String> generateTable() {
map.put(O_NOCTTY, "O_NOCTTY");
map.put(O_TMPFILE, "O_TMPFILE");
map.put(O_CLOEXEC, "O_CLOEXEC");
map.put(O_DIRECT, "O_DIRECT");
return map;
}
}
Expand Down