/openjdk7/jdk/src/solaris/classes/sun/nio/ch/ |
H A D | PollArrayWrapper.java | 35 * int fd; 127 private static native void interrupt(int fd); argument
|
H A D | SinkChannelImpl.java | 43 FileDescriptor fd; field in class:SinkChannelImpl 45 // fd value needed for dev/poll. This value will remain valid 71 return fd; 78 SinkChannelImpl(SelectorProvider sp, FileDescriptor fd) { argument 80 this.fd = fd; 81 this.fdVal = IOUtil.fdVal(fd); 88 nd.preClose(fd); 106 nd.close(fd); 112 IOUtil.configureBlocking(fd, bloc [all...] |
H A D | SourceChannelImpl.java | 43 FileDescriptor fd; field in class:SourceChannelImpl 45 // fd value needed for dev/poll. This value will remain valid 71 return fd; 78 SourceChannelImpl(SelectorProvider sp, FileDescriptor fd) { argument 80 this.fd = fd; 81 this.fdVal = IOUtil.fdVal(fd); 88 nd.preClose(fd); 106 nd.close(fd); 112 IOUtil.configureBlocking(fd, bloc [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | LinuxDosFileAttributeView.java | 120 int fd = file.openForAttributeAccess(followLinks); 122 final UnixFileAttributes attrs = UnixFileAttributes.get(fd); 123 final int dosAttribute = getDosAttribute(fd); 184 close(fd); 211 private int getDosAttribute(int fd) throws UnixException { argument 217 .fgetxattr(fd, DOS_XATTR_NAME_AS_BYTES, buffer.address(), size); 256 int fd = file.openForAttributeAccess(followLinks); 258 int oldValue = getDosAttribute(fd); 269 LinuxNativeDispatcher.fsetxattr(fd, DOS_XATTR_NAME_AS_BYTES, 278 close(fd); [all...] |
H A D | UnixChannelFactory.java | 103 static FileChannel newFileChannel(int fd, String path, boolean reading, boolean writing) { argument 105 fdAccess.set(fdObj, fd); 253 int fd; 256 fd = openat(dfd, path.asByteArray(), oflags, mode); 258 fd = UnixNativeDispatcher.open(path, oflags, mode); 291 fdAccess.set(fdObj, fd);
|
/openjdk7/jdk/src/solaris/classes/sun/tools/attach/ |
H A D | BsdVirtualMachine.java | 263 private void writeString(int fd, String s) throws IOException { argument 271 BsdVirtualMachine.write(fd, b, 0, b.length); 275 write(fd, b, 0, 1); 287 static native void connect(int fd, String path) throws IOException; argument 289 static native void close(int fd) throws IOException; argument 291 static native int read(int fd, byte buf[], int off, int bufLen) throws IOException; argument 293 static native void write(int fd, byte buf[], int off, int bufLen) throws IOException; argument
|
H A D | LinuxVirtualMachine.java | 297 private void writeString(int fd, String s) throws IOException { argument 305 LinuxVirtualMachine.write(fd, b, 0, b.length); 309 write(fd, b, 0, 1); 327 static native void connect(int fd, String path) throws IOException; argument 329 static native void close(int fd) throws IOException; argument 331 static native int read(int fd, byte buf[], int off, int bufLen) throws IOException; argument 333 static native void write(int fd, byte buf[], int off, int bufLen) throws IOException; argument
|
H A D | SolarisVirtualMachine.java | 49 private int fd = -1; field in class:SolarisVirtualMachine 70 fd = openDoor(pid); 87 fd = openDoor(pid); 90 } while (i <= retries && fd == -1); 91 if (fd == -1) { 100 assert fd >= 0; 108 if (fd != -1) { 109 close(fd); 110 fd = -1; 124 if (fd 232 close(int fd) argument 234 read(int fd, byte buf[], int off, int buflen) argument 241 enqueue(int fd, String cmd, Object ... args) argument [all...] |
/openjdk7/jdk/src/solaris/demo/jni/Poller/ |
H A D | Poller.java | 95 * many fd/skt objects this Poller object can contain. 152 * @return the OS level fd associated with this IO Object 162 * Must be called before the fd/skt is closed. 170 * Check if fd or socket is already in the set handled by this Poller object 173 * @return true if fd/skt is in the set for this Poller object. 279 // Utility - get (int) fd from FileDescriptor or [Server]Socket objects. 293 f = cl.getDeclaredField("fd"); 297 f = cl.getDeclaredField("fd"); 302 f = cl.getDeclaredField("fd"); 316 private native int nativeAddFd(int handle, int fd, shor argument 318 nativeRemoveFd(int handle, int fd) argument 321 nativeIsMember(int handle, int fd) argument [all...] |
/openjdk7/langtools/test/tools/javac/processing/6348193/ |
H A D | T6348193.java | 178 public void checkRead(FileDescriptor fd) { /*OK*/ } argument
|
/openjdk7/hotspot/agent/src/os/bsd/ |
H A D | libproc_impl.h | 42 int fd; // file descriptor for lib member in struct:lib_info 56 int fd; // file descriptor member in struct:map_info 122 lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd, 129 bool is_elf_file(int fd);
|
H A D | symtab.c | 57 // read symbol table from given fd. 58 struct symtab* build_symtab(int fd) { argument 74 lseek(fd, (off_t)0L, SEEK_SET); 75 if (! read_elf_header(fd, &ehdr)) { 81 if ((shbuf = read_section_header_table(fd, &ehdr)) == NULL) { 85 baseaddr = find_base_address(fd, &ehdr); 97 if ( (scn_cache[cnt].c_data = read_section_data(fd, &ehdr, cursct)) == NULL) {
|
/openjdk7/hotspot/agent/src/os/linux/ |
H A D | libproc_impl.h | 42 int fd; // file descriptor for lib member in struct:lib_info 56 int fd; // file descriptor member in struct:map_info 120 lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd, 127 bool is_elf_file(int fd);
|
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | SocketImpl.java | 54 protected FileDescriptor fd; field in class:SocketImpl 219 * Returns the value of this socket's <code>fd</code> field. 221 * @return the value of this socket's <code>fd</code> field. 222 * @see java.net.SocketImpl#fd 225 return fd;
|
/openjdk7/hotspot/src/share/vm/memory/ |
H A D | filemap.cpp | 142 bool FileMapInfo::init_from_file(int fd) { argument 144 size_t n = read(fd, &_header, sizeof(struct FileMapHeader)); 161 int fd = open(_full_path, O_RDONLY | O_BINARY, 0); local 162 if (fd < 0) { 173 _fd = fd; 190 int fd = open(_full_path, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0444); local 191 if (fd < 0) { 194 _fd = fd;
|
/openjdk7/hotspot/src/os/solaris/vm/ |
H A D | os_solaris.inline.hpp | 236 inline int os::listen(int fd, int count) { argument 237 if (fd < 0) return OS_ERR; 239 return ::listen(fd, count); 242 inline int os::socket_shutdown(int fd, int howto){ argument 243 return ::shutdown(fd, howto); 246 inline int os::get_sock_name(int fd, struct sockaddr* him, socklen_t* len){ argument 247 return ::getsockname(fd, him, len); 258 inline int os::get_sock_opt(int fd, int level, int optname, argument 260 return ::getsockopt(fd, level, optname, optval, optlen); 263 inline int os::set_sock_opt(int fd, in argument [all...] |
/openjdk7/jdk/src/macosx/classes/sun/nio/ch/ |
H A D | KQueueArrayWrapper.java | 80 // The kqueue fd 83 // The fd of the interrupt line going out 86 // The fd of the interrupt line coming in 144 long fd = keventArray.getLong(offset); 145 assert fd <= Integer.MAX_VALUE; 146 return (int) fd; 211 private native void register0(int kq, int fd, int read, int write); argument 214 private static native void interrupt(int fd); argument
|
/openjdk7/jdk/src/share/bin/ |
H A D | parse_manifest.c | 44 * fd: File descriptor of the jar file. 56 inflate_file(int fd, zentry *entry, int *size_out) argument 64 if (lseek(fd, entry->offset, SEEK_SET) < (off_t)0) 68 if ((size_t)(read(fd, in, (unsigned int)entry->csize)) != entry->csize) { 119 * fd: File descriptor of the jar file. 126 find_end(int fd, Byte *eb) argument 141 if ((pos = lseek(fd, -ENDHDR, SEEK_END)) < (off_t)0) 143 if ((bytes = read(fd, eb, ENDHDR)) < 0) 154 if ((flen = lseek(fd, 0, SEEK_END)) < (off_t)0) 157 if (lseek(fd, 215 find_file(int fd, zentry *entry, const char *file_name) argument 481 int fd; local 538 int fd; local 579 int fd; local [all...] |
/openjdk7/jdk/src/solaris/native/com/sun/management/ |
H A D | UnixOperatingSystem_md.c | 193 int fd; local 195 fd = JVM_Open("/proc/self/psinfo", O_RDONLY, 0); 196 if (fd < 0) { 203 result = JVM_Read(fd, addr, remaining); 205 JVM_Close(fd); 213 JVM_Close(fd); 387 // allocate memory to hold the fd information (we don't acutally use this information 420 dirp = opendir("/proc/self/fd"); 422 throw_internal_error(env, "Unable to open directory /proc/self/fd"); 435 // subtract by 1 which was the fd ope [all...] |
/openjdk7/jdk/src/solaris/native/java/io/ |
H A D | UnixFileSystem_md.c | 244 int fd; local 246 fd = JVM_EEXIST; /* The root directory always exists */ 248 fd = JVM_Open(path, JVM_O_RDWR | JVM_O_CREAT | JVM_O_EXCL, 0666); 250 if (fd < 0) { 251 if (fd != JVM_EEXIST) { 255 JVM_Close(fd);
|
/openjdk7/jdk/src/solaris/native/sun/nio/ch/ |
H A D | DevPollArrayWrapper.c | 44 #define DP_ISPOLLED (DPIOC | 2) /* is this fd cached in /dev/poll */ 46 #define POLLREMOVE 0x0800 /* Removes fd from monitored set */ 117 jint wfd, jint fd, jint mask) 122 a[0].fd = fd; 180 Java_sun_nio_ch_DevPollArrayWrapper_interrupt(JNIEnv *env, jclass this, jint fd) argument 184 if (write(fd, fakebuf, 1) < 0) { 186 "Write to interrupt fd failed"); 116 Java_sun_nio_ch_DevPollArrayWrapper_register(JNIEnv *env, jobject this, jint wfd, jint fd, jint mask) argument
|
H A D | FileDispatcherImpl.c | 55 static int preCloseFD = -1; /* File descriptor to which we dup other fd's 75 jint fd = fdval(env, fdo); local 78 return convertReturnVal(env, read(fd, buf, len), JNI_TRUE); 85 jint fd = fdval(env, fdo); local 88 return convertReturnVal(env, pread64(fd, buf, len, offset), JNI_TRUE); 95 jint fd = fdval(env, fdo); local 97 return convertLongReturnVal(env, readv(fd, iov, len), JNI_TRUE); 104 jint fd = fdval(env, fdo); local 107 return convertReturnVal(env, write(fd, buf, len), JNI_FALSE); 114 jint fd local 124 jint fd = fdval(env, fdo); local 144 jint fd = fdval(env, fdo); local 179 jint fd = fdval(env, fdo); local 216 jint fd = fdval(env, fdo); local 236 closeFileDescriptor(JNIEnv *env, int fd) argument 247 jint fd = fdval(env, fdo); local 254 jint fd = fdval(env, fdo); local 262 Java_sun_nio_ch_FileDispatcherImpl_closeIntFD(JNIEnv *env, jclass clazz, jint fd) argument [all...] |
/openjdk7/jdk/src/solaris/native/sun/nio/fs/ |
H A D | LinuxNativeDispatcher.c | 39 typedef size_t fgetxattr_func(int fd, const char* name, void* value, size_t size); 40 typedef int fsetxattr_func(int fd, const char* name, void* value, size_t size, int flags); 41 typedef int fremovexattr_func(int fd, const char* name); 42 typedef int flistxattr_func(int fd, char* list, size_t size); 82 jint fd, jlong nameAddress, jlong valueAddress, jint valueLen) 92 res = (*my_fgetxattr_func)(fd, name, value, valueLen); 101 jint fd, jlong nameAddress, jlong valueAddress, jint valueLen) 111 res = (*my_fsetxattr_func)(fd, name, value, valueLen, 0); 119 jint fd, jlong nameAddress) 128 res = (*my_fremovexattr_func)(fd, nam 81 Java_sun_nio_fs_LinuxNativeDispatcher_fgetxattr0(JNIEnv* env, jclass clazz, jint fd, jlong nameAddress, jlong valueAddress, jint valueLen) argument 100 Java_sun_nio_fs_LinuxNativeDispatcher_fsetxattr0(JNIEnv* env, jclass clazz, jint fd, jlong nameAddress, jlong valueAddress, jint valueLen) argument 118 Java_sun_nio_fs_LinuxNativeDispatcher_fremovexattr0(JNIEnv* env, jclass clazz, jint fd, jlong nameAddress) argument 135 Java_sun_nio_fs_LinuxNativeDispatcher_flistxattr(JNIEnv* env, jclass clazz, jint fd, jlong listAddress, jint size) argument [all...] |
/openjdk7/jdk/src/solaris/native/sun/tools/attach/ |
H A D | LinuxVirtualMachine.c | 138 int fd = socket(PF_UNIX, SOCK_STREAM, 0); local 139 if (fd == -1) { 142 return (jint)fd; 151 (JNIEnv *env, jclass cls, jint fd, jstring path) 162 if (connect(fd, (struct sockaddr*)&addr, sizeof(addr)) == -1) { 396 (JNIEnv *env, jclass cls, jint fd) 399 RESTARTABLE(close(fd), res); 408 (JNIEnv *env, jclass cls, jint fd, jbyteArray ba, jint off, jint baLen) 419 RESTARTABLE(read(fd, buf+off, len), n); 438 (JNIEnv *env, jclass cls, jint fd, jbyteArra 150 Java_sun_tools_attach_LinuxVirtualMachine_connect(JNIEnv *env, jclass cls, jint fd, jstring path) argument 395 Java_sun_tools_attach_LinuxVirtualMachine_close(JNIEnv *env, jclass cls, jint fd) argument 407 Java_sun_tools_attach_LinuxVirtualMachine_read(JNIEnv *env, jclass cls, jint fd, jbyteArray ba, jint off, jint baLen) argument 437 Java_sun_tools_attach_LinuxVirtualMachine_write(JNIEnv *env, jclass cls, jint fd, jbyteArray ba, jint off, jint bufLen) argument [all...] |
H A D | SolarisVirtualMachine.c | 60 int fd; local 63 fd = open(p, O_RDWR); 64 if (fd == -1) { 72 if (fd == -1) { 83 return fd; 141 (JNIEnv *env, jclass cls, jint fd) 144 RESTARTABLE(close(fd), ret); 153 (JNIEnv *env, jclass cls, jint fd, jbyteArray ba, jint off, jint baLen) 164 RESTARTABLE(read(fd, buf+off, len), n); 232 (JNIEnv *env, jclass cls, jint fd, jstrin 140 Java_sun_tools_attach_SolarisVirtualMachine_close(JNIEnv *env, jclass cls, jint fd) argument 152 Java_sun_tools_attach_SolarisVirtualMachine_read(JNIEnv *env, jclass cls, jint fd, jbyteArray ba, jint off, jint baLen) argument 231 Java_sun_tools_attach_SolarisVirtualMachine_enqueue(JNIEnv *env, jclass cls, jint fd, jstring cmd, jobjectArray args) argument [all...] |