aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
AgeCommit message (Collapse)AuthorFilesLines
2016-09-30Makefile.def: Remove libjava.Andrew Haley1-557/+0
2016-09-30 Andrew Haley <aph@redhat.com> * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. From-SVN: r240662
2007-04-03natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short.Tom Tromey1-1/+13
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short. From-SVN: r123447
2007-03-23re PR libgcj/31228 (Race condition between setting close-on-exec and ↵David Daney1-2/+0
Runtime.exec()) PR libgcj/31228 * configure.ac: Add checks for getrlimit and sys/resource.h. * include/posix.h (_Jv_platform_close_on_exec): Remove. * include/config.h.in: Regenerate. * configure: Regenerate. * gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to _Jv_platform_close_on_exec; * gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise. (accept): Likewise. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise. * java/lang/natPosixProcess.cc: Include sys/resource.h. (nativeSpawn): Close all file descriptors. Don't set FD_CLOEXEC on pipes. From-SVN: r123138
2006-04-19natFileChannelPosix.cc (write): Properly handle EINTR.Tom Tromey1-1/+2
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly handle EINTR. From-SVN: r113082
2005-05-30re PR libgcj/21821 (MAXPATHLEN usage in libjava)Bryce McKinlay1-5/+6
2005-05-30 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/21821 * gnu/java/nio/channels/natFileChannelPosix.cc (open): Don't use MAXPATHLEN. Format exception message using a StringBuffer instead. From-SVN: r100364
2004-11-12FileLock.java (isValid): locks are valid if the channel is open.Casey Marshall1-1/+1
2004-11-11 Casey Marshall <csm@gnu.org> * gnu/java/nio/FileLock.java (isValid): locks are valid if the channel is open. * gnu/java/nio/channels/natFileChannelPosix.cc (lock): use 'F_RDLCK' for shared locks, 'F_WRLCK' for exclusive locks. From-SVN: r90538
2004-10-21* gnu/java/nio/channels/natFileChannelPosix.ccUlrich Weigand1-2/+2
(FileChannelImpl::available): Call FIONREAD ioctl with 'int *' argument instead of 'long *'. From-SVN: r89391
2004-07-17[multiple changes]Michael Koch1-1/+4
2004-07-17 Mark Wielaard <mark@klomp.org> * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate when size is smaller. * java/io/RandomAccessFile.java (setLength): Use truncate for shrinking the file and seek plus write for expanding the file. 2004-07-17 Michael Koch <konqueror@gmx.de> * gnu/java/nio/channels/natFileChannelPosix.cc (implTruncate): Always save current position. Only reposition file pointer to where we started if not beyond new lenght. Reposition file pointer to file length if it points beyond the end of file. From-SVN: r84868
2004-03-18natFileChannelPosix.cc (mapImpl): Cast MAP_FAILED to void *.Rainer Orth1-1/+1
* gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast MAP_FAILED to void *. From-SVN: r79627
2004-03-14natFileChannelPosix.cc: Implement munmap_adaptor and msync_adaptor for older ↵Andreas Tobler1-2/+22
POSIX_C_SOURCES specs. 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch> * gnu/java/nio/channels/natFileChannelPosix.cc: Implement munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs. (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor. (MappedByteBufferImpl::forceImpl): Use msync_adptor. From-SVN: r79462
2004-02-29FileChannelImpl.java: New class, renamed from java/nio/channels.Per Bothner1-0/+522
* gnu/java/nio/channels/FileChannelImpl.java: New class, renamed from java/nio/channels. Don't depend on FileDescriptor. (in, out, err): New static fields. (mode): New field. (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants from FileDescriptor. (by): Removed MappedByteBuffer field. (map): New working implementation. * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though some code "ported" from natFileDescriptoPosix.cc. * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise. * gnu/java/nio/channels/natFileChannelWin32.cc Likewise. From-SVN: r78659