/openjdk7/hotspot/src/os/bsd/vm/ |
H A D | perfMemory_bsd.cpp | 106 int fd = result; local 110 RESTARTABLE(::write(fd, addr, remaining), result); 123 RESTARTABLE(::close(fd), result); 627 int fd = result; local 630 RESTARTABLE(::ftruncate(fd, (off_t)size), result); 635 RESTARTABLE(::close(fd), result); 645 result = (int)os::seek_to_file_offset(fd, (jlong)(seekpos)); 647 RESTARTABLE(::write(fd, &zero_int, 1), result); 657 return fd; 659 RESTARTABLE(::close(fd), resul 706 int fd; local 800 sharedmem_filesize(int fd, TRAPS) argument 829 int fd; local [all...] |
/openjdk7/hotspot/src/os/linux/vm/ |
H A D | perfMemory_linux.cpp | 106 int fd = result; local 110 RESTARTABLE(::write(fd, addr, remaining), result); 123 RESTARTABLE(::close(fd), result); 627 int fd = result; local 630 RESTARTABLE(::ftruncate(fd, (off_t)size), result); 635 RESTARTABLE(::close(fd), result); 645 result = (int)os::seek_to_file_offset(fd, (jlong)(seekpos)); 647 RESTARTABLE(::write(fd, &zero_int, 1), result); 657 return fd; 659 RESTARTABLE(::close(fd), resul 706 int fd; local 800 sharedmem_filesize(int fd, TRAPS) argument 829 int fd; local [all...] |
/openjdk7/hotspot/src/os/solaris/dtrace/ |
H A D | jvm_dtrace.c | 124 static int file_close(int fd) { argument 126 RESTARTABLE(close(fd), ret); 130 static int file_read(int fd, char* buf, int len) { argument 132 RESTARTABLE(read(fd, buf, len), ret); 183 int fd; local 186 fd = file_open(path, O_RDONLY); 187 if (fd < 0) { 196 file_close(fd); 197 fd = -1; 199 return fd; 205 int fd; local 463 read_status(int fd) argument 490 int fd, status = 0; local [all...] |
/openjdk7/hotspot/src/os/solaris/vm/ |
H A D | dtraceJSDT_solaris.cpp | 54 int fd; local 55 if ((fd = open64(devname, O_RDWR)) < 0) { 58 if ((fd = open64(devname, O_RDWR)) < 0) { 62 return fd; 68 int fd; local 78 fd = dofhelper_open(); 79 if (fd < 0) 81 probe = ioctl(fd, DTRACEHIOC_ADDDOF, &dh); 82 close(fd); 450 int fd; local 462 int fd = dofhelper_open(); local [all...] |
H A D | perfMemory_solaris.cpp | 109 int fd = result; local 113 RESTARTABLE(::write(fd, addr, remaining), result); 125 RESTARTABLE(::close(fd), result); 425 int fd = result; local 432 RESTARTABLE(::read(fd, addr, remaining), result); 440 RESTARTABLE(::close(fd), result); 664 int fd = result; local 667 RESTARTABLE(::ftruncate(fd, (off_t)size), result); 672 RESTARTABLE(::close(fd), result); 676 return fd; 721 int fd; local 815 sharedmem_filesize(int fd, TRAPS) argument 844 int fd; local [all...] |
/openjdk7/hotspot/src/share/vm/adlc/ |
H A D | forms.cpp | 333 FormDict::FormDict( const FormDict & fd) : _form(fd._form) { argument
|
/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | vmError.cpp | 914 int fd = -1; local 920 fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666); 924 if (fd == -1) { 931 fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666); 934 if (fd == -1) { 940 fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666); 944 if (fd != -1) { 949 log.set_fd(fd); 967 FILE* hs_err = ::fdopen(log.fd(), "r"); 974 if (log.fd() ! [all...] |
/openjdk7/jdk/src/solaris/native/com/sun/media/sound/ |
H A D | PLATFORM_API_SolarisOS_PCM.c | 69 int fd = -1; local 83 fd = open(desc.pathctl, O_RDONLY); 85 if (fd < 0) { 94 close(fd); 101 err = ioctl(fd, AUDIO_MIXER_GET_SAMPLE_RATES, sr); 131 close(fd); 157 int fd; member in struct:__anon951 193 info->fd = -1; 207 info->fd = open(desc.path, openMode); 209 if (info->fd < [all...] |
H A D | PLATFORM_API_SolarisOS_Ports.c | 107 int fd; // file descriptor of the pseudo device member in struct:tag_PortInfo 167 int fd = -1; local 173 fd = open(desc.pathctl, O_RDWR); 175 if (fd < 0) { 183 info->fd = fd; 187 if (fd >= 0) { 188 close(fd); 200 if (info->fd >= 0) { 201 close(info->fd); [all...] |
/openjdk7/jdk/src/solaris/native/java/net/ |
H A D | Inet4AddressImpl.c | 583 #define SET_NONBLOCKING(fd) { \ 584 int flags = fcntl(fd, F_GETFL); \ 586 fcntl(fd, F_SETFL, flags); \ 596 ping4(JNIEnv *env, jint fd, struct sockaddr_in* him, jint timeout, argument 614 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); 619 setsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); 626 if (bind(fd, (struct sockaddr*)netif, sizeof(struct sockaddr_in)) < 0) { 628 close(fd); 635 SET_NONBLOCKING(fd); 654 n = sendto(fd, sendbu 718 jint fd; local [all...] |
H A D | Inet6AddressImpl.c | 440 #define SET_NONBLOCKING(fd) { \ 441 int flags = fcntl(fd, F_GETFL); \ 443 fcntl(fd, F_SETFL, flags); \ 448 ping6(JNIEnv *env, jint fd, struct sockaddr_in6* him, jint timeout, argument 471 setsockopt(fd, SOL_RAW, IPV6_CHECKSUM, &csum_offset, sizeof(int)); 480 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); 482 setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)); 485 if (bind(fd, (struct sockaddr*)netif, sizeof(struct sockaddr_in6)) <0) { 487 close(fd); 491 SET_NONBLOCKING(fd); 568 jint fd, sz; local [all...] |
H A D | PlainSocketImpl.c | 81 #define SET_NONBLOCKING(fd) { \ 82 int flags = fcntl(fd, F_GETFL); \ 84 fcntl(fd, F_SETFL, flags); \ 87 #define SET_BLOCKING(fd) { \ 88 int flags = fcntl(fd, F_GETFL); \ 90 fcntl(fd, F_SETFL, flags); \ 95 * which we shutdown but do not close the fd. The result is an fd that 111 * Finally shutdown sv[0] (any reads to this fd will get 140 psi_fdID = (*env)->GetFieldID(env, cls , "fd", 184 int fd; local 272 jint fd; local 555 int fd; local 621 int fd; local 665 jint fd; local 807 jint fd; local 838 jint fd; local 868 jint fd; local 894 int fd; local 990 int fd; local 1084 int n, fd; local [all...] |
H A D | bsd_close.c | 51 * Heap allocated during initialized - one entry per fd 54 pthread_mutex_t lock; /* fd lock */ 55 threadEntry_t *threads; /* threads blocked on fd */ 64 * The fd table and the number of file descriptors 85 * Allocate fd tables and sets up signal handler. 127 * Return the fd table for this fd or NULL is fd out 130 static inline fdEntry_t *getFdEntry(int fd) argument 132 if (fd < 251 NET_Dup2(int fd, int fd2) argument 264 NET_SocketClose(int fd) argument [all...] |
H A D | linux_close.c | 50 * Heap allocated during initialized - one entry per fd 53 pthread_mutex_t lock; /* fd lock */ 54 threadEntry_t *threads; /* threads blocked on fd */ 63 * The fd table and the number of file descriptors 76 * Allocate fd tables and sets up signal handler. 110 * Return the fd table for this fd or NULL is fd out 113 static inline fdEntry_t *getFdEntry(int fd) argument 115 if (fd < 234 NET_Dup2(int fd, int fd2) argument 247 NET_SocketClose(int fd) argument [all...] |
/openjdk7/jdk/src/solaris/native/java/util/ |
H A D | TimeZone_md.c | 111 int fd = -1; local 174 if ((fd = open(pathname, O_RDONLY)) == -1) { 175 fd = 0; 178 if (read(fd, dbuf, size) != (ssize_t) size) { 190 (void) close(fd); 191 fd = 0; 206 if (fd != 0) { 207 (void) close(fd); 227 int fd; local 294 if ((fd 333 int fd; /* file descriptor */ member in struct:iobuffer 361 int fd; local 557 int fd; local [all...] |
/openjdk7/jdk/src/solaris/native/sun/awt/ |
H A D | multi_font.c | 215 ,jobject fd) 242 if ((*env)->IsSameObject(env, fd, temp)) { 213 awtJNI_GetFontDescriptorNumber(JNIEnv * env ,jobject font ,jobject fd) argument
|
/openjdk7/jdk/src/solaris/native/sun/jdga/ |
H A D | dgalock.c | 109 int fd; local 114 fd = dga_draw_devfd(dgadraw); 115 if (ioctl(fd, VIS_GETIDENTIFIER, &visid) != 1) {
|
/openjdk7/jdk/src/solaris/transport/socket/ |
H A D | socket_md.c | 47 dbgsysListen(int fd, int backlog) { argument 48 return listen(fd, backlog); 52 dbgsysConnect(int fd, struct sockaddr *name, int namelen) { argument 53 int rv = connect(fd, name, namelen); 62 dbgsysFinishConnect(int fd, long timeout) { argument 63 int rv = dbgsysPoll(fd, 0, 1, timeout); 74 dbgsysAccept(int fd, struct sockaddr *name, int *namelen) { argument 77 rv = accept(fd, name, namelen); 88 dbgsysRecvFrom(int fd, char *buf, int nBytes, argument 92 rv = recvfrom(fd, bu 99 dbgsysSendTo(int fd, char *buf, int len, int flags, struct sockaddr *to, int tolen) argument 110 dbgsysRecv(int fd, char *buf, int nBytes, int flags) argument 120 dbgsysSend(int fd, char *buf, int nBytes, int flags) argument 144 dbgsysSocketClose(int fd) argument 154 dbgsysBind(int fd, struct sockaddr *name, int namelen) argument 174 dbgsysGetSocketName(int fd, struct sockaddr *name, int *namelen) argument 185 dbgsysSetSocketOption(int fd, jint cmd, jboolean on, jvalue value) argument 232 dbgsysConfigureBlocking(int fd, jboolean blocking) argument 245 dbgsysPoll(int fd, jboolean rd, jboolean wr, long timeout) argument [all...] |
/openjdk7/jdk/src/windows/classes/java/net/ |
H A D | PlainSocketImpl.java | 106 PlainSocketImpl(FileDescriptor fd) { argument 108 impl = new DualStackPlainSocketImpl(fd, exclusiveBind); 110 impl = new TwoStacksPlainSocketImpl(fd, exclusiveBind); 157 // set fd to delegate's fd to be compatible with older releases 158 this.fd = impl.fd; 197 delegate.fd = new FileDescriptor(); 200 // set fd to delegate's fd t 204 setFileDescriptor(FileDescriptor fd) argument [all...] |
/openjdk7/jdk/src/windows/native/java/io/ |
H A D | Win32FileSystem_md.c | 229 WIN32_FIND_DATA fd; local 232 HANDLE h = FindFirstFile(path, &fd); 235 modTime.LowPart = (DWORD) fd.ftLastWriteTime.dwLowDateTime; 236 modTime.HighPart = (LONG) fd.ftLastWriteTime.dwHighDateTime;
|
/openjdk7/jdk/src/windows/native/java/lang/ |
H A D | ProcessImpl_md.c | 74 int fd = 0; local 90 fd = _open(buf, _O_RDONLY); 91 if (fd > 0) { 92 _read(fd, buffer, 2); 94 _lseek(fd, 60L, SEEK_SET); 95 _read(fd, buffer, 2); 97 _lseek(fd, headerLoc, SEEK_SET); 98 _read(fd, buffer, 2); 103 _close(fd);
|
/openjdk7/jdk/src/windows/native/java/net/ |
H A D | Inet6AddressImpl.c | 359 ping6(JNIEnv *env, jint fd, struct SOCKADDR_IN6* him, jint timeout, argument 383 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (const char *)&size, sizeof(size)); 388 setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, (const char *) &ttl, sizeof(ttl)); 395 if (NET_Bind(fd, (struct sockaddr*)netif, sizeof(struct sockaddr_in6)) < 0){ 397 closesocket(fd); 406 WSAEventSelect(fd, hEvent, FD_READ|FD_CONNECT|FD_CLOSE); 444 n = sendto(fd, sendbuf, 64, 0, (struct sockaddr*) him, sizeof(struct sockaddr_in6)); 448 closesocket(fd); 454 closesocket(fd); 461 tmout2 = NET_Wait(env, fd, NET_WAIT_REA 509 jint fd, sz; local [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | AsynchronousSocketChannelImpl.java | 51 protected final FileDescriptor fd; field in class:AsynchronousSocketChannelImpl 89 this.fd = Net.socket(true); 95 FileDescriptor fd, 100 this.fd = fd; 102 this.localAddress = Net.localAddress(fd); 431 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); 432 Net.bind(fd, isa.getAddress(), isa.getPort()); 433 localAddress = Net.localAddress(fd); 467 Net.setSocketOption(fd, Ne 94 AsynchronousSocketChannelImpl(AsynchronousChannelGroupImpl group, FileDescriptor fd, InetSocketAddress remote) argument [all...] |
H A D | SocketChannelImpl.java | 51 private final FileDescriptor fd; field in class:SocketChannelImpl 53 // fd value needed for dev/poll. This value will remain valid 104 this.fd = Net.socket(true); 105 this.fdVal = IOUtil.fdVal(fd); 110 FileDescriptor fd, 115 this.fd = fd; 116 this.fdVal = IOUtil.fdVal(fd); 119 this.localAddress = Net.localAddress(fd); 125 FileDescriptor fd, InetSocketAddres 109 SocketChannelImpl(SelectorProvider sp, FileDescriptor fd, boolean bound) argument 124 SocketChannelImpl(SelectorProvider sp, FileDescriptor fd, InetSocketAddress remote) argument 1024 checkConnect(FileDescriptor fd, boolean block, boolean ready) argument 1028 sendOutOfBandData(FileDescriptor fd, byte data) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/rmi/log/ |
H A D | ReliableLog.java | 796 private final FileDescriptor fd; field in class:ReliableLog.LogFile 805 this.fd = getFD(); 812 fd.sync();
|