aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/nio/channels
AgeCommit message (Collapse)AuthorFilesLines
2016-09-30Makefile.def: Remove libjava.Andrew Haley5-1877/+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
2007-01-282007-01-28 Michele Sandri <gpointorama@gmail.com>Michele Sandri1-7/+41
* gnu/java/nio/channels/natFileChannelWin32.cc (lock): Implemented. (unlock): Implemented. From-SVN: r121265
2007-01-09Merged gcj-eclipse branch to trunk.Tom Tromey2-0/+126
From-SVN: r120621
2006-05-13sources.am, [...]: Rebuilt.Tom Tromey1-2/+11
* sources.am, Makefile.in: Rebuilt. * java/util/logging/LogManager.java: Removed. * java/util/logging/Logger.java (resetLogger): New method, from Classpath. * java/io/RandomAccessFile.java: Removed. * gnu/java/nio/channels/FileChannelImpl.java (create): New method. (FileChannelImpl): Now private. * java/io/FileInputStream.java: Removed. * java/io/FileOutputStream.java: Removed. * java/security/AccessControlContext.java: Removed. * java/lang/ThreadLocal.java: Removed. * java/lang/InheritableThreadLocal.java: Removed. * java/lang/Thread.java (locals): New field. (getThreadLocals): New method. * java/lang/natThread.cc (finish_): Clear 'locals'. From-SVN: r113735
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-06-30Update FSF addressKelley Cook1-2/+2
From-SVN: r101453
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
2005-05-03re PR libgcj/21372 (FileChannel.tryLock() return value incorrect)Andrew Overholt1-2/+4
2005-05-03 Andrew Overholt <overholt@redhat.com> PR libgcj/21372: * gnu/java/nio/channels/FileChannelImpl.java: Return null if lock could not be acquired. * java/nio/channels/FileLock.java (toString): Re-implement to be in line with other implementations. From-SVN: r99188
2005-04-292005-04-29 Dalibor Topic <robilad@kaffe.org>Dalibor Topic1-1/+19
* java/nio/channels/FileChannelImpl.java (FileChannelImpl(String, int)): Removed. (FileChannelImpl(File, int)): Added. Check if opened file is a directory. * java/io/FileInputStream.java(FileInputStream): Fixed javadocs. Call FileChannelImpl(File, int). * java/io/FileOutputStream.java (FileInputStream): Call FileChannelImpl(File, int). * java/io/RandomAccessFile.java (RandomAccessFile): Call FileChannelImpl(File, int). Switched constructors around. From-SVN: r99011
2005-04-26re PR libgcj/21136 ([4.0 only] tryLock waits for the lock, and lock doesn't)Luca Barbieri1-2/+2
2005-04-26 Luca Barbieri <luca.barbieri@gmail.com> PR libgcj/21136: * gnu/java/nio/channels/FileChannelImpl.java (tryLock): Pass 'false' to native lock(). (lock): Pass 'true' to native lock(). From-SVN: r98792
2005-03-10FileChannelImpl.java (smallTransferFrom): New.Andrew Haley1-12/+88
2005-03-09 Andrew Haley <aph@redhat.com> * gnu/java/nio/channels/FileChannelImpl.java (smallTransferFrom): New. (smallTransferTo): New. (transferFrom): Loop around smallTransferFrom, copying pageSize bytes each time. (transferTo): Likewise. From-SVN: r96240
2005-02-17FileChannelImpl.java (write(ByteBuffer)): Move the position of the source ↵Ito Kazumitsu1-1/+2
buffer forward. 2005-02-17 Ito Kazumitsu <kaz@maczuka.gcd.org> * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. From-SVN: r95184
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 Koch2-2/+7
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-07-172004-07-17 Michael Koch <konqueror@gmx.de>Michael Koch1-5/+8
* gnu/java/nio/channels/FileChannelImpl.java (finalize): Added javadoc. From-SVN: r84858
2004-05-042004-05-04 Mark Wielaard <mark@klomp.org>Mark Wielaard1-0/+5
* gnu/java/nio/channels/FileChannelImpl.java (finalize): New method. From-SVN: r81469
2004-04-232004-04-23 Michael Koch <konqueror@gmx.de>Michael Koch1-40/+25
* gnu/java/nio/channels/FileChannelImpl.java (SET, CUR): Unused, removed. (read): Implement here directly. (implRead): Removed. (write): Implement here directly. (implWrite): Removed. From-SVN: r81079
2004-04-202004-04-20 Michael Koch <konqueror@gmx.de>Michael Koch1-27/+42
* gnu/java/nio/FileLockImpl.java (static): Removed, not needed anymore. * gnu/java/nio/channels/FileChannelImpl.java (FileChannelImpl): Made final. (mode): Made private. (READ, WRITE, APPEND): Made public. (EXCL, SYNC, DSYNC): Likewise. (static): Load native JNI library, when needed. (length): Unused, removed. (available): Made public. (implPosition): Throws IOException. (seek): Likewise. (implTruncate): Likewise. (unlock): Likewise. (lock): Likewise. From-SVN: r80891
2004-03-19configure.in: FILE variable overrides FLATFORM when linking ↵Per Bothner1-2/+18
natFileChannelXXX.cc. * configure.in: FILE variable overrides FLATFORM when linking natFileChannelXXX.cc. * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored. (write): Call diag_write, as in old natFileDescriptorEcos.cc. From-SVN: r79731
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-03-11natFileChannelEcos.cc: Totally reworked.Michael Koch1-46/+63
2004-03-11 Michael Koch <konqueror@gmx.de> * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked. This file was was just copied form java/io/natFileDescriptorEcos.cc and never changed to compile correctly. From-SVN: r79320
2004-02-29FileChannelImpl.java: New class, renamed from java/nio/channels.Per Bothner4-0/+1533
* 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