jdk/src/solaris/native/sun/nio/ch/FileChannelImpl.c
author ohair
Wed, 06 Apr 2011 22:06:11 -0700
changeset 9035 1255eb81cc2f
parent 7971 ca5a32210b1b
child 12047 320a714614e9
permissions -rw-r--r--
7033660: Update copyright year to 2011 on any files changed in 2011 Reviewed-by: dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 7971
diff changeset
     2
 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2446
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2446
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2446
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2446
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2446
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#include "jni.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#include "jni_util.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#include "jvm.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include "jlong.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#include <sys/mman.h>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#include <sys/stat.h>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#include "sun_nio_ch_FileChannelImpl.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#include "java_lang_Integer.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#include "nio.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#include "nio_util.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#include <dlfcn.h>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
    38
#if defined(__linux__) || defined(__solaris__)
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
    39
#include <sys/sendfile.h>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
    42
static jfieldID chan_fd;        /* jobject 'fd' in sun.io.FileChannelImpl */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
JNIEXPORT jlong JNICALL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
Java_sun_nio_ch_FileChannelImpl_initIDs(JNIEnv *env, jclass clazz)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    jlong pageSize = sysconf(_SC_PAGESIZE);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    chan_fd = (*env)->GetFieldID(env, clazz, "fd", "Ljava/io/FileDescriptor;");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    return pageSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
static jlong
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
handle(JNIEnv *env, jlong rv, char *msg)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    if (rv >= 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        return rv;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    if (errno == EINTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        return IOS_INTERRUPTED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    JNU_ThrowIOExceptionWithLastError(env, msg);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    return IOS_THROWN;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
JNIEXPORT jlong JNICALL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
Java_sun_nio_ch_FileChannelImpl_map0(JNIEnv *env, jobject this,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                                     jint prot, jlong off, jlong len)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    void *mapAddress = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    jobject fdo = (*env)->GetObjectField(env, this, chan_fd);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    jint fd = fdval(env, fdo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    int protections = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    int flags = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    if (prot == sun_nio_ch_FileChannelImpl_MAP_RO) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        protections = PROT_READ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        flags = MAP_SHARED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    } else if (prot == sun_nio_ch_FileChannelImpl_MAP_RW) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        protections = PROT_WRITE | PROT_READ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        flags = MAP_SHARED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    } else if (prot == sun_nio_ch_FileChannelImpl_MAP_PV) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        protections =  PROT_WRITE | PROT_READ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        flags = MAP_PRIVATE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    mapAddress = mmap64(
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        0,                    /* Let OS decide location */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        len,                  /* Number of bytes to map */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        protections,          /* File permissions */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        flags,                /* Changes are shared */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        fd,                   /* File descriptor of mapped file */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        off);                 /* Offset into file */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    if (mapAddress == MAP_FAILED) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        if (errno == ENOMEM) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
            JNU_ThrowOutOfMemoryError(env, "Map failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            return IOS_THROWN;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        return handle(env, -1, "Map failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    return ((jlong) (unsigned long) mapAddress);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
JNIEXPORT jint JNICALL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
Java_sun_nio_ch_FileChannelImpl_unmap0(JNIEnv *env, jobject this,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                                       jlong address, jlong len)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    void *a = (void *)jlong_to_ptr(address);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    return handle(env,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                  munmap(a, (size_t)len),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                  "Unmap failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
JNIEXPORT jlong JNICALL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
Java_sun_nio_ch_FileChannelImpl_position0(JNIEnv *env, jobject this,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                                          jobject fdo, jlong offset)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    jint fd = fdval(env, fdo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    jlong result = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    if (offset < 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        result = lseek64(fd, 0, SEEK_CUR);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        result = lseek64(fd, offset, SEEK_SET);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    return handle(env, result, "Position failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
JNIEXPORT void JNICALL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
Java_sun_nio_ch_FileChannelImpl_close0(JNIEnv *env, jobject this, jobject fdo)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    jint fd = fdval(env, fdo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    if (fd != -1) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        jlong result = close(fd);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        if (result < 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
            JNU_ThrowIOExceptionWithLastError(env, "Close failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
JNIEXPORT jlong JNICALL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
Java_sun_nio_ch_FileChannelImpl_transferTo0(JNIEnv *env, jobject this,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                                            jint srcFD,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                                            jlong position, jlong count,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                                            jint dstFD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
{
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   150
#if defined(__linux__)
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   151
    off64_t offset = (off64_t)position;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   152
    jlong n = sendfile64(dstFD, srcFD, &offset, (size_t)count);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    if (n < 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        if (errno == EAGAIN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            return IOS_UNAVAILABLE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        if ((errno == EINVAL) && ((ssize_t)count >= 0))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            return IOS_UNSUPPORTED_CASE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        if (errno == EINTR) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
            return IOS_INTERRUPTED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        JNU_ThrowIOExceptionWithLastError(env, "Transfer failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        return IOS_THROWN;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    return n;
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   165
#elif defined (__solaris__)
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   166
    sendfilevec64_t sfv;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   167
    size_t numBytes = 0;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   168
    jlong result;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   170
    sfv.sfv_fd = srcFD;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   171
    sfv.sfv_flag = 0;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   172
    sfv.sfv_off = (off64_t)position;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   173
    sfv.sfv_len = count;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   175
    result = sendfilev64(dstFD, &sfv, 1, &numBytes);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   177
    /* Solaris sendfilev() will return -1 even if some bytes have been
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   178
     * transferred, so we check numBytes first.
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   179
     */
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   180
    if (numBytes > 0)
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   181
        return numBytes;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   182
    if (result < 0) {
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   183
        if (errno == EAGAIN)
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   184
            return IOS_UNAVAILABLE;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   185
        if (errno == EOPNOTSUPP)
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   186
            return IOS_UNSUPPORTED_CASE;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   187
        if ((errno == EINVAL) && ((ssize_t)count >= 0))
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   188
            return IOS_UNSUPPORTED_CASE;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   189
        if (errno == EINTR)
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   190
            return IOS_INTERRUPTED;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   191
        JNU_ThrowIOExceptionWithLastError(env, "Transfer failed");
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   192
        return IOS_THROWN;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    }
7971
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   194
    return result;
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   195
#else
ca5a32210b1b 7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents: 5506
diff changeset
   196
    return IOS_UNSUPPORTED_CASE;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
}