Lines Matching refs:fd

41     private FileDescriptor fd;
42 /** whether fd is created internally */
59 FileDescriptor myFd = fd;
76 FileDescriptor myFd = fd;
94 FileDescriptor myFd = fd;
129 FileDescriptor myFd = fd;
143 FileDescriptor myFd = fd;
157 FileDescriptor myFd = fd;
169 private native int pending_native(FileDescriptor fd) throws IOException;
170 private native int available_native(FileDescriptor fd) throws IOException;
171 private native int read_native(FileDescriptor fd) throws IOException;
173 FileDescriptor fd) throws IOException;
175 FileDescriptor fd) throws IOException;
176 private native void write_native(int b, FileDescriptor fd)
178 private native void connectLocal(FileDescriptor fd, String name,
180 private native void bindLocal(FileDescriptor fd, String name, int namespace)
182 private native void listen_native(FileDescriptor fd, int backlog)
184 private native void shutdown(FileDescriptor fd, boolean shutdownInput);
186 FileDescriptor fd) throws IOException;
187 private native int getOption_native(FileDescriptor fd, int optID)
189 private native void setOption_native(FileDescriptor fd, int optID,
193 // (FileDescriptor fd) throws IOException;
198 * @param fd file descriptor of server socket
203 (FileDescriptor fd, LocalSocketImpl s) throws IOException;
217 * @param fd non-null; bound file descriptor
219 /*package*/ LocalSocketImpl(FileDescriptor fd) throws IOException
221 this.fd = fd;
225 return super.toString() + " fd:" + fd;
238 if (fd == null) {
254 fd = Os.socket(OsConstants.AF_UNIX, osType, 0);
269 if ((fd == null) || (mFdCreatedInternally == false)) {
270 fd = null;
274 Os.close(fd);
278 fd = null;
286 if (fd == null) {
290 connectLocal(fd, address.getName(), address.getNamespace().getId());
302 if (fd == null) {
306 bindLocal(fd, endpoint.getName(), endpoint.getNamespace().getId());
311 if (fd == null) {
315 listen_native(fd, backlog);
327 if (fd == null) {
331 s.fd = accept(fd, s);
343 if (fd == null) {
364 if (fd == null) {
395 if (fd == null) {
399 shutdown(fd, true);
409 if (fd == null) {
413 shutdown(fd, false);
418 return fd;
433 if (fd == null) {
441 int value = getOption_native(fd, optID);
464 if (fd == null) {
476 setOption_native(fd, optID, boolValue, intValue);
522 return getPeerCredentials_native(fd);
535 //return getSockName_native(fd);