@@ -97,23 +97,34 @@ public final class PosixConstants {
97
97
public static final OptionalIntConstant SEEK_HOLE ;
98
98
public static final MandatoryIntConstant SOMAXCONN ;
99
99
public static final OptionalIntConstant PIPE_BUF ;
100
- public static final MandatoryIntConstant O_ACCMODE ;
100
+ public static final OptionalIntConstant O_ACCMODE ;
101
101
public static final MandatoryIntConstant O_RDONLY ;
102
102
public static final MandatoryIntConstant O_WRONLY ;
103
103
public static final MandatoryIntConstant O_RDWR ;
104
104
public static final MandatoryIntConstant O_CREAT ;
105
105
public static final MandatoryIntConstant O_EXCL ;
106
106
public static final MandatoryIntConstant O_TRUNC ;
107
107
public static final MandatoryIntConstant O_APPEND ;
108
- public static final MandatoryIntConstant O_NONBLOCK ;
109
- public static final MandatoryIntConstant O_NDELAY ;
110
- public static final MandatoryIntConstant O_DSYNC ;
111
- public static final MandatoryIntConstant O_CLOEXEC ;
112
- public static final MandatoryIntConstant O_SYNC ;
108
+ public static final OptionalIntConstant O_NONBLOCK ;
109
+ public static final OptionalIntConstant O_NOCTTY ;
110
+ public static final OptionalIntConstant O_NDELAY ;
111
+ public static final OptionalIntConstant O_DSYNC ;
112
+ public static final OptionalIntConstant O_CLOEXEC ;
113
+ public static final OptionalIntConstant O_SYNC ;
113
114
public static final OptionalIntConstant O_DIRECT ;
114
115
public static final OptionalIntConstant O_RSYNC ;
115
116
public static final OptionalIntConstant O_TMPFILE ;
116
117
public static final OptionalIntConstant O_DIRECTORY ;
118
+ public static final OptionalIntConstant O_BINARY ;
119
+ public static final OptionalIntConstant O_TEXT ;
120
+ public static final OptionalIntConstant O_XATTR ;
121
+ public static final OptionalIntConstant O_LARGEFILE ;
122
+ public static final OptionalIntConstant O_SHLOCK ;
123
+ public static final OptionalIntConstant O_EXLOCK ;
124
+ public static final OptionalIntConstant O_EXEC ;
125
+ public static final OptionalIntConstant O_SEARCH ;
126
+ public static final OptionalIntConstant O_PATH ;
127
+ public static final OptionalIntConstant O_TTY_INIT ;
117
128
public static final MandatoryIntConstant S_IFMT ;
118
129
public static final MandatoryIntConstant S_IFSOCK ;
119
130
public static final MandatoryIntConstant S_IFLNK ;
@@ -350,23 +361,34 @@ public final class PosixConstants {
350
361
SEEK_HOLE = reg .createOptionalInt ("SEEK_HOLE" );
351
362
SOMAXCONN = reg .createMandatoryInt ("SOMAXCONN" );
352
363
PIPE_BUF = reg .createOptionalInt ("PIPE_BUF" );
353
- O_ACCMODE = reg .createMandatoryInt ("O_ACCMODE" );
364
+ O_ACCMODE = reg .createOptionalInt ("O_ACCMODE" );
354
365
O_RDONLY = reg .createMandatoryInt ("O_RDONLY" );
355
366
O_WRONLY = reg .createMandatoryInt ("O_WRONLY" );
356
367
O_RDWR = reg .createMandatoryInt ("O_RDWR" );
357
368
O_CREAT = reg .createMandatoryInt ("O_CREAT" );
358
369
O_EXCL = reg .createMandatoryInt ("O_EXCL" );
359
370
O_TRUNC = reg .createMandatoryInt ("O_TRUNC" );
360
371
O_APPEND = reg .createMandatoryInt ("O_APPEND" );
361
- O_NONBLOCK = reg .createMandatoryInt ("O_NONBLOCK" );
362
- O_NDELAY = reg .createMandatoryInt ("O_NDELAY" );
363
- O_DSYNC = reg .createMandatoryInt ("O_DSYNC" );
364
- O_CLOEXEC = reg .createMandatoryInt ("O_CLOEXEC" );
365
- O_SYNC = reg .createMandatoryInt ("O_SYNC" );
372
+ O_NONBLOCK = reg .createOptionalInt ("O_NONBLOCK" );
373
+ O_NOCTTY = reg .createOptionalInt ("O_NOCTTY" );
374
+ O_NDELAY = reg .createOptionalInt ("O_NDELAY" );
375
+ O_DSYNC = reg .createOptionalInt ("O_DSYNC" );
376
+ O_CLOEXEC = reg .createOptionalInt ("O_CLOEXEC" );
377
+ O_SYNC = reg .createOptionalInt ("O_SYNC" );
366
378
O_DIRECT = reg .createOptionalInt ("O_DIRECT" );
367
379
O_RSYNC = reg .createOptionalInt ("O_RSYNC" );
368
380
O_TMPFILE = reg .createOptionalInt ("O_TMPFILE" );
369
381
O_DIRECTORY = reg .createOptionalInt ("O_DIRECTORY" );
382
+ O_BINARY = reg .createOptionalInt ("O_BINARY" );
383
+ O_TEXT = reg .createOptionalInt ("O_TEXT" );
384
+ O_XATTR = reg .createOptionalInt ("O_XATTR" );
385
+ O_LARGEFILE = reg .createOptionalInt ("O_LARGEFILE" );
386
+ O_SHLOCK = reg .createOptionalInt ("O_SHLOCK" );
387
+ O_EXLOCK = reg .createOptionalInt ("O_EXLOCK" );
388
+ O_EXEC = reg .createOptionalInt ("O_EXEC" );
389
+ O_SEARCH = reg .createOptionalInt ("O_SEARCH" );
390
+ O_PATH = reg .createOptionalInt ("O_PATH" );
391
+ O_TTY_INIT = reg .createOptionalInt ("O_TTY_INIT" );
370
392
S_IFMT = reg .createMandatoryInt ("S_IFMT" );
371
393
S_IFSOCK = reg .createMandatoryInt ("S_IFSOCK" );
372
394
S_IFLNK = reg .createMandatoryInt ("S_IFLNK" );
@@ -558,8 +580,8 @@ public final class PosixConstants {
558
580
OFFSETOF_STRUCT_SOCKADDR_UN_SUN_PATH = reg .createMandatoryInt ("OFFSETOF_STRUCT_SOCKADDR_UN_SUN_PATH" );
559
581
SIZEOF_STRUCT_SOCKADDR_UN_SUN_PATH = reg .createMandatoryInt ("SIZEOF_STRUCT_SOCKADDR_UN_SUN_PATH" );
560
582
561
- openFlags = new IntConstant []{O_ACCMODE , O_RDONLY , O_WRONLY , O_RDWR , O_CREAT , O_EXCL , O_TRUNC , O_APPEND , O_NONBLOCK , O_NDELAY , O_DSYNC , O_CLOEXEC , O_SYNC , O_DIRECT , O_RSYNC , O_TMPFILE ,
562
- O_DIRECTORY };
583
+ openFlags = new IntConstant []{O_ACCMODE , O_RDONLY , O_WRONLY , O_RDWR , O_CREAT , O_EXCL , O_TRUNC , O_APPEND , O_NONBLOCK , O_NOCTTY , O_NDELAY , O_DSYNC , O_CLOEXEC , O_SYNC , O_DIRECT , O_RSYNC ,
584
+ O_TMPFILE , O_DIRECTORY , O_BINARY , O_TEXT , O_XATTR , O_LARGEFILE , O_SHLOCK , O_EXLOCK , O_EXEC , O_SEARCH , O_PATH , O_TTY_INIT };
563
585
fileType = new IntConstant []{S_IFMT , S_IFSOCK , S_IFLNK , S_IFREG , S_IFBLK , S_IFDIR , S_IFCHR , S_IFIFO };
564
586
mmapFlags = new IntConstant []{MAP_SHARED , MAP_PRIVATE , MAP_ANONYMOUS , MAP_DENYWRITE , MAP_EXECUTABLE };
565
587
mmapProtection = new IntConstant []{PROT_NONE , PROT_READ , PROT_WRITE , PROT_EXEC };
0 commit comments