/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Solaris emulation of NamedAttributeView using extended attributes.
*/
{
// "", "." and ".." not allowed
{
}
}
return bytes;
}
private final boolean followLinks;
this.followLinks = followLinks;
}
try {
try {
// open extended attribute directory
long dp;
try {
} catch (UnixException x) {
throw x;
}
// read list of extended attributes
try {
byte[] name;
}
} finally {
}
} catch (UnixException x) {
null, "Unable to get list of extended attributes: " +
x.getMessage());
}
} finally {
}
}
try {
try {
// open attribute file
try {
// read attribute's attributes
throw new ArithmeticException("Extended attribute value too large");
return (int)size;
} finally {
}
} catch (UnixException x) {
"': " + x.getMessage());
}
} finally {
}
}
try {
try {
// open attribute file
// wrap with channel
// read to EOF (nothing we can do if I/O error occurs)
try {
throw new IOException("Extended attribute file too large");
int total = 0;
while (dst.hasRemaining()) {
if (n < 0)
break;
total += n;
}
return total;
} finally {
}
} catch (UnixException x) {
"': " + x.getMessage());
}
} finally {
}
}
try {
try {
// wrap with channel
// write value (nothing we can do if I/O error occurs)
try {
while (src.hasRemaining()) {
}
return rem;
} finally {
}
} catch (UnixException x) {
"': " + x.getMessage());
}
} finally {
}
}
try {
try {
} finally {
}
} catch (UnixException x) {
"': " + x.getMessage());
} finally {
}
}
/**
*
* @param ofd
* file descriptor for source file
* @param nfd
* file descriptor for target file
*/
try {
// open extended attribute directory
long dp = 0L;
try {
} catch (UnixException x) {
throw x;
}
// copy each extended attribute
try {
byte[] name;
// ignore "." and ".."
continue;
continue;
}
}
} finally {
}
} catch (UnixException ignore) {
}
}
throws UnixException
{
// open source attribute file
try {
// create target attribute file
try {
} finally {
}
} finally {
}
}
}