< prev index next >

src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template

Print this page

        

*** 25,34 **** --- 25,38 ---- * */ @@END_COPYRIGHT@@ + #ifdef __linux__ + #define _GNU_SOURCE + #endif + #include <stdio.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h>
*** 68,77 **** --- 72,90 ---- #else // not supported (dummy values will not be used at runtime). static final int PREFIX_O_NOFOLLOW = 00; #endif + #ifdef O_DIRECT + static final int PREFIX_DIRECT = O_DIRECT; + #elif F_NOCACHE + static final int PREFIX_DIRECT = F_NOCACHE; + //#elif DIRECTIO_ON + // static final int PREFIX_DIRECT = DIRECTIO_ON; + #else + static final int PREFIX_DIRECT = 00; + #endif static final int PREFIX_S_IAMB = (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH); static final int PREFIX_S_IRUSR = S_IRUSR; static final int PREFIX_S_IWUSR = S_IWUSR;
< prev index next >