Searched defs:fd (Results 51 - 75 of 245) sorted by relevance

12345678910

/openjdk7/jdk/src/share/classes/java/nio/
H A DMappedByteBuffer.java77 private final FileDescriptor fd; field in class:MappedByteBuffer
82 FileDescriptor fd)
85 this.fd = fd;
90 this.fd = null;
94 if (fd == null)
203 force0(fd, mappingAddress(offset), mappingLength(offset));
210 private native void force0(FileDescriptor fd, long address, long length); argument
81 MappedByteBuffer(int mark, int pos, int lim, int cap, FileDescriptor fd) argument
/openjdk7/hotspot/src/os/solaris/add_gnu_debuglink/
H A Dadd_gnu_debuglink.c64 int fd; /* descriptor for files */ local
80 if ((fd = open(debug_info_path, O_RDONLY)) == -1) {
89 int len = read(fd, buffer, sizeof buffer);
95 (void) close(fd);
99 if ((fd = open(elf_obj, O_RDWR)) == -1) {
109 if ((elf = elf_begin(fd, ELF_C_RDWR, NULL)) == NULL) {
201 (void) close(fd);
/openjdk7/jdk/make/tools/add_gnu_debuglink/
H A Dadd_gnu_debuglink.c64 int fd; /* descriptor for files */ local
80 if ((fd = open(debug_info_path, O_RDONLY)) == -1) {
89 int len = read(fd, buffer, sizeof buffer);
95 (void) close(fd);
99 if ((fd = open(elf_obj, O_RDWR)) == -1) {
109 if ((elf = elf_begin(fd, ELF_C_RDWR, NULL)) == NULL) {
201 (void) close(fd);
/openjdk7/jdk/make/tools/swing-beans/beaninfo/
H A DBeanInfoUtils.java49 static private void initFeatureDescriptor(FeatureDescriptor fd, String key, Object value) argument
52 fd.setDisplayName((String)value);
56 fd.setExpert(((Boolean)value).booleanValue());
60 fd.setHidden(((Boolean)value).booleanValue());
64 fd.setPreferred(((Boolean)value).booleanValue());
68 fd.setShortDescription((String)value);
75 fd.setValue(key, value);
/openjdk7/jdk/src/macosx/native/sun/nio/ch/
H A DKQueueArrayWrapper.c110 jint kq, jint fd, jint r, jint w)
121 EV_SET(&changes[0], fd, EVFILT_READ, r ? EV_ADD : EV_DELETE, 0, 0, 0);
122 EV_SET(&changes[1], fd, EVFILT_WRITE, w ? EV_ADD : EV_DELETE, 0, 0, 0);
164 Java_sun_nio_ch_KQueueArrayWrapper_interrupt(JNIEnv *env, jclass cls, jint fd) argument
167 if (1 != write(fd, &c, 1)) {
109 Java_sun_nio_ch_KQueueArrayWrapper_register0(JNIEnv *env, jobject this, jint kq, jint fd, jint r, jint w) argument
/openjdk7/jdk/src/solaris/native/sun/nio/ch/
H A DEPollArrayWrapper.c107 jint opcode, jint fd, jint events)
113 event.data.fd = fd;
115 RESTARTABLE(epoll_ctl(epfd, (int)opcode, (int)fd, &event), res);
153 Java_sun_nio_ch_EPollArrayWrapper_interrupt(JNIEnv *env, jobject this, jint fd) argument
157 if (write(fd, fakebuf, 1) < 0) {
158 JNU_ThrowIOExceptionWithLastError(env,"write to interrupt fd failed");
106 Java_sun_nio_ch_EPollArrayWrapper_epollCtl(JNIEnv *env, jobject this, jint epfd, jint opcode, jint fd, jint events) argument
H A DInheritedChannel.c51 Java_sun_nio_ch_InheritedChannel_peerAddress0(JNIEnv *env, jclass cla, jint fd) argument
59 if (getpeername(fd, sa, &sa_len) == 0) {
71 Java_sun_nio_ch_InheritedChannel_peerPort0(JNIEnv *env, jclass cla, jint fd) argument
78 if (getpeername(fd, sa, &sa_len) == 0) {
89 Java_sun_nio_ch_InheritedChannel_soType0(JNIEnv *env, jclass cla, jint fd) argument
93 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void *)&sotype, &arglen) == 0) {
103 Java_sun_nio_ch_InheritedChannel_dup(JNIEnv *env, jclass cla, jint fd) argument
105 int newfd = dup(fd);
113 Java_sun_nio_ch_InheritedChannel_dup2(JNIEnv *env, jclass cla, jint fd, jint fd2) argument
115 if (dup2(fd, fd
146 int fd = open(str, oflag_actual); local
156 Java_sun_nio_ch_InheritedChannel_close0(JNIEnv *env, jclass cla, jint fd) argument
[all...]
H A DPollArrayWrapper.c94 Java_sun_nio_ch_PollArrayWrapper_interrupt(JNIEnv *env, jobject this, jint fd) argument
98 if (write(fd, fakebuf, 1) < 0) {
100 "Write to interrupt fd failed");
/openjdk7/jdk/src/windows/native/sun/nio/ch/
H A DSocketChannelImpl.c66 jint fd = fdval(env, fdo); local
72 FD_SET((u_int)fd, &wr);
73 FD_SET((u_int)fd, &ex);
75 result = select(fd+1, 0, &wr, &ex, block ? NULL : &t);
84 int r = ioctlsocket(fd, FIONBIO, &argp);
104 if (!FD_ISSET(fd, &ex)) {
116 result = getsockopt((SOCKET)fd,
H A DSocketDispatcher.c50 jint fd = fdval(env, fdo); local
62 i = WSARecv((SOCKET)fd, /* Socket */
90 jint fd = fdval(env, fdo); local
115 i = WSARecv((SOCKET)fd, /* Socket */
146 jint fd = fdval(env, fdo); local
160 i = WSASend((SOCKET)fd, /* Socket */
197 jint fd = fdval(env, fdo); local
222 i = WSASend((SOCKET)fd, /* Socket */
249 jint fd = fdval(env, fdo); local
252 if (getsockopt(fd, SOL_SOCKE
263 jint fd = fdval(env, fdo); local
[all...]
/openjdk7/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/
H A DLauncher.c126 * get the list of open file descriptos we read through /proc/self/fd
138 if ((dp = opendir("/proc/self/fd")) == NULL) {
144 int fd = strtol(dirp->d_name, NULL, 10); local
145 if (fd != serviceFd && fd != thisFd) {
146 close(fd);
/openjdk7/langtools/src/share/classes/com/sun/tools/javadoc/
H A DSerialFieldTagImpl.java175 void mapToFieldDocImpl(FieldDocImpl fd) { argument
176 matchingField = fd;
/openjdk7/jdk/src/share/native/java/io/
H A DRandomAccessFile.c41 jfieldID raf_fd; /* id for jobject 'fd' in java.io.RandomAccessFile */
45 raf_fd = (*env)->GetFieldID(env, fdClass, "fd", "Ljava/io/FileDescriptor;");
90 FD fd; local
93 fd = GET_FD(this, raf_fd);
94 if (fd == -1) {
98 if ((ret = IO_Lseek(fd, 0L, SEEK_CUR)) == -1) {
106 FD fd; local
110 fd = GET_FD(this, raf_fd);
111 if (fd == -1) {
115 if ((cur = IO_Lseek(fd,
129 FD fd; local
147 FD fd; local
[all...]
H A Dio_util.c42 FD fd = GET_FD(this, fid); local
43 if (fd == -1) {
47 nread = (jint)IO_Read(fd, &ret, 1);
82 FD fd; local
106 fd = GET_FD(this, fid);
107 if (fd == -1) {
111 nread = (jint)IO_Read(fd, buf, len);
134 FD fd = GET_FD(this, fid); local
135 if (fd == -1) {
140 n = (jint)IO_Append(fd,
158 FD fd; local
[all...]
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/gopher/
H A DGopherClient.java345 GopherInputStream(NetworkClient o, InputStream fd) { argument
346 super(fd);
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DAbstractPollArrayWrapper.java54 // The poll fd array
63 // Access methods for fd structures
89 void putDescriptor(int i, int fd) { argument
91 pollArray.putInt(offset, fd);
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DPort.java55 // maps fd to "pollable" channel
68 final void register(int fd, PollableChannel ch) { argument
73 fdToChannel.put(Integer.valueOf(fd), ch);
82 final void unregister(int fd) { argument
87 fdToChannel.remove(Integer.valueOf(fd));
108 abstract void startPoll(int fd, int events); argument
121 final Object attachForeignChannel(final Channel channel, FileDescriptor fd) { argument
122 int fdVal = IOUtil.fdVal(fd);
151 for (Integer fd: fdToChannel.keySet()) {
152 channels[count++] = fdToChannel.get(fd);
[all...]
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DSolarisAclFileAttributeView.java294 private static boolean isAclsEnabled(int fd) { argument
296 long enabled = fpathconf(fd, _PC_ACL_ENABLED);
312 int fd = file.openForAttributeAccess(followLinks);
317 int n = facl(fd, ACE_GETACL, MAX_ACL_ENTRIES, address);
321 if ((x.errno() == ENOSYS) || !isAclsEnabled(fd)) {
331 close(fd);
341 int fd = file.openForAttributeAccess(followLinks);
350 facl(fd, ACE_SETACL, n, address);
352 if ((x.errno() == ENOSYS) || !isAclsEnabled(fd)) {
363 close(fd);
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DFileInputStream.java53 private final FileDescriptor fd; field in class:FileInputStream
143 fd = new FileDescriptor();
144 fd.incrementAndGetUseCount();
181 fd = fdObj;
189 fd.incrementAndGetUseCount();
346 fd.decrementAndGetUseCount();
353 int useCount = fd.decrementAndGetUseCount();
375 if (fd != null) return fd;
398 channel = FileChannelImpl.open(fd, pat
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DDatagramSocketImpl.java48 protected FileDescriptor fd; field in class:DatagramSocketImpl
242 return fd;
/openjdk7/hotspot/src/share/vm/ci/
H A DciField.cpp146 ciField::ciField(fieldDescriptor *fd): _known_to_link_with_put(NULL), _known_to_link_with_get(NULL) { argument
153 _name = env->get_symbol(fd->name());
154 _signature = env->get_symbol(fd->signature());
156 BasicType field_type = fd->field_type();
166 initialize_from(fd);
185 void ciField::initialize_from(fieldDescriptor* fd) { argument
187 _flags = ciFlags(fd->access_flags());
188 _offset = fd->offset();
189 _holder = CURRENT_ENV->get_object(fd->field_holder())->as_instance_klass();
/openjdk7/hotspot/src/os/windows/vm/
H A Dos_windows.inline.hpp97 inline size_t os::read(int fd, void *buf, unsigned int nBytes) { argument
98 return ::read(fd, buf, nBytes);
101 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { argument
102 return ::read(fd, buf, nBytes);
105 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { argument
106 return ::write(fd, buf, nBytes);
109 inline int os::close(int fd) { argument
110 return ::close(fd);
/openjdk7/jdk/make/tools/reorder/tools/
H A Dremove_mcount.c113 int fd; local
134 fd = open(fullName, O_RDWR);
135 if (fd < 0)
137 elf = elf_begin(fd, ELF_C_RDWR, (Elf *)0);
/openjdk7/hotspot/src/share/vm/prims/
H A Dwhitebox.cpp150 fieldDescriptor fd; local
152 klassOop res = ik->find_field(name_symbol, signature_symbol, &fd);
160 int dest_offset = fd.offset();
/openjdk7/jdk/src/solaris/native/com/sun/management/
H A DSolarisOperatingSystem.c165 int fd; local
167 if ((fd = open(path, O_RDONLY)) < 0) {
170 if (pread(fd, info, s, o) != s) {
173 close(fd);

Completed in 121 milliseconds

12345678910