APIdia Launch Partner
Top Description Constructors Methods
sun.nio.fs

pack-priv Class LinuxNativeDispatcher

extends UnixNativeDispatcher
Class Inheritance

Linux specific system calls.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static native int

Returns:

0 on success, UNAVAILABLE if the platform function would block, UNSUPPORTED_CASE if the call does not work with the given parameters, or UNSUPPORTED if direct copying is not supported on this platform
directCopy0
(int
destination file descriptor
dst
,
int
source file descriptor
src
,
long
address to check for cancellation (a non-zero value written to this address indicates cancel)
addressToPollForCancel
)

Copies data between file descriptors src and dst using a platform-specific function or system call possibly having kernel support.

pack-priv static native void
endmntent(long stream)

int endmntent(FILE* filep);

pack-priv static int
getmntent(long fp, UnixMountEntry entry, int buflen)

int getmntent(FILE *fp, struct mnttab *mp, int len);

pack-priv static native int
getmntent0(long fp, UnixMountEntry entry, long buffer, int bufLen)

private static native void
pack-priv static native int
posix_fadvise(int fd, long offset, long len, int advice)

int posix_fadvise(int fd, off_t offset, off_t len, int advice);

pack-priv static long
setmntent(byte[] filename, byte[] type)

FILE *setmntent(const char *filename, const char *type);

private static native long
setmntent0(long pathAddress, long typeAddress)

Inherited from sun.nio.fs.UnixNativeDispatcher:
accessbirthtimeSupportedchmodchownclosecloseclosedircopyToNativeBufferdupfchmodfchmodatfchmodatNoFollowSupportedfchownfchown0fdopendirfgetxattrflistxattrfremovexattrfsetxattrfstatfstatatfstatat2futimensgetcwdgetgrgidgetgrnamgetlinelengetpwnamgetpwuidlchownlinklstatmkdirmknodopenopenatopenatSupportedopendirreadreaddirreaddir0readlinkrealpathrenamerenameatrewindrmdirstatstat2statvfsstrerrorsymlinkunlinkunlinkatutimensatwritexattrSupported

Constructor Detail

LinuxNativeDispatcherback to summary
private LinuxNativeDispatcher()

Method Detail

directCopy0back to summary
pack-priv static native int directCopy0(int dst, int src, long addressToPollForCancel) throws UnixException

Copies data between file descriptors src and dst using a platform-specific function or system call possibly having kernel support.

Parameters
dst:int

destination file descriptor

src:int

source file descriptor

addressToPollForCancel:long

address to check for cancellation (a non-zero value written to this address indicates cancel)

Returns:int

0 on success, UNAVAILABLE if the platform function would block, UNSUPPORTED_CASE if the call does not work with the given parameters, or UNSUPPORTED if direct copying is not supported on this platform

endmntentback to summary
pack-priv static native void endmntent(long stream) throws UnixException

int endmntent(FILE* filep);

getmntentback to summary
pack-priv static int getmntent(long fp, UnixMountEntry entry, int buflen) throws UnixException

int getmntent(FILE *fp, struct mnttab *mp, int len);

getmntent0back to summary
pack-priv static native int getmntent0(long fp, UnixMountEntry entry, long buffer, int bufLen) throws UnixException
initback to summary
private static native void init()

Hides sun.nio.fs.UnixNativeDispatcher.init.

posix_fadviseback to summary
pack-priv static native int posix_fadvise(int fd, long offset, long len, int advice) throws UnixException

int posix_fadvise(int fd, off_t offset, off_t len, int advice);

setmntentback to summary
pack-priv static long setmntent(byte[] filename, byte[] type) throws UnixException

FILE *setmntent(const char *filename, const char *type);

setmntent0back to summary
private static native long setmntent0(long pathAddress, long typeAddress) throws UnixException