Debian Codegraph @

src/main/java/jnr/constants/platform/freebsd/aarch64/OpenFlags.java

raw
1 // WARNING: This file is autogenerated. DO NOT EDIT!
2 // Generated 2021-10-08 17:37:37 +0200
3 package jnr.constants.platform.freebsd.aarch64;
4 public enum OpenFlags implements jnr.constants.Constant {
5 O_RDONLY(0L),
6 O_WRONLY(1L),
7 O_RDWR(2L),
8 O_ACCMODE(3L),
9 O_NONBLOCK(4L),
10 O_APPEND(8L),
11 O_SYNC(128L),
12 O_SHLOCK(16L),
13 O_EXLOCK(32L),
14 O_ASYNC(64L),
15 O_FSYNC(128L),
16 O_NOFOLLOW(256L),
17 O_CREAT(512L),
18 O_TRUNC(1024L),
19 O_EXCL(2048L),
20 // O_EVTONLY not defined
21 O_DIRECTORY(131072L),
22 // O_SYMLINK not defined
23 // O_BINARY not defined
24 O_NOCTTY(32768L),
25 // O_TMPFILE not defined
26 O_CLOEXEC(1048576L);
27 private final long value;
28 private OpenFlags(long value) { this.value = value; }
29 public static final long MIN_VALUE = 0L;
30 public static final long MAX_VALUE = 1048576L;
31
32 static final class StringTable {
33 public static final java.util.Map<OpenFlags, String> descriptions = generateTable();
34 public static final java.util.Map<OpenFlags, String> generateTable() {
35 java.util.Map<OpenFlags, String> map = new java.util.EnumMap<OpenFlags, String>(OpenFlags.class);
36 map.put(O_RDONLY, "O_RDONLY");
37 map.put(O_WRONLY, "O_WRONLY");
38 map.put(O_RDWR, "O_RDWR");
39 map.put(O_ACCMODE, "O_ACCMODE");
40 map.put(O_NONBLOCK, "O_NONBLOCK");
41 map.put(O_APPEND, "O_APPEND");
42 map.put(O_SYNC, "O_SYNC");
43 map.put(O_SHLOCK, "O_SHLOCK");
44 map.put(O_EXLOCK, "O_EXLOCK");
45 map.put(O_ASYNC, "O_ASYNC");
46 map.put(O_FSYNC, "O_FSYNC");
47 map.put(O_NOFOLLOW, "O_NOFOLLOW");
48 map.put(O_CREAT, "O_CREAT");
49 map.put(O_TRUNC, "O_TRUNC");
50 map.put(O_EXCL, "O_EXCL");
51 map.put(O_DIRECTORY, "O_DIRECTORY");
52 map.put(O_NOCTTY, "O_NOCTTY");
53 map.put(O_CLOEXEC, "O_CLOEXEC");
54 return map;
55 }
56 }
57 public final String toString() { return StringTable.descriptions.get(this); }
58 public final int value() { return (int) value; }
59 public final int intValue() { return (int) value; }
60 public final long longValue() { return value; }
61 public final boolean defined() { return true; }
62 }