summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
Commit message (Collapse)AuthorAgeFilesLines
* http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157tromey2007-04-031-1/+13
| | | | | | | * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123447 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/31228daney2007-03-231-2/+0
| | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123138 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properlytromey2006-04-191-1/+2
| | | | | | handle EINTR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113082 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-05-30 Bryce McKinlay <mckinlay@redhat.com>bryce2005-05-301-5/+6
| | | | | | | | | PR libgcj/21821 * gnu/java/nio/channels/natFileChannelPosix.cc (open): Don't use MAXPATHLEN. Format exception message using a StringBuffer instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100364 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-11 Casey Marshall <csm@gnu.org>bryce2004-11-121-1/+1
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90538 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/channels/natFileChannelPosix.ccuweigand2004-10-211-2/+2
| | | | | | | | (FileChannelImpl::available): Call FIONREAD ioctl with 'int *' argument instead of 'long *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89391 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-17 Mark Wielaard <mark@klomp.org>mkoch2004-07-171-1/+4
| | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84868 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Castro2004-03-181-1/+1
| | | | | | | MAP_FAILED to void *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79627 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>andreast2004-03-131-2/+22
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79462 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/channels/FileChannelImpl.java: New class, renamedbothner2004-02-291-0/+522
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78659 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud