@@ -97,23 +97,34 @@ public final class PosixConstants {
9797 public static final OptionalIntConstant SEEK_HOLE ;
9898 public static final MandatoryIntConstant SOMAXCONN ;
9999 public static final OptionalIntConstant PIPE_BUF ;
100- public static final MandatoryIntConstant O_ACCMODE ;
100+ public static final OptionalIntConstant O_ACCMODE ;
101101 public static final MandatoryIntConstant O_RDONLY ;
102102 public static final MandatoryIntConstant O_WRONLY ;
103103 public static final MandatoryIntConstant O_RDWR ;
104104 public static final MandatoryIntConstant O_CREAT ;
105105 public static final MandatoryIntConstant O_EXCL ;
106106 public static final MandatoryIntConstant O_TRUNC ;
107107 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 ;
113114 public static final OptionalIntConstant O_DIRECT ;
114115 public static final OptionalIntConstant O_RSYNC ;
115116 public static final OptionalIntConstant O_TMPFILE ;
116117 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 ;
117128 public static final MandatoryIntConstant S_IFMT ;
118129 public static final MandatoryIntConstant S_IFSOCK ;
119130 public static final MandatoryIntConstant S_IFLNK ;
@@ -350,23 +361,34 @@ public final class PosixConstants {
350361 SEEK_HOLE = reg .createOptionalInt ("SEEK_HOLE" );
351362 SOMAXCONN = reg .createMandatoryInt ("SOMAXCONN" );
352363 PIPE_BUF = reg .createOptionalInt ("PIPE_BUF" );
353- O_ACCMODE = reg .createMandatoryInt ("O_ACCMODE" );
364+ O_ACCMODE = reg .createOptionalInt ("O_ACCMODE" );
354365 O_RDONLY = reg .createMandatoryInt ("O_RDONLY" );
355366 O_WRONLY = reg .createMandatoryInt ("O_WRONLY" );
356367 O_RDWR = reg .createMandatoryInt ("O_RDWR" );
357368 O_CREAT = reg .createMandatoryInt ("O_CREAT" );
358369 O_EXCL = reg .createMandatoryInt ("O_EXCL" );
359370 O_TRUNC = reg .createMandatoryInt ("O_TRUNC" );
360371 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" );
366378 O_DIRECT = reg .createOptionalInt ("O_DIRECT" );
367379 O_RSYNC = reg .createOptionalInt ("O_RSYNC" );
368380 O_TMPFILE = reg .createOptionalInt ("O_TMPFILE" );
369381 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" );
370392 S_IFMT = reg .createMandatoryInt ("S_IFMT" );
371393 S_IFSOCK = reg .createMandatoryInt ("S_IFSOCK" );
372394 S_IFLNK = reg .createMandatoryInt ("S_IFLNK" );
@@ -558,8 +580,8 @@ public final class PosixConstants {
558580 OFFSETOF_STRUCT_SOCKADDR_UN_SUN_PATH = reg .createMandatoryInt ("OFFSETOF_STRUCT_SOCKADDR_UN_SUN_PATH" );
559581 SIZEOF_STRUCT_SOCKADDR_UN_SUN_PATH = reg .createMandatoryInt ("SIZEOF_STRUCT_SOCKADDR_UN_SUN_PATH" );
560582
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 };
563585 fileType = new IntConstant []{S_IFMT , S_IFSOCK , S_IFLNK , S_IFREG , S_IFBLK , S_IFDIR , S_IFCHR , S_IFIFO };
564586 mmapFlags = new IntConstant []{MAP_SHARED , MAP_PRIVATE , MAP_ANONYMOUS , MAP_DENYWRITE , MAP_EXECUTABLE };
565587 mmapProtection = new IntConstant []{PROT_NONE , PROT_READ , PROT_WRITE , PROT_EXEC };
0 commit comments