posix.h (O_SYNC): Define if not available and a reasonable...
* libjava/include/posix.h (O_SYNC): Define if not available and a reasonable, perhaps more conservative, replacement exists. (O_DSYNC): Likewise. * java/io/natFileDescriptorPosix.cc (open): Revert last patch. From-SVN: r67517
This commit is contained in:
parent
23c84d335b
commit
49c72d225b
3 changed files with 16 additions and 2 deletions
|
@ -105,13 +105,11 @@ java::io::FileDescriptor::open (jstring path, jint jflags)
|
|||
}
|
||||
}
|
||||
|
||||
/* FIXME: comment this out until its better tested/implemented
|
||||
if ((jflags & SYNC))
|
||||
flags |= O_SYNC;
|
||||
|
||||
if ((jflags & DSYNC))
|
||||
flags |= O_DSYNC;
|
||||
*/
|
||||
|
||||
int fd = ::open (buf, flags, mode);
|
||||
if (fd == -1 && errno == EMFILE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue