fd 24 android_webview/browser/renderer_host/print_manager.cc int fd, fd 28 android_webview/browser/renderer_host/print_manager.cc fd_(fd), fd 63 android_webview/browser/renderer_host/print_manager.cc temp_file_fd->fd = fd_; fd 47 android_webview/browser/renderer_host/print_manager.h int fd, fd 40 android_webview/java/src/org/chromium/android_webview/AwPdfExporter.java public void exportToPdf(final ParcelFileDescriptor fd, PrintAttributes attributes, fd 43 android_webview/java/src/org/chromium/android_webview/AwPdfExporter.java if (fd == null) { fd 67 android_webview/java/src/org/chromium/android_webview/AwPdfExporter.java mFd = fd; fd 138 android_webview/java/src/org/chromium/android_webview/AwPdfExporter.java private native void nativeExportToPdf(long nativeAwPdfExporter, int fd, fd 47 android_webview/native/aw_pdf_exporter.cc int fd, fd 52 android_webview/native/aw_pdf_exporter.cc new PrintManager(web_contents_, print_settings_.get(), fd, this)); fd 37 android_webview/native/aw_pdf_exporter.h int fd, fd 106 android_webview/renderer/print_web_view_helper_linux.cc base::FileDescriptor fd; fd 110 android_webview/renderer/print_web_view_helper_linux.cc &fd, fd 112 android_webview/renderer/print_web_view_helper_linux.cc if (!metafile.SaveToFD(fd)) fd 147 android_webview/renderer/print_web_view_helper_linux.cc printed_page_params.metafile_data_handle.fd = -1; fd 31 base/android/content_uri_utils.cc jint fd = Java_ContentUriUtils_openContentUriForRead( fd 33 base/android/content_uri_utils.cc if (fd < 0) fd 35 base/android/content_uri_utils.cc return File(fd); fd 927 base/android/java/src/org/chromium/base/library_loader/Linker.java ParcelFileDescriptor fd = in.readFileDescriptor(); fd 928 base/android/java/src/org/chromium/base/library_loader/Linker.java mRelroFd = fd.detachFd(); fd 940 base/android/java/src/org/chromium/base/library_loader/Linker.java ParcelFileDescriptor fd = ParcelFileDescriptor.fromFd(mRelroFd); fd 941 base/android/java/src/org/chromium/base/library_loader/Linker.java fd.writeToParcel(out, 0); fd 942 base/android/java/src/org/chromium/base/library_loader/Linker.java fd.close(); fd 50 base/debug/proc_maps_linux.cc base::ScopedFD fd(HANDLE_EINTR(open("/proc/self/maps", O_RDONLY))); fd 51 base/debug/proc_maps_linux.cc if (!fd.is_valid()) { fd 64 base/debug/proc_maps_linux.cc ssize_t bytes_read = HANDLE_EINTR(read(fd.get(), buffer, kReadSize)); fd 500 base/debug/stack_trace_posix.cc int fd = -1; fd 512 base/debug/stack_trace_posix.cc fd = dup(it->second); fd 518 base/debug/stack_trace_posix.cc if (fd >= 0 && lseek(fd, 0, SEEK_SET) < 0) { fd 520 base/debug/stack_trace_posix.cc fd = -1; fd 525 base/debug/stack_trace_posix.cc return fd; fd 635 base/debug/stack_trace_posix.cc int fd = open(region.path.c_str(), O_RDONLY | O_CLOEXEC); fd 636 base/debug/stack_trace_posix.cc if (fd >= 0) { fd 637 base/debug/stack_trace_posix.cc modules_.insert(std::make_pair(region.path, fd)); fd 21 base/file_descriptor_posix.h FileDescriptor() : fd(-1), auto_close(false) {} fd 23 base/file_descriptor_posix.h FileDescriptor(int ifd, bool iauto_close) : fd(ifd), auto_close(iauto_close) { fd 26 base/file_descriptor_posix.h FileDescriptor(File file) : fd(file.TakePlatformFile()), auto_close(true) {} fd 29 base/file_descriptor_posix.h return (fd == other.fd && auto_close == other.auto_close); fd 38 base/file_descriptor_posix.h return other.fd < fd; fd 41 base/file_descriptor_posix.h int fd; fd 228 base/file_util.cc int fd = _fileno(file); fd 229 base/file_util.cc if (_chsize(fd, current_offset) != 0) fd 232 base/file_util.cc int fd = fileno(file); fd 233 base/file_util.cc if (ftruncate(fd, current_offset) != 0) fd 164 base/file_util.h BASE_EXPORT bool ReadFromFD(int fd, char* buffer, size_t bytes); fd 323 base/file_util.h BASE_EXPORT int WriteFileDescriptor(const int fd, const char* data, int size); fd 169 base/file_util_posix.cc ScopedFD fd(CreateAndOpenFdForTemporaryFile(FilePath("/dev/shm"), &path)); fd 170 base/file_util_posix.cc if (fd.is_valid()) { fd 176 base/file_util_posix.cc void *mapping = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd.get(), 0); fd 372 base/file_util_posix.cc bool ReadFromFD(int fd, char* buffer, size_t bytes) { fd 376 base/file_util_posix.cc HANDLE_EINTR(read(fd, buffer + total_read, bytes - total_read)); fd 497 base/file_util_posix.cc int fd = CreateAndOpenFdForTemporaryFile(directory, path); fd 498 base/file_util_posix.cc if (fd < 0) fd 500 base/file_util_posix.cc close(fd); fd 505 base/file_util_posix.cc int fd = CreateAndOpenFdForTemporaryFile(dir, path); fd 506 base/file_util_posix.cc if (fd < 0) fd 509 base/file_util_posix.cc FILE* file = fdopen(fd, "a+"); fd 511 base/file_util_posix.cc close(fd); fd 517 base/file_util_posix.cc int fd = CreateAndOpenFdForTemporaryFile(dir, temp_file); fd 518 base/file_util_posix.cc return ((fd >= 0) && !IGNORE_EINTR(close(fd))); fd 656 base/file_util_posix.cc int fd = HANDLE_EINTR(open(filename.value().c_str(), O_RDONLY)); fd 657 base/file_util_posix.cc if (fd < 0) fd 660 base/file_util_posix.cc ssize_t bytes_read = HANDLE_EINTR(read(fd, data, size)); fd 661 base/file_util_posix.cc if (int ret = IGNORE_EINTR(close(fd)) < 0) fd 668 base/file_util_posix.cc int fd = HANDLE_EINTR(creat(filename.value().c_str(), 0666)); fd 669 base/file_util_posix.cc if (fd < 0) fd 672 base/file_util_posix.cc int bytes_written = WriteFileDescriptor(fd, data, size); fd 673 base/file_util_posix.cc if (int ret = IGNORE_EINTR(close(fd)) < 0) fd 678 base/file_util_posix.cc int WriteFileDescriptor(const int fd, const char* data, int size) { fd 684 base/file_util_posix.cc HANDLE_EINTR(write(fd, data + bytes_written_total, fd 695 base/file_util_posix.cc int fd = HANDLE_EINTR(open(filename.value().c_str(), O_WRONLY | O_APPEND)); fd 696 base/file_util_posix.cc if (fd < 0) fd 699 base/file_util_posix.cc int bytes_written = WriteFileDescriptor(fd, data, size); fd 700 base/file_util_posix.cc if (int ret = IGNORE_EINTR(close(fd)) < 0) fd 2494 base/file_util_unittest.cc void CloseWithScopedFD(int fd) { fd 2495 base/file_util_unittest.cc base::ScopedFD fd_closer(fd); fd 27 base/files/dir_reader_fallback.h int fd() const { return -1; } fd 80 base/files/dir_reader_linux.h int fd() const { fd 40 base/files/dir_reader_posix_unittest.cc const int fd = open(buf, O_CREAT | O_RDONLY | O_EXCL, 0600); fd 41 base/files/dir_reader_posix_unittest.cc PCHECK(fd >= 0); fd 42 base/files/dir_reader_posix_unittest.cc PCHECK(close(fd) == 0); fd 59 base/files/file_path_watcher_kqueue.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 60 base/files/file_path_watcher_kqueue.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 131 base/files/file_path_watcher_kqueue.cc static void CloseFileDescriptor(uintptr_t* fd); fd 181 base/files/file_path_watcher_kqueue.cc uintptr_t fd = kNoFileDescriptor; fd 183 base/files/file_path_watcher_kqueue.cc fd = FileDescriptorForPath(built_path); fd 184 base/files/file_path_watcher_kqueue.cc if (fd == kNoFileDescriptor) { fd 193 base/files/file_path_watcher_kqueue.cc EV_SET(&event, fd, EVFILT_VNODE, (EV_ADD | EV_CLEAR | EV_RECEIPT), fd 202 base/files/file_path_watcher_kqueue.cc int fd = HANDLE_EINTR(open(path.value().c_str(), O_EVTONLY)); fd 203 base/files/file_path_watcher_kqueue.cc if (fd == -1) fd 205 base/files/file_path_watcher_kqueue.cc return fd; fd 208 base/files/file_path_watcher_kqueue.cc void FilePathWatcherImpl::CloseFileDescriptor(uintptr_t* fd) { fd 209 base/files/file_path_watcher_kqueue.cc if (*fd == kNoFileDescriptor) { fd 213 base/files/file_path_watcher_kqueue.cc if (IGNORE_EINTR(close(*fd)) != 0) { fd 216 base/files/file_path_watcher_kqueue.cc *fd = kNoFileDescriptor; fd 354 base/files/file_path_watcher_kqueue.cc void FilePathWatcherImpl::OnFileCanReadWithoutBlocking(int fd) { fd 356 base/files/file_path_watcher_kqueue.cc DCHECK_EQ(fd, kqueue_); fd 427 base/files/file_path_watcher_kqueue.cc void FilePathWatcherImpl::OnFileCanWriteWithoutBlocking(int fd) { fd 35 base/files/file_posix.cc static int CallFstat(int fd, stat_wrapper_t *sb) { fd 37 base/files/file_posix.cc return fstat(fd, sb); fd 40 base/files/file_posix.cc static int CallFstat(int fd, stat_wrapper_t *sb) { fd 42 base/files/file_posix.cc return fstat64(fd, sb); fd 21 base/files/scoped_file.cc void ScopedFDCloseTraits::Free(int fd) { fd 29 base/files/scoped_file.cc PCHECK(0 == IGNORE_EINTR(close(fd))); fd 25 base/files/scoped_file.h static void Free(int fd); fd 183 base/linux_util.cc bool FileDescriptorGetInode(ino_t* inode_out, int fd) { fd 187 base/linux_util.cc if (fstat(fd, &buf) < 0) fd 224 base/linux_util.cc DIR* fd = opendir(buf); fd 225 base/linux_util.cc if (!fd) fd 228 base/linux_util.cc while ((dent = readdir(fd))) { fd 238 base/linux_util.cc closedir(fd); fd 249 base/linux_util.cc closedir(fd); fd 285 base/linux_util.cc int fd = open(buf, O_RDONLY); fd 286 base/linux_util.cc if (fd < 0) fd 290 base/linux_util.cc bool read_ret = ReadFromFD(fd, syscall_data.get(), expected_data.length()); fd 291 base/linux_util.cc close(fd); fd 30 base/linux_util.h BASE_EXPORT bool FileDescriptorGetInode(ino_t* inode_out, int fd); fd 13 base/logging.cc #define write(fd, buf, count) _write(fd, buf, static_cast<unsigned int>(count)) fd 68 base/mac/close_nocancel.cc int close_implementation(int fd); fd 70 base/mac/close_nocancel.cc int close_interface(int fd) { fd 71 base/mac/close_nocancel.cc return close_implementation(fd); fd 69 base/memory/discardable_memory_allocator_android.cc base::ScopedFD fd(ashmem_create_region(name, size)); fd 70 base/memory/discardable_memory_allocator_android.cc if (!fd.is_valid()) { fd 75 base/memory/discardable_memory_allocator_android.cc const int err = ashmem_set_prot_region(fd.get(), PROT_READ | PROT_WRITE); fd 85 base/memory/discardable_memory_allocator_android.cc NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0); fd 91 base/memory/discardable_memory_allocator_android.cc *out_fd = fd.release(); fd 96 base/memory/discardable_memory_allocator_android.cc bool CloseAshmemRegion(int fd, size_t size, void* address) { fd 99 base/memory/discardable_memory_allocator_android.cc close(fd); fd 102 base/memory/discardable_memory_allocator_android.cc return close(fd) == 0; fd 105 base/memory/discardable_memory_allocator_android.cc DiscardableMemoryLockStatus LockAshmemRegion(int fd, size_t off, size_t size) { fd 106 base/memory/discardable_memory_allocator_android.cc const int result = ashmem_pin_region(fd, off, size); fd 111 base/memory/discardable_memory_allocator_android.cc bool UnlockAshmemRegion(int fd, size_t off, size_t size) { fd 112 base/memory/discardable_memory_allocator_android.cc const int failed = ashmem_unpin_region(fd, off, size); fd 127 base/memory/discardable_memory_allocator_android.cc int fd, fd 132 base/memory/discardable_memory_allocator_android.cc fd_(fd), fd 179 base/memory/discardable_memory_allocator_android.cc int fd; fd 181 base/memory/discardable_memory_allocator_android.cc if (!CreateAshmemRegion(name.c_str(), size, &fd, &base)) fd 183 base/memory/discardable_memory_allocator_android.cc return make_scoped_ptr(new AshmemRegion(fd, size, base, allocator)); fd 273 base/memory/discardable_memory_allocator_android.cc AshmemRegion(int fd, fd 277 base/memory/discardable_memory_allocator_android.cc : fd_(fd), fd 29 base/memory/shared_memory_nacl.cc : mapped_file_(handle.fd), fd 39 base/memory/shared_memory_nacl.cc : mapped_file_(handle.fd), fd 54 base/memory/shared_memory_nacl.cc return handle.fd >= 0; fd 64 base/memory/shared_memory_nacl.cc DCHECK_GE(handle.fd, 0); fd 65 base/memory/shared_memory_nacl.cc if (close(handle.fd) < 0) fd 159 base/memory/shared_memory_nacl.cc new_handle->fd = new_fd; fd 53 base/memory/shared_memory_posix.cc : mapped_file_(handle.fd), fd 61 base/memory/shared_memory_posix.cc if (fstat(handle.fd, &st) == 0) { fd 70 base/memory/shared_memory_posix.cc : mapped_file_(handle.fd), fd 88 base/memory/shared_memory_posix.cc return handle.fd >= 0; fd 98 base/memory/shared_memory_posix.cc DCHECK_GE(handle.fd, 0); fd 99 base/memory/shared_memory_posix.cc if (close(handle.fd) < 0) fd 167 base/memory/shared_memory_posix.cc int fd = HANDLE_EINTR( fd 169 base/memory/shared_memory_posix.cc if (fd == -1 && options.open_existing_deprecated) { fd 177 base/memory/shared_memory_posix.cc fd = HANDLE_EINTR( fd 186 base/memory/shared_memory_posix.cc if (fd >= 0 && fd 187 base/memory/shared_memory_posix.cc (fstat(fd, &sb) != 0 || sb.st_uid != real_uid || fd 191 base/memory/shared_memory_posix.cc close(fd); fd 203 base/memory/shared_memory_posix.cc close(fd); fd 204 base/memory/shared_memory_posix.cc fd = -1; fd 206 base/memory/shared_memory_posix.cc if (fd >= 0) { fd 208 base/memory/shared_memory_posix.cc fp.reset(fdopen(fd, "a+")); fd 458 base/memory/shared_memory_posix.cc new_handle->fd = new_fd; fd 413 base/memory/shared_memory_unittest.cc EXPECT_EQ(O_RDONLY, fcntl(handle.fd, F_GETFL) & O_ACCMODE) fd 418 base/memory/shared_memory_unittest.cc NULL, contents.size(), PROT_READ | PROT_WRITE, MAP_SHARED, handle.fd, 0); fd 558 base/memory/shared_memory_unittest.cc int shm_fd = shared_memory.handle().fd; fd 584 base/memory/shared_memory_unittest.cc int shm_fd = shared_memory.handle().fd; fd 699 base/message_loop/message_loop.cc bool MessageLoopForIO::WatchFileDescriptor(int fd, fd 705 base/message_loop/message_loop.cc fd, fd 714 base/message_loop/message_loop.cc bool MessageLoopForIO::WatchFileDescriptor(int fd, fd 720 base/message_loop/message_loop.cc fd, fd 687 base/message_loop/message_loop.h bool WatchFileDescriptor(int fd, fd 700 base/message_loop/message_loop.h bool WatchFileDescriptor(int fd, fd 767 base/message_loop/message_loop_unittest.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE { fd 770 base/message_loop/message_loop_unittest.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { fd 785 base/message_loop/message_loop_unittest.cc int fd = pipefds[1]; fd 793 base/message_loop/message_loop_unittest.cc message_loop.WatchFileDescriptor(fd, fd 810 base/message_loop/message_loop_unittest.cc int fd = pipefds[1]; fd 818 base/message_loop/message_loop_unittest.cc message_loop.WatchFileDescriptor(fd, fd 150 base/message_loop/message_pump_glib.cc wakeup_gpollfd_->fd = wakeup_pipe_read_; fd 51 base/message_loop/message_pump_io_ios.cc int fd, fd 55 base/message_loop/message_pump_io_ios.cc watcher_->OnFileCanReadWithoutBlocking(fd); fd 60 base/message_loop/message_pump_io_ios.cc int fd, fd 64 base/message_loop/message_pump_io_ios.cc watcher_->OnFileCanWriteWithoutBlocking(fd); fd 75 base/message_loop/message_pump_io_ios.cc int fd, fd 80 base/message_loop/message_pump_io_ios.cc DCHECK_GE(fd, 0); fd 104 base/message_loop/message_pump_io_ios.cc kCFAllocatorDefault, fd, false, HandleFdIOEvent, &source_context)); fd 128 base/message_loop/message_pump_io_ios.cc if (CFFileDescriptorGetNativeDescriptor(fdref) != fd) { fd 131 base/message_loop/message_pump_io_ios.cc << " != " << fd; fd 185 base/message_loop/message_pump_io_ios.cc int fd = CFFileDescriptorGetNativeDescriptor(fdref); fd 189 base/message_loop/message_pump_io_ios.cc controller->OnFileCanWriteWithoutBlocking(fd, pump); fd 198 base/message_loop/message_pump_io_ios.cc controller->OnFileCanReadWithoutBlocking(fd, pump); fd 44 base/message_loop/message_pump_io_ios.h virtual void OnFileCanReadWithoutBlocking(int fd) = 0; fd 45 base/message_loop/message_pump_io_ios.h virtual void OnFileCanWriteWithoutBlocking(int fd) = 0; fd 80 base/message_loop/message_pump_io_ios.h void OnFileCanReadWithoutBlocking(int fd, MessagePumpIOSForIO* pump); fd 81 base/message_loop/message_pump_io_ios.h void OnFileCanWriteWithoutBlocking(int fd, MessagePumpIOSForIO* pump); fd 113 base/message_loop/message_pump_io_ios.h bool WatchFileDescriptor(int fd, fd 70 base/message_loop/message_pump_io_ios_unittest.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE {} fd 71 base/message_loop/message_pump_io_ios_unittest.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} fd 46 base/message_loop/message_pump_libevent.cc static int SetNonBlocking(int fd) { fd 47 base/message_loop/message_pump_libevent.cc int flags = fcntl(fd, F_GETFL, 0); fd 50 base/message_loop/message_pump_libevent.cc return fcntl(fd, F_SETFL, flags | O_NONBLOCK); fd 93 base/message_loop/message_pump_libevent.cc int fd, MessagePumpLibevent* pump) { fd 99 base/message_loop/message_pump_libevent.cc watcher_->OnFileCanReadWithoutBlocking(fd); fd 104 base/message_loop/message_pump_libevent.cc int fd, MessagePumpLibevent* pump) { fd 107 base/message_loop/message_pump_libevent.cc watcher_->OnFileCanWriteWithoutBlocking(fd); fd 138 base/message_loop/message_pump_libevent.cc bool MessagePumpLibevent::WatchFileDescriptor(int fd, fd 143 base/message_loop/message_pump_libevent.cc DCHECK_GE(fd, 0); fd 176 base/message_loop/message_pump_libevent.cc if (EVENT_FD(evt.get()) != fd) { fd 177 base/message_loop/message_pump_libevent.cc NOTREACHED() << "FDs don't match" << EVENT_FD(evt.get()) << "!=" << fd; fd 183 base/message_loop/message_pump_libevent.cc event_set(evt.get(), fd, event_mask, OnLibeventNotification, controller); fd 213 base/message_loop/message_pump_libevent.cc static void timer_callback(int fd, short events, void *context) fd 341 base/message_loop/message_pump_libevent.cc void MessagePumpLibevent::OnLibeventNotification(int fd, short flags, fd 351 base/message_loop/message_pump_libevent.cc controller->OnFileCanWriteWithoutBlocking(fd, pump); fd 356 base/message_loop/message_pump_libevent.cc controller->OnFileCanReadWithoutBlocking(fd, pump); fd 47 base/message_loop/message_pump_libevent.h virtual void OnFileCanReadWithoutBlocking(int fd) = 0; fd 48 base/message_loop/message_pump_libevent.h virtual void OnFileCanWriteWithoutBlocking(int fd) = 0; fd 83 base/message_loop/message_pump_libevent.h void OnFileCanReadWithoutBlocking(int fd, MessagePumpLibevent* pump); fd 84 base/message_loop/message_pump_libevent.h void OnFileCanWriteWithoutBlocking(int fd, MessagePumpLibevent* pump); fd 115 base/message_loop/message_pump_libevent.h bool WatchFileDescriptor(int fd, fd 140 base/message_loop/message_pump_libevent.h static void OnLibeventNotification(int fd, short flags, fd 66 base/message_loop/message_pump_libevent_unittest.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE {} fd 67 base/message_loop/message_pump_libevent_unittest.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} fd 237 base/message_loop/message_pump_x11.cc x_poll_->fd = ConnectionNumber(display); fd 21 base/os_compat_android.cc int futimes(int fd, const struct timeval tv[2]) { fd 23 base/os_compat_android.cc return syscall(__NR_utimensat, fd, NULL, NULL, 0); fd 37 base/os_compat_android.cc return syscall(__NR_utimensat, fd, NULL, ts, 0); fd 13 base/os_compat_android.h extern "C" int futimes(int fd, const struct timeval tv[2]); fd 24 base/os_compat_android.h inline int lockf(int fd, int cmd, off_t ignored_len) { fd 25 base/os_compat_android.h return flock(fd, cmd); fd 34 base/platform_file_posix.cc static int CallFstat(int fd, stat_wrapper_t *sb) { fd 36 base/platform_file_posix.cc return fstat(fd, sb); fd 40 base/platform_file_posix.cc static int CallFstat(int fd, stat_wrapper_t *sb) { fd 42 base/platform_file_posix.cc return fstat64(fd, sb); fd 123 base/platform_file_win.cc int fd = _open_osfhandle(reinterpret_cast<intptr_t>(file), 0); fd 124 base/platform_file_win.cc if (fd < 0) fd 126 base/platform_file_win.cc return _fdopen(fd, mode); fd 86 base/posix/file_descriptor_shuffle.cc bool FileDescriptorTableInjection::Duplicate(int* result, int fd) { fd 87 base/posix/file_descriptor_shuffle.cc *result = HANDLE_EINTR(dup(fd)); fd 95 base/posix/file_descriptor_shuffle.cc void FileDescriptorTableInjection::Close(int fd) { fd 96 base/posix/file_descriptor_shuffle.cc int ret = IGNORE_EINTR(close(fd)); fd 37 base/posix/file_descriptor_shuffle.h virtual bool Duplicate(int* result, int fd) = 0; fd 42 base/posix/file_descriptor_shuffle.h virtual void Close(int fd) = 0; fd 51 base/posix/file_descriptor_shuffle.h virtual bool Duplicate(int* result, int fd) OVERRIDE; fd 53 base/posix/file_descriptor_shuffle.h virtual void Close(int fd) OVERRIDE; fd 47 base/posix/file_descriptor_shuffle_unittest.cc virtual bool Duplicate(int* result, int fd) OVERRIDE { fd 49 base/posix/file_descriptor_shuffle_unittest.cc actions_.push_back(Action(Action::DUPLICATE, *result, fd)); fd 58 base/posix/file_descriptor_shuffle_unittest.cc virtual void Close(int fd) OVERRIDE { fd 59 base/posix/file_descriptor_shuffle_unittest.cc actions_.push_back(Action(Action::CLOSE, fd)); fd 253 base/posix/file_descriptor_shuffle_unittest.cc virtual bool Duplicate(int* result, int fd) OVERRIDE { fd 261 base/posix/file_descriptor_shuffle_unittest.cc virtual void Close(int fd) OVERRIDE {} fd 40 base/posix/global_descriptors.cc void GlobalDescriptors::Set(Key key, int fd) { fd 44 base/posix/global_descriptors.cc i->second = fd; fd 49 base/posix/global_descriptors.cc descriptors_.push_back(std::make_pair(key, fd)); fd 60 base/posix/global_descriptors.h void Set(Key key, int fd); fd 20 base/posix/unix_domain_socket_linux.cc bool UnixDomainSocket::SendMsg(int fd, fd 50 base/posix/unix_domain_socket_linux.cc const ssize_t r = HANDLE_EINTR(sendmsg(fd, &msg, flags)); fd 57 base/posix/unix_domain_socket_linux.cc ssize_t UnixDomainSocket::RecvMsg(int fd, fd 61 base/posix/unix_domain_socket_linux.cc return UnixDomainSocket::RecvMsgWithFlags(fd, buf, length, 0, fds); fd 65 base/posix/unix_domain_socket_linux.cc ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, fd 81 base/posix/unix_domain_socket_linux.cc const ssize_t r = HANDLE_EINTR(recvmsg(fd, &msg, flags)); fd 118 base/posix/unix_domain_socket_linux.cc ssize_t UnixDomainSocket::SendRecvMsg(int fd, fd 123 base/posix/unix_domain_socket_linux.cc return UnixDomainSocket::SendRecvMsgWithFlags(fd, reply, max_reply_len, fd 129 base/posix/unix_domain_socket_linux.cc ssize_t UnixDomainSocket::SendRecvMsgWithFlags(int fd, fd 144 base/posix/unix_domain_socket_linux.cc if (!SendMsg(fd, request.data(), request.size(), fd_vector)) { fd 23 base/posix/unix_domain_socket_linux.h static bool SendMsg(int fd, fd 30 base/posix/unix_domain_socket_linux.h static ssize_t RecvMsg(int fd, fd 53 base/posix/unix_domain_socket_linux.h static ssize_t SendRecvMsg(int fd, fd 61 base/posix/unix_domain_socket_linux.h static ssize_t SendRecvMsgWithFlags(int fd, fd 69 base/posix/unix_domain_socket_linux.h static ssize_t RecvMsgWithFlags(int fd, fd 221 base/process/launch_posix.cc const int fd = static_cast<int>(i); fd 222 base/process/launch_posix.cc if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) fd 227 base/process/launch_posix.cc if (fd == saved_mapping[j].dest) fd 235 base/process/launch_posix.cc close(fd); fd 240 base/process/launch_posix.cc const int dir_fd = fd_dir.fd(); fd 249 base/process/launch_posix.cc const long int fd = strtol(fd_dir.name(), &endptr, 10); fd 250 base/process/launch_posix.cc if (fd_dir.name()[0] == 0 || *endptr || fd < 0 || errno) fd 252 base/process/launch_posix.cc if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) fd 257 base/process/launch_posix.cc if (fd == saved_mapping[i].dest) fd 262 base/process/launch_posix.cc if (fd == dir_fd) fd 269 base/process/launch_posix.cc if (fd < static_cast<int>(max_fds)) { fd 270 base/process/launch_posix.cc int ret = IGNORE_EINTR(close(fd)); fd 484 base/process/process_util_unittest.cc int fd; fd 485 base/process/process_util_unittest.cc if ((fd = HANDLE_EINTR(dup(i))) != -1) { fd 486 base/process/process_util_unittest.cc close(fd); fd 49 base/rand_util_posix.cc const int urandom_fd = g_urandom_fd.Pointer()->fd(); fd 56 base/rand_util_posix.cc return g_urandom_fd.Pointer()->fd(); fd 135 base/test/launcher/test_launcher.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { fd 145 base/test/launcher/test_launcher.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE { fd 49 base/test/multiprocess_test_android.cc for (int fd = base; fd < getdtablesize(); ++fd) { fd 50 base/test/multiprocess_test_android.cc if (fds_to_keep_open.find(fd) == fds_to_keep_open.end()) { fd 51 base/test/multiprocess_test_android.cc close(fd); fd 18 base/test/test_file_util_linux.cc ScopedFD fd(open(file.value().c_str(), O_RDONLY)); fd 19 base/test/test_file_util_linux.cc if (!fd.is_valid()) fd 21 base/test/test_file_util_linux.cc if (fdatasync(fd.get()) != 0) fd 23 base/test/test_file_util_linux.cc if (posix_fadvise(fd.get(), 0, 0, POSIX_FADV_DONTNEED) != 0) fd 140 base/third_party/symbolize/symbolize.cc static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) { fd 141 base/third_party/symbolize/symbolize.cc SAFE_ASSERT(fd >= 0); fd 147 base/third_party/symbolize/symbolize.cc NO_INTR(len = read(fd, buf0 + num_bytes, count - num_bytes)); fd 163 base/third_party/symbolize/symbolize.cc static ssize_t ReadFromOffset(const int fd, void *buf, fd 165 base/third_party/symbolize/symbolize.cc off_t off = lseek(fd, offset, SEEK_SET); fd 169 base/third_party/symbolize/symbolize.cc return ReadPersistent(fd, buf, count); fd 176 base/third_party/symbolize/symbolize.cc static bool ReadFromOffsetExact(const int fd, void *buf, fd 178 base/third_party/symbolize/symbolize.cc ssize_t len = ReadFromOffset(fd, buf, count, offset); fd 183 base/third_party/symbolize/symbolize.cc static int FileGetElfType(const int fd) { fd 185 base/third_party/symbolize/symbolize.cc if (!ReadFromOffsetExact(fd, &elf_header, sizeof(elf_header), 0)) { fd 200 base/third_party/symbolize/symbolize.cc GetSectionHeaderByType(const int fd, ElfW(Half) sh_num, const off_t sh_offset, fd 208 base/third_party/symbolize/symbolize.cc const ssize_t len = ReadFromOffset(fd, buf, num_bytes_to_read, fd 229 base/third_party/symbolize/symbolize.cc bool GetSectionHeaderByName(int fd, const char *name, size_t name_len, fd 232 base/third_party/symbolize/symbolize.cc if (!ReadFromOffsetExact(fd, &elf_header, sizeof(elf_header), 0)) { fd 239 base/third_party/symbolize/symbolize.cc if (!ReadFromOffsetExact(fd, &shstrtab, sizeof(shstrtab), shstrtab_offset)) { fd 246 base/third_party/symbolize/symbolize.cc if (!ReadFromOffsetExact(fd, out, sizeof(*out), section_header_offset)) { fd 257 base/third_party/symbolize/symbolize.cc ssize_t n_read = ReadFromOffset(fd, &header_name, name_len, name_offset); fd 278 base/third_party/symbolize/symbolize.cc FindSymbol(uint64_t pc, const int fd, char *out, int out_size, fd 299 base/third_party/symbolize/symbolize.cc const ssize_t len = ReadFromOffset(fd, &buf, sizeof(buf), offset); fd 311 base/third_party/symbolize/symbolize.cc ssize_t len1 = ReadFromOffset(fd, out, out_size, fd 328 base/third_party/symbolize/symbolize.cc static bool GetSymbolFromObjectFile(const int fd, uint64_t pc, fd 333 base/third_party/symbolize/symbolize.cc if (!ReadFromOffsetExact(fd, &elf_header, sizeof(elf_header), 0)) { fd 345 base/third_party/symbolize/symbolize.cc if (GetSectionHeaderByType(fd, elf_header.e_shnum, elf_header.e_shoff, fd 347 base/third_party/symbolize/symbolize.cc if (!ReadFromOffsetExact(fd, &strtab, sizeof(strtab), elf_header.e_shoff + fd 351 base/third_party/symbolize/symbolize.cc if (FindSymbol(pc, fd, out, out_size, symbol_offset, fd 358 base/third_party/symbolize/symbolize.cc if (GetSectionHeaderByType(fd, elf_header.e_shnum, elf_header.e_shoff, fd 360 base/third_party/symbolize/symbolize.cc if (!ReadFromOffsetExact(fd, &strtab, sizeof(strtab), elf_header.e_shoff + fd 364 base/third_party/symbolize/symbolize.cc if (FindSymbol(pc, fd, out, out_size, symbol_offset, fd 378 base/third_party/symbolize/symbolize.cc explicit FileDescriptor(int fd) : fd_(fd) {} fd 398 base/third_party/symbolize/symbolize.cc explicit LineReader(int fd, char *buf, int buf_len) : fd_(fd), fd 99 base/third_party/symbolize/symbolize.h bool GetSectionHeaderByName(int fd, const char *name, size_t name_len, fd 119 base/third_party/symbolize/symbolize.h typedef int (*SymbolizeCallback)(int fd, void *pc, char *out, size_t out_size, fd 4765 base/third_party/valgrind/valgrind.h #define VALGRIND_LOAD_PDB_DEBUGINFO(fd, ptr, total_size, delta) \ fd 4769 base/third_party/valgrind/valgrind.h fd, ptr, total_size, delta, 0); \ fd 119 base/third_party/xdg_mime/xdgmimecache.c int fd = -1; fd 125 base/third_party/xdg_mime/xdgmimecache.c fd = open (file_name, O_RDONLY|_O_BINARY, 0); fd 127 base/third_party/xdg_mime/xdgmimecache.c if (fd < 0) fd 130 base/third_party/xdg_mime/xdgmimecache.c if (fstat (fd, &st) < 0 || st.st_size < 4) fd 133 base/third_party/xdg_mime/xdgmimecache.c buffer = (char *) mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); fd 156 base/third_party/xdg_mime/xdgmimecache.c if (fd != -1) fd 157 base/third_party/xdg_mime/xdgmimecache.c close (fd); fd 243 chrome/browser/chromeos/external_metrics.cc int fd = open(event_file_path, O_RDWR); fd 244 chrome/browser/chromeos/external_metrics.cc if (fd < 0) { fd 248 chrome/browser/chromeos/external_metrics.cc result = flock(fd, LOCK_EX); fd 251 chrome/browser/chromeos/external_metrics.cc close(fd); fd 260 chrome/browser/chromeos/external_metrics.cc result = HANDLE_EINTR(read(fd, &message_size, sizeof(message_size))); fd 282 chrome/browser/chromeos/external_metrics.cc result = HANDLE_EINTR(read(fd, buffer, message_size)); fd 322 chrome/browser/chromeos/external_metrics.cc result = ftruncate(fd, 0); fd 326 chrome/browser/chromeos/external_metrics.cc result = flock(fd, LOCK_UN); fd 330 chrome/browser/chromeos/external_metrics.cc result = close(fd); fd 25 chrome/browser/chromeos/external_metrics_unittest.cc int fd = open(path, O_CREAT | O_APPEND | O_WRONLY, 0666); fd 28 chrome/browser/chromeos/external_metrics_unittest.cc num_bytes += write(fd, &l, sizeof(l)); fd 29 chrome/browser/chromeos/external_metrics_unittest.cc num_bytes += write(fd, name, strlen(name) + 1); fd 30 chrome/browser/chromeos/external_metrics_unittest.cc num_bytes += write(fd, value, strlen(value) + 1); fd 32 chrome/browser/chromeos/external_metrics_unittest.cc close(fd); fd 110 chrome/browser/chromeos/external_metrics_unittest.cc int fd = open(path, O_CREAT | O_WRONLY, 0666); fd 111 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_GT(fd, 0); fd 112 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_EQ(static_cast<int>(sizeof(i)), write(fd, &i, sizeof(i))); fd 113 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_EQ(i, write(fd, b, i)); fd 114 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_EQ(0, close(fd)); fd 121 chrome/browser/chromeos/external_metrics_unittest.cc fd = open(path, O_CREAT | O_WRONLY, 0666); fd 122 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_GT(fd, 0); fd 123 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_EQ(static_cast<int>(sizeof(i)), write(fd, &i, sizeof(i))); fd 124 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_EQ(i, write(fd, b, i)); fd 125 chrome/browser/chromeos/external_metrics_unittest.cc EXPECT_EQ(0, close(fd)); fd 94 chrome/browser/chromeos/file_manager/zip_file_creator.cc dest_fd.fd = dest_file; fd 83 chrome/browser/chromeos/memory/low_memory_observer.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} fd 84 chrome/browser/chromeos/memory/low_memory_observer.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { fd 60 chrome/browser/chromeos/system/automatic_reboot_manager.cc base::ScopedFD fd( fd 62 chrome/browser/chromeos/system/automatic_reboot_manager.cc if (!fd.is_valid()) fd 68 chrome/browser/chromeos/system/automatic_reboot_manager.cc while ((length = HANDLE_EINTR(read(fd.get(), buffer, sizeof(buffer)))) > 0) fd 112 chrome/browser/chromeos/system/automatic_reboot_manager.cc base::ScopedFD fd(HANDLE_EINTR( fd 116 chrome/browser/chromeos/system/automatic_reboot_manager.cc if (!fd.is_valid()) fd 121 chrome/browser/chromeos/system/automatic_reboot_manager.cc base::WriteFileDescriptor(fd.get(), update_reboot_needed_uptime.c_str(), fd 51 chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { fd 55 chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} fd 86 chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc int fd = libbrlapi_loader_->brlapi__openConnection(handle_.get(), NULL, NULL); fd 87 chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc if (fd < 0) { fd 135 chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc fd, true, MessageLoopForIO::WATCH_READ, &fd_controller_, this)) { fd 136 chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc LOG(ERROR) << "Couldn't watch file descriptor " << fd; fd 240 chrome/browser/extensions/api/messaging/native_message_process_host.cc void NativeMessageProcessHost::OnFileCanReadWithoutBlocking(int fd) { fd 241 chrome/browser/extensions/api/messaging/native_message_process_host.cc DCHECK_EQ(fd, read_file_); fd 245 chrome/browser/extensions/api/messaging/native_message_process_host.cc void NativeMessageProcessHost::OnFileCanWriteWithoutBlocking(int fd) { fd 88 chrome/browser/extensions/api/messaging/native_message_process_host.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 89 chrome/browser/extensions/api/messaging/native_message_process_host.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 51 chrome/browser/extensions/api/serial/serial_io_handler_posix.cc void SerialIoHandlerPosix::OnFileCanReadWithoutBlocking(int fd) { fd 53 chrome/browser/extensions/api/serial/serial_io_handler_posix.cc DCHECK_EQ(fd, file()); fd 78 chrome/browser/extensions/api/serial/serial_io_handler_posix.cc void SerialIoHandlerPosix::OnFileCanWriteWithoutBlocking(int fd) { fd 80 chrome/browser/extensions/api/serial/serial_io_handler_posix.cc DCHECK_EQ(fd, file()); fd 29 chrome/browser/extensions/api/serial/serial_io_handler_posix.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 30 chrome/browser/extensions/api/serial/serial_io_handler_posix.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 37 chrome/browser/local_discovery/service_discovery_host_client.cc LOG_IF(ERROR, socket_descriptor.fd == net::kInvalidSocket) fd 39 chrome/browser/local_discovery/service_discovery_host_client.cc if (socket_descriptor.fd != net::kInvalidSocket) { fd 26 chrome/browser/printing/print_view_manager_basic.cc PrintingContextAndroid::PdfWritingDone(file_descriptor_.fd, false); fd 32 chrome/browser/printing/print_view_manager_basic.cc PrintingContextAndroid::PdfWritingDone(file_descriptor_.fd, false); fd 165 chrome/browser/printing/printing_message_filter.cc temp_file_fd->fd = *sequence_number = -1; fd 173 chrome/browser/printing/printing_message_filter.cc int fd = open(path.value().c_str(), O_WRONLY); fd 174 chrome/browser/printing/printing_message_filter.cc if (fd >= 0) { fd 181 chrome/browser/printing/printing_message_filter.cc temp_file_fd->fd = fd; fd 197 chrome/browser/printing/printing_message_filter.cc temp_file_fd->fd = file_descriptor.fd; fd 229 chrome/browser/printing/printing_message_filter.cc printing::PrintingContextAndroid::PdfWritingDone(file_descriptor.fd, true); fd 418 chrome/browser/printing/printing_message_filter.cc void PrintingMessageFilter::UpdateFileDescriptor(int render_view_id, int fd) { fd 425 chrome/browser/printing/printing_message_filter.cc print_view_manager->set_file_descriptor(base::FileDescriptor(fd, false)); fd 74 chrome/browser/printing/printing_message_filter.h void UpdateFileDescriptor(int render_view_id, int fd); fd 110 chrome/browser/process_singleton_linux.cc int SetNonBlocking(int fd) { fd 111 chrome/browser/process_singleton_linux.cc int flags = fcntl(fd, F_GETFL, 0); fd 116 chrome/browser/process_singleton_linux.cc return fcntl(fd, F_SETFL, flags | O_NONBLOCK); fd 121 chrome/browser/process_singleton_linux.cc int SetCloseOnExec(int fd) { fd 122 chrome/browser/process_singleton_linux.cc int flags = fcntl(fd, F_GETFD, 0); fd 127 chrome/browser/process_singleton_linux.cc return fcntl(fd, F_SETFD, flags | FD_CLOEXEC); fd 131 chrome/browser/process_singleton_linux.cc void CloseSocket(int fd) { fd 132 chrome/browser/process_singleton_linux.cc int rv = IGNORE_EINTR(close(fd)); fd 137 chrome/browser/process_singleton_linux.cc bool WriteToSocket(int fd, const char *message, size_t length) { fd 143 chrome/browser/process_singleton_linux.cc write(fd, message + bytes_written, length - bytes_written)); fd 163 chrome/browser/process_singleton_linux.cc int WaitSocketForRead(int fd, int timeout) { fd 168 chrome/browser/process_singleton_linux.cc FD_SET(fd, &read_fds); fd 172 chrome/browser/process_singleton_linux.cc return HANDLE_EINTR(select(fd + 1, &read_fds, NULL, NULL, &tv)); fd 178 chrome/browser/process_singleton_linux.cc ssize_t ReadFromSocket(int fd, char *buf, size_t bufsize, int timeout) { fd 180 chrome/browser/process_singleton_linux.cc int rv = WaitSocketForRead(fd, timeout); fd 187 chrome/browser/process_singleton_linux.cc ssize_t rv = HANDLE_EINTR(read(fd, buf + bytes_read, bufsize - bytes_read)); fd 368 chrome/browser/process_singleton_linux.cc int ret = HANDLE_EINTR(connect(socket->fd(), fd 387 chrome/browser/process_singleton_linux.cc int ret = HANDLE_EINTR(connect(socket->fd(), fd 417 chrome/browser/process_singleton_linux.cc int fd) fd 420 chrome/browser/process_singleton_linux.cc fd_(fd), fd 425 chrome/browser/process_singleton_linux.cc fd, true, base::MessageLoopForIO::WATCH_READ, &fd_reader_, this); fd 436 chrome/browser/process_singleton_linux.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 437 chrome/browser/process_singleton_linux.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE { fd 495 chrome/browser/process_singleton_linux.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 496 chrome/browser/process_singleton_linux.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE { fd 535 chrome/browser/process_singleton_linux.cc void ProcessSingleton::LinuxWatcher::OnFileCanReadWithoutBlocking(int fd) { fd 541 chrome/browser/process_singleton_linux.cc fd, reinterpret_cast<sockaddr*>(&from), &from_len)); fd 595 chrome/browser/process_singleton_linux.cc int fd) { fd 597 chrome/browser/process_singleton_linux.cc DCHECK_EQ(fd, fd_); fd 600 chrome/browser/process_singleton_linux.cc read(fd, buf_ + bytes_read_, sizeof(buf_) - bytes_read_)); fd 604 chrome/browser/process_singleton_linux.cc CloseSocket(fd); fd 770 chrome/browser/process_singleton_linux.cc setsockopt(socket.fd(), SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)); fd 790 chrome/browser/process_singleton_linux.cc if (!WriteToSocket(socket.fd(), to_send.data(), to_send.length())) { fd 797 chrome/browser/process_singleton_linux.cc if (shutdown(socket.fd(), SHUT_WR) < 0) fd 804 chrome/browser/process_singleton_linux.cc ReadFromSocket(socket.fd(), buf, kMaxACKMessageLength, timeout_seconds); fd 43 chrome/browser/process_singleton_mac_unittest.cc base::ScopedFD fd(HANDLE_EINTR(open(lock_path_.value().c_str(), O_RDONLY))); fd 44 chrome/browser/process_singleton_mac_unittest.cc if (!fd.is_valid()) { fd 49 chrome/browser/process_singleton_mac_unittest.cc int rc = HANDLE_EINTR(flock(fd.get(), LOCK_EX|LOCK_NB)); fd 149 chrome/browser/shell_integration_linux.cc int fd = openat(desktop_fd, shortcut_filename.value().c_str(), fd 152 chrome/browser/shell_integration_linux.cc if (fd < 0) { fd 158 chrome/browser/shell_integration_linux.cc ssize_t bytes_written = base::WriteFileDescriptor(fd, contents.data(), fd 160 chrome/browser/shell_integration_linux.cc if (IGNORE_EINTR(close(fd)) < 0) fd 47 chrome/common/service_process_util_posix.cc void ServiceProcessTerminateMonitor::OnFileCanReadWithoutBlocking(int fd) { fd 50 chrome/common/service_process_util_posix.cc int length = read(fd, &buffer, sizeof(buffer)); fd 64 chrome/common/service_process_util_posix.cc void ServiceProcessTerminateMonitor::OnFileCanWriteWithoutBlocking(int fd) { fd 52 chrome/common/service_process_util_posix.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 53 chrome/common/service_process_util_posix.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 334 chrome/installer/mac/third_party/bsdiff/goobsdiff.c int fd; fd 353 chrome/installer/mac/third_party/bsdiff/goobsdiff.c if(((fd=open(argv[1],O_RDONLY,0))<0) || fd 354 chrome/installer/mac/third_party/bsdiff/goobsdiff.c ((oldsize=lseek(fd,0,SEEK_END))==-1) || fd 356 chrome/installer/mac/third_party/bsdiff/goobsdiff.c (lseek(fd,0,SEEK_SET)!=0) || fd 357 chrome/installer/mac/third_party/bsdiff/goobsdiff.c (read(fd,old,oldsize)!=oldsize) || fd 358 chrome/installer/mac/third_party/bsdiff/goobsdiff.c (close(fd)==-1)) err(1,"%s",argv[1]); fd 369 chrome/installer/mac/third_party/bsdiff/goobsdiff.c if(((fd=open(argv[2],O_RDONLY,0))<0) || fd 370 chrome/installer/mac/third_party/bsdiff/goobsdiff.c ((newsize=lseek(fd,0,SEEK_END))==-1) || fd 372 chrome/installer/mac/third_party/bsdiff/goobsdiff.c (lseek(fd,0,SEEK_SET)!=0) || fd 373 chrome/installer/mac/third_party/bsdiff/goobsdiff.c (read(fd,new,newsize)!=newsize) || fd 374 chrome/installer/mac/third_party/bsdiff/goobsdiff.c (close(fd)==-1)) err(1,"%s",argv[2]); fd 256 chrome/installer/mac/third_party/bsdiff/goobspatch.c int fd; fd 281 chrome/installer/mac/third_party/bsdiff/goobspatch.c if ((fd = open(path, O_RDONLY)) < 0) fd 283 chrome/installer/mac/third_party/bsdiff/goobspatch.c if (lseek(fd, off, SEEK_SET) != off) fd 285 chrome/installer/mac/third_party/bsdiff/goobspatch.c if ((cf->u.gz = gzdopen(fd, "rb")) == NULL) fd 370 chrome/installer/mac/third_party/bsdiff/goobspatch.c int fd; fd 446 chrome/installer/mac/third_party/bsdiff/goobspatch.c if(((fd=open(argv[1],O_RDONLY,0))<0) || fd 447 chrome/installer/mac/third_party/bsdiff/goobspatch.c ((oldsize=lseek(fd,0,SEEK_END))==-1) || fd 449 chrome/installer/mac/third_party/bsdiff/goobspatch.c (lseek(fd,0,SEEK_SET)!=0) || fd 450 chrome/installer/mac/third_party/bsdiff/goobspatch.c (read(fd,old,oldsize)!=oldsize) || fd 451 chrome/installer/mac/third_party/bsdiff/goobspatch.c (close(fd)==-1)) err(1,"%s",argv[1]); fd 514 chrome/installer/mac/third_party/bsdiff/goobspatch.c if(((fd=open(argv[2],O_CREAT|O_TRUNC|O_WRONLY,0644))<0) || fd 515 chrome/installer/mac/third_party/bsdiff/goobspatch.c (write(fd,new,newsize)!=newsize) || (close(fd)==-1)) fd 102 chrome/renderer/chrome_mock_render_thread.cc renderer_fd->fd = *browser_fd = -1; fd 107 chrome/renderer/chrome_mock_render_thread.cc int fd = open(path.value().c_str(), O_WRONLY); fd 108 chrome/renderer/chrome_mock_render_thread.cc DCHECK_GE(fd, 0); fd 109 chrome/renderer/chrome_mock_render_thread.cc renderer_fd->fd = *browser_fd = fd; fd 63 chrome/renderer/pepper/pepper_shared_memory_message_filter.cc host_shm_handle.fd; fd 50 chrome/renderer/pepper/ppb_pdf_impl.cc PrivateFontFile(PP_Instance instance, int fd) fd 52 chrome/renderer/pepper/ppb_pdf_impl.cc fd_(fd) { fd 205 chrome/renderer/pepper/ppb_pdf_impl.cc int fd = content::MatchFontWithFallback( fd 211 chrome/renderer/pepper/ppb_pdf_impl.cc if (fd == -1) fd 214 chrome/renderer/pepper/ppb_pdf_impl.cc scoped_refptr<PrivateFontFile> font(new PrivateFontFile(instance_id, fd)); fd 104 chrome/renderer/printing/print_web_view_helper_linux.cc base::FileDescriptor fd; fd 108 chrome/renderer/printing/print_web_view_helper_linux.cc &fd, fd 110 chrome/renderer/printing/print_web_view_helper_linux.cc if (!metafile.SaveToFD(fd)) fd 145 chrome/renderer/printing/print_web_view_helper_linux.cc printed_page_params.metafile_data_handle.fd = -1; fd 551 chrome/utility/chrome_content_utility_client.cc succeeded = zip::ZipFiles(src_dir, src_relative_paths, dest_fd.fd); fd 254 chrome/utility/local_discovery/service_discovery_message_handler.cc SocketInfo(sockets[i].descriptor.fd, sockets[i].address_family, fd 106 chromeos/dbus/bluetooth_profile_service_provider.cc scoped_ptr<dbus::FileDescriptor> fd(new dbus::FileDescriptor()); fd 109 chromeos/dbus/bluetooth_profile_service_provider.cc !reader.PopFileDescriptor(fd.get()) || fd 138 chromeos/dbus/bluetooth_profile_service_provider.cc delegate_->NewConnection(device_path, fd.Pass(), options, callback); fd 86 chromeos/dbus/bluetooth_profile_service_provider.h scoped_ptr<dbus::FileDescriptor> fd, fd 48 chromeos/dbus/fake_bluetooth_device_client.cc void SimulatedProfileSocket(int fd) { fd 55 chromeos/dbus/fake_bluetooth_device_client.cc len = read(fd, buf, sizeof buf); fd 57 chromeos/dbus/fake_bluetooth_device_client.cc close(fd); fd 62 chromeos/dbus/fake_bluetooth_device_client.cc len = write(fd, buf, count); fd 64 chromeos/dbus/fake_bluetooth_device_client.cc close(fd); fd 68 chromeos/dbus/fake_bluetooth_device_client.cc close(fd); fd 395 chromeos/dbus/fake_bluetooth_device_client.cc scoped_ptr<dbus::FileDescriptor> fd(new dbus::FileDescriptor(fds[1])); fd 402 chromeos/dbus/fake_bluetooth_device_client.cc fd.Pass(), fd 42 chromeos/dbus/fake_bluetooth_profile_service_provider.cc scoped_ptr<dbus::FileDescriptor> fd, fd 47 chromeos/dbus/fake_bluetooth_profile_service_provider.cc delegate_->NewConnection(device_path, fd.Pass(), options, callback); fd 34 chromeos/dbus/fake_bluetooth_profile_service_provider.h scoped_ptr<dbus::FileDescriptor> fd, fd 27 chromeos/process_proxy/process_output_watcher.cc void CloseFd(int* fd) { fd 28 chromeos/process_proxy/process_output_watcher.cc if (*fd >= 0) { fd 29 chromeos/process_proxy/process_output_watcher.cc if (IGNORE_EINTR(close(*fd)) != 0) fd 30 chromeos/process_proxy/process_output_watcher.cc DPLOG(WARNING) << "close fd " << *fd << " failed."; fd 32 chromeos/process_proxy/process_output_watcher.cc *fd = -1; fd 87 chromeos/process_proxy/process_output_watcher.cc void ProcessOutputWatcher::VerifyFileDescriptor(int fd) { fd 88 chromeos/process_proxy/process_output_watcher.cc CHECK_LE(0, fd); fd 89 chromeos/process_proxy/process_output_watcher.cc CHECK_GT(FD_SETSIZE, fd); fd 92 chromeos/process_proxy/process_output_watcher.cc void ProcessOutputWatcher::ReadFromFd(ProcessOutputType type, int* fd) { fd 97 chromeos/process_proxy/process_output_watcher.cc ssize_t bytes_read = HANDLE_EINTR(read(*fd, read_buffer_, read_buffer_size_)); fd 109 chromeos/process_proxy/process_output_watcher.cc CloseFd(fd); fd 50 chromeos/process_proxy/process_output_watcher.h void VerifyFileDescriptor(int fd); fd 53 chromeos/process_proxy/process_output_watcher.h void ReadFromFd(ProcessOutputType type, int* fd); fd 245 chromeos/process_proxy/process_proxy.cc void ProcessProxy::CloseFd(int* fd) { fd 246 chromeos/process_proxy/process_proxy.cc if (*fd != kInvalidFd) { fd 247 chromeos/process_proxy/process_proxy.cc if (IGNORE_EINTR(close(*fd)) != 0) fd 250 chromeos/process_proxy/process_proxy.cc *fd = kInvalidFd; fd 77 chromeos/process_proxy/process_proxy.h void CloseFd(int* fd); fd 242 components/breakpad/app/breakpad_linux.cc MimeWriter(int fd, const char* const mime_boundary); fd 303 components/breakpad/app/breakpad_linux.cc MimeWriter::MimeWriter(int fd, const char* const mime_boundary) fd 305 components/breakpad/app/breakpad_linux.cc fd_(fd), fd 409 components/breakpad/app/breakpad_linux.cc explicit CrashReporterWriter(int fd); fd 436 components/breakpad/app/breakpad_linux.cc CrashReporterWriter::CrashReporterWriter(int fd) : MimeWriter(fd, "") {} fd 577 components/breakpad/app/breakpad_linux.cc info.fd = minidump.fd(); fd 695 components/breakpad/app/breakpad_linux.cc info.fd = descriptor.fd(); fd 764 components/breakpad/app/breakpad_linux.cc const int fd = reinterpret_cast<intptr_t>(context); fd 825 components/breakpad/app/breakpad_linux.cc if (HANDLE_EINTR(sys_sendmsg(fd, &msg, 0)) < 0) { fd 842 components/breakpad/app/breakpad_linux.cc const int fd = base::GlobalDescriptors::GetInstance()->Get(kCrashDumpSignal); fd 851 components/breakpad/app/breakpad_linux.cc reinterpret_cast<void*>(fd), // Param passed to the crash handler. fd 890 components/breakpad/app/breakpad_linux.cc int fd, bool close_fd, uint8_t** file_data, size_t* size) { fd 892 components/breakpad/app/breakpad_linux.cc if (FSTAT_FUNC(fd, &st) != 0) { fd 896 components/breakpad/app/breakpad_linux.cc IGNORE_RET(sys_close(fd)); fd 905 components/breakpad/app/breakpad_linux.cc IGNORE_RET(sys_close(fd)); fd 911 components/breakpad/app/breakpad_linux.cc int byte_read = sys_read(fd, *file_data, *size); fd 916 components/breakpad/app/breakpad_linux.cc IGNORE_RET(sys_close(fd)); fd 921 components/breakpad/app/breakpad_linux.cc IGNORE_RET(sys_close(fd)); fd 926 components/breakpad/app/breakpad_linux.cc int* fd, uint8_t** file_data, size_t* size) { fd 929 components/breakpad/app/breakpad_linux.cc *fd = sys_open(filename, O_RDONLY, 0); fd 932 components/breakpad/app/breakpad_linux.cc if (*fd < 0) { fd 938 components/breakpad/app/breakpad_linux.cc LoadDataFromFD(allocator, *fd, true, file_data, size); fd 1068 components/breakpad/app/breakpad_linux.cc if (info.fd != -1) { fd 1071 components/breakpad/app/breakpad_linux.cc dumpfd = info.fd; fd 1082 components/breakpad/app/breakpad_linux.cc LoadDataFromFD(allocator, info.fd, false, &dump_data, &dump_size); fd 1378 components/breakpad/app/breakpad_linux.cc const int fd = sys_open("/proc/self/fd", O_DIRECTORY | O_RDONLY, 0); fd 1379 components/breakpad/app/breakpad_linux.cc if (fd < 0) { fd 1383 components/breakpad/app/breakpad_linux.cc google_breakpad::DirectoryReader reader(fd); fd 1387 components/breakpad/app/breakpad_linux.cc if (my_strtoui(&i, name) && i > 2 && i != fd) fd 1392 components/breakpad/app/breakpad_linux.cc IGNORE_RET(sys_close(fd)); fd 1419 components/breakpad/app/breakpad_linux.cc poll_fd.fd = fds[0]; fd 44 components/breakpad/app/breakpad_linux_impl.h int fd; // File descriptor to the Breakpad dump data. fd 130 components/breakpad/browser/crash_handler_host_linux.cc void CrashHandlerHostLinux::OnFileCanWriteWithoutBlocking(int fd) { fd 134 components/breakpad/browser/crash_handler_host_linux.cc void CrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) { fd 135 components/breakpad/browser/crash_handler_host_linux.cc DCHECK_EQ(fd, browser_socket_); fd 333 components/breakpad/browser/crash_handler_host_linux.cc info->fd = -1; fd 52 components/breakpad/browser/crash_handler_host_linux.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 53 components/breakpad/browser/crash_handler_host_linux.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 133 components/nacl/browser/nacl_host_message_filter.cc base::PlatformFile fd, fd 140 components/nacl/browser/nacl_host_message_filter.cc IPC::GetFileHandleForProcess(fd, PeerHandle(), false))); fd 68 components/nacl/browser/nacl_host_message_filter.h base::PlatformFile fd, fd 190 components/nacl/browser/nacl_process_host.cc void SetCloseOnExec(NaClHandle fd) { fd 192 components/nacl/browser/nacl_process_host.cc int flags = fcntl(fd, F_GETFD); fd 194 components/nacl/browser/nacl_process_host.cc int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); fd 223 components/nacl/browser/nacl_process_host.cc channel.fd = sourceh; fd 708 components/nacl/browser/nacl_process_host.cc imc_handle.fd = internal_->socket_for_renderer; fd 827 components/nacl/browser/nacl_process_host.cc memory_fd.fd = dup(memory_buffer.handle().fd); fd 828 components/nacl/browser/nacl_process_host.cc if (memory_fd.fd < 0) { fd 370 components/nacl/browser/pnacl_host.cc base::PlatformFile fd) { fd 374 components/nacl/browser/pnacl_host.cc if (!base::GetPlatformFileInfo(fd, &info) || fd 381 components/nacl/browser/pnacl_host.cc if (base::ReadPlatformFile(fd, 0, buffer->data(), buffer->size()) != fd 390 components/nacl/browser/pnacl_host.cc base::ClosePlatformFile(fd); fd 511 components/nacl/browser/pnacl_host.cc int PnaclHost::CopyBufferToFile(base::PlatformFile fd, fd 513 components/nacl/browser/pnacl_host.cc int rv = base::WritePlatformFile(fd, 0, buffer->data(), buffer->size()); fd 538 components/nacl/browser/pnacl_host.cc base::PlatformFile fd = entry->second.nexe_fd; fd 539 components/nacl/browser/pnacl_host.cc entry->second.callback.Run(fd, true); fd 541 components/nacl/browser/pnacl_host.cc FROM_HERE, base::Bind(base::IgnoreResult(base::ClosePlatformFile), fd)); fd 152 components/nacl/browser/pnacl_host.h base::PlatformFile fd); fd 159 components/nacl/browser/pnacl_host.h static int CopyBufferToFile(base::PlatformFile fd, fd 70 components/nacl/browser/pnacl_host_unittest.cc void CallbackExpectMiss(base::PlatformFile fd, bool is_hit) { fd 72 components/nacl/browser/pnacl_host_unittest.cc ASSERT_FALSE(fd == base::kInvalidPlatformFileValue); fd 74 components/nacl/browser/pnacl_host_unittest.cc EXPECT_TRUE(base::GetPlatformFileInfo(fd, &info)); fd 80 components/nacl/browser/pnacl_host_unittest.cc EXPECT_EQ(16, base::WritePlatformFile(fd, 0, str, 16)); fd 83 components/nacl/browser/pnacl_host_unittest.cc void CallbackExpectHit(base::PlatformFile fd, bool is_hit) { fd 85 components/nacl/browser/pnacl_host_unittest.cc ASSERT_FALSE(fd == base::kInvalidPlatformFileValue); fd 87 components/nacl/browser/pnacl_host_unittest.cc EXPECT_TRUE(base::GetPlatformFileInfo(fd, &info)); fd 95 components/nacl/browser/pnacl_host_unittest.cc EXPECT_EQ(16, base::ReadPlatformFile(fd, 0, data, 16)); fd 35 components/nacl/common/nacl_types.h return desc.fd; fd 493 components/nacl/loader/nacl_ipc_adapter.cc shm_handle.fd, fd 503 components/nacl/loader/nacl_ipc_adapter.cc iter->descriptor().fd fd 515 components/nacl/loader/nacl_ipc_adapter.cc iter->descriptor().fd, fd 164 components/nacl/loader/nacl_listener.cc int32* fd, std::string* path) OVERRIDE { fd 165 components/nacl/loader/nacl_listener.cc *fd = -1; fd 185 components/nacl/loader/nacl_listener.cc *fd = reinterpret_cast<uintptr_t>(handle); fd 187 components/nacl/loader/nacl_listener.cc *fd = handle; fd 22 components/nacl/loader/nacl_validation_db.h int32* fd, std::string* path) = 0; fd 36 components/nacl/loader/nacl_validation_query.cc int32* fd, fd 38 components/nacl/loader/nacl_validation_query.cc return db_->ResolveFileToken(file_token, fd, path); fd 140 components/nacl/loader/nacl_validation_query.cc int32* fd, char** file_path, fd 146 components/nacl/loader/nacl_validation_query.cc ResolveFileToken(file_token, fd, &path); fd 27 components/nacl/loader/nacl_validation_query.h bool ResolveFileToken(struct NaClFileToken* file_token, int32* fd, fd 70 components/nacl/loader/nacl_validation_query_unittest.cc virtual bool ResolveFileToken(struct NaClFileToken* file_token, int32* fd, fd 72 components/nacl/loader/nacl_validation_query_unittest.cc *fd = -1; fd 22 components/nacl/loader/nonsfi/irt_fdio.cc int IrtClose(int fd) { fd 23 components/nacl/loader/nonsfi/irt_fdio.cc return CheckError(close(fd)); fd 26 components/nacl/loader/nonsfi/irt_fdio.cc int IrtDup(int fd, int* newfd) { fd 27 components/nacl/loader/nonsfi/irt_fdio.cc return CheckErrorWithResult(dup(fd), newfd); fd 30 components/nacl/loader/nonsfi/irt_fdio.cc int IrtDup2(int fd, int newfd) { fd 31 components/nacl/loader/nonsfi/irt_fdio.cc return CheckError(dup2(fd, newfd)); fd 34 components/nacl/loader/nonsfi/irt_fdio.cc int IrtRead(int fd, void* buf, size_t count, size_t* nread) { fd 35 components/nacl/loader/nonsfi/irt_fdio.cc return CheckErrorWithResult(read(fd, buf, count), nread); fd 38 components/nacl/loader/nonsfi/irt_fdio.cc int IrtWrite(int fd, const void* buf, size_t count, size_t* nwrote) { fd 39 components/nacl/loader/nonsfi/irt_fdio.cc return CheckErrorWithResult(write(fd, buf, count), nwrote); fd 42 components/nacl/loader/nonsfi/irt_fdio.cc int IrtSeek(int fd, nacl_abi_off_t offset, int whence, fd 44 components/nacl/loader/nonsfi/irt_fdio.cc return CheckErrorWithResult(lseek(fd, offset, whence), new_offset); fd 47 components/nacl/loader/nonsfi/irt_fdio.cc int IrtFstat(int fd, struct nacl_abi_stat* st) { fd 49 components/nacl/loader/nonsfi/irt_fdio.cc if (fstat(fd, &host_st)) fd 56 components/nacl/loader/nonsfi/irt_fdio.cc int IrtGetDents(int fd, struct nacl_abi_dirent* buf, size_t count, fd 48 components/nacl/loader/nonsfi/irt_memory.cc int fd, nacl_abi_off_t off) { fd 50 components/nacl/loader/nonsfi/irt_memory.cc mmap(*addr, len, NaClProtToProt(prot), NaClFlagsToFlags(flags), fd, off); fd 99 components/nacl/renderer/ppb_nacl_private_impl.cc if (channel_handle.socket.fd == -1) { fd 306 components/nacl/zygote/nacl_fork_delegate_linux.cc bool NaClForkDelegate::AckChild(const int fd, fd 308 components/nacl/zygote/nacl_fork_delegate_linux.cc int nwritten = HANDLE_EINTR(write(fd, channel_switch.c_str(), fd 33 components/nacl/zygote/nacl_fork_delegate_linux.h virtual bool AckChild(int fd, fd 113 content/browser/android/child_process_launcher_android.cc file_fds[i] = fd_info.fd.fd; fd 114 content/browser/android/child_process_launcher_android.cc file_auto_close[i] = fd_info.fd.auto_close; fd 250 content/browser/child_process_launcher.cc files_to_register[i].fd.fd, fd 31 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc void CloseFileDescriptorIfValid(int fd) { fd 32 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc if (fd >= 0) fd 33 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc close(fd); fd 244 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc const int& fd = device_fds_[index]; fd 246 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc DCHECK_GE(fd, 0); fd 249 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc while (HANDLE_EINTR(read(fd, &event, sizeof(struct js_event))) > 0) { fd 33 content/browser/renderer_host/java/java_bridge_channel_host.cc if (channel_handle_.socket.fd > 0) { fd 34 content/browser/renderer_host/java/java_bridge_channel_host.cc close(channel_handle_.socket.fd); fd 76 content/browser/renderer_host/java/java_bridge_channel_host.cc channel_handle_.socket.fd = channel_->TakeClientFileDescriptor(); fd 100 content/browser/renderer_host/media/audio_input_sync_writer.cc foreign_handle->fd = foreign_socket_->handle(); fd 102 content/browser/renderer_host/media/audio_input_sync_writer.cc return (foreign_handle->fd != -1); fd 121 content/browser/renderer_host/media/audio_renderer_host_unittest.cc sync_socket_handle = socket_descriptor.fd; fd 99 content/browser/renderer_host/media/audio_sync_reader.cc foreign_handle->fd = foreign_socket_->handle(); fd 101 content/browser/renderer_host/media/audio_sync_reader.cc return (foreign_handle->fd != -1); fd 21 content/browser/renderer_host/render_process_host_mojo_impl.cc return handle.release().fd; fd 93 content/browser/renderer_host/render_sandbox_host_linux.cc pfds[0].fd = lifeline_fd_; fd 95 content/browser/renderer_host/render_sandbox_host_linux.cc pfds[1].fd = browser_socket_; fd 131 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleRequestFromRenderer(int fd) { fd 140 content/browser/renderer_host/render_sandbox_host_linux.cc const ssize_t len = UnixDomainSocket::RecvMsg(fd, buf, sizeof(buf), &fds); fd 158 content/browser/renderer_host/render_sandbox_host_linux.cc HandleFontMatchRequest(fd, pickle, iter, fds); fd 160 content/browser/renderer_host/render_sandbox_host_linux.cc HandleFontOpenRequest(fd, pickle, iter, fds); fd 162 content/browser/renderer_host/render_sandbox_host_linux.cc HandleGetFontFamilyForChar(fd, pickle, iter, fds); fd 164 content/browser/renderer_host/render_sandbox_host_linux.cc HandleLocaltime(fd, pickle, iter, fds); fd 166 content/browser/renderer_host/render_sandbox_host_linux.cc HandleGetChildWithInode(fd, pickle, iter, fds); fd 168 content/browser/renderer_host/render_sandbox_host_linux.cc HandleGetStyleForStrike(fd, pickle, iter, fds); fd 170 content/browser/renderer_host/render_sandbox_host_linux.cc HandleMakeSharedMemorySegment(fd, pickle, iter, fds); fd 172 content/browser/renderer_host/render_sandbox_host_linux.cc HandleMatchWithFallback(fd, pickle, iter, fds); fd 192 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleFontMatchRequest(int fd, const Pickle& pickle, PickleIterator iter, fd 226 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleFontOpenRequest(int fd, const Pickle& pickle, PickleIterator iter, fd 252 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleGetFontFamilyForChar(int fd, const Pickle& pickle, fd 281 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleGetStyleForStrike(int fd, const Pickle& pickle, fd 308 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleLocaltime(int fd, const Pickle& pickle, PickleIterator iter, fd 338 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleGetChildWithInode(int fd, const Pickle& pickle, fd 371 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleMakeSharedMemorySegment(int fd, const Pickle& pickle, fd 384 content/browser/renderer_host/render_sandbox_host_linux.cc shm_fd = shm.handle().fd; fd 389 content/browser/renderer_host/render_sandbox_host_linux.cc void HandleMatchWithFallback(int fd, const Pickle& pickle, fd 354 content/browser/renderer_host/render_widget_helper.cc base::FileDescriptor fd(dup(i->second), true); fd 355 content/browser/renderer_host/render_widget_helper.cc return TransportDIB::Map(fd); fd 363 content/browser/renderer_host/render_widget_helper.cc result->fd = -1; fd 373 content/browser/renderer_host/render_widget_helper.cc allocated_dibs_[shared_memory->id()] = dup(result->fd); fd 54 content/browser/udev_linux.cc void UdevLinux::OnFileCanReadWithoutBlocking(int fd) { fd 58 content/browser/udev_linux.cc DCHECK_EQ(monitor_fd_, fd); fd 67 content/browser/udev_linux.cc void UdevLinux::OnFileCanWriteWithoutBlocking(int fd) { fd 81 content/browser/udev_linux.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 82 content/browser/udev_linux.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 326 content/browser/zygote_host/zygote_host_impl_linux.cc fds.push_back(i->fd.fd); fd 327 content/browser/zygote_host/zygote_host_impl_linux.cc if (i->fd.auto_close) { fd 72 content/child/npapi/np_channel_base.cc base::ScopedFD fd(channel_handle.socket.auto_close ? fd 73 content/child/npapi/np_channel_base.cc channel_handle.socket.fd : -1); fd 90 content/child/npapi/np_channel_base.cc ignore_result(fd.release()); fd 177 content/child/npapi/np_channel_base.cc if (mode_ == IPC::Channel::MODE_CLIENT && -1 == channel_handle_.socket.fd) fd 106 content/common/child_process_sandbox_support_impl_linux.cc int fd = -1; fd 108 content/common/child_process_sandbox_support_impl_linux.cc &fd, request); fd 109 content/common/child_process_sandbox_support_impl_linux.cc return fd; fd 112 content/common/child_process_sandbox_support_impl_linux.cc bool GetFontTable(int fd, uint32_t table_tag, off_t offset, fd 122 content/common/child_process_sandbox_support_impl_linux.cc if (fstat(fd, &st) < 0) fd 128 content/common/child_process_sandbox_support_impl_linux.cc ssize_t n = HANDLE_EINTR(pread(fd, &num_tables, sizeof(num_tables), fd 139 content/common/child_process_sandbox_support_impl_linux.cc n = HANDLE_EINTR(pread(fd, table_entries.get(), directory_size, fd 175 content/common/child_process_sandbox_support_impl_linux.cc ssize_t n = HANDLE_EINTR(pread(fd, output, data_length, data_offset)); fd 27 content/common/font_config_ipc_linux.cc SkStream* StreamFromFD(int fd) { fd 28 content/common/font_config_ipc_linux.cc skia::RefPtr<SkData> data = skia::AdoptRef(SkData::NewFromFD(fd)); fd 35 content/common/font_config_ipc_linux.cc void CloseFD(int fd) { fd 36 content/common/font_config_ipc_linux.cc int err = IGNORE_EINTR(close(fd)); fd 40 content/common/font_config_ipc_linux.cc FontConfigIPC::FontConfigIPC(int fd) fd 41 content/common/font_config_ipc_linux.cc : fd_(fd) { fd 19 content/common/font_config_ipc_linux.h explicit FontConfigIPC(int fd); fd 262 content/common/gpu/client/gpu_channel_host.cc int duped_handle = HANDLE_EINTR(dup(source_handle.fd)); fd 49 content/common/gpu/media/exynos_v4l2_video_device.cc pollfds[0].fd = device_poll_interrupt_fd_; fd 55 content/common/gpu/media/exynos_v4l2_video_device.cc pollfds[nfds].fd = device_fd_; fd 141 content/common/gpu/media/exynos_v4l2_video_device.cc dmabuf_fds[i].reset(expbuf.fd); fd 29 content/common/gpu/media/exynos_video_encode_accelerator.cc #define IOCTL_OR_ERROR_RETURN_VALUE(fd, type, arg, value) \ fd 31 content/common/gpu/media/exynos_video_encode_accelerator.cc if (HANDLE_EINTR(ioctl(fd, type, arg) != 0)) { \ fd 38 content/common/gpu/media/exynos_video_encode_accelerator.cc #define IOCTL_OR_ERROR_RETURN(fd, type, arg) \ fd 39 content/common/gpu/media/exynos_video_encode_accelerator.cc IOCTL_OR_ERROR_RETURN_VALUE(fd, type, arg, ((void)0)) fd 41 content/common/gpu/media/exynos_video_encode_accelerator.cc #define IOCTL_OR_ERROR_RETURN_FALSE(fd, type, arg) \ fd 42 content/common/gpu/media/exynos_video_encode_accelerator.cc IOCTL_OR_ERROR_RETURN_VALUE(fd, type, arg, false) fd 76 content/common/gpu/media/exynos_video_encode_accelerator.cc fd[0] = fd[1] = -1; fd 843 content/common/gpu/media/exynos_video_encode_accelerator.cc qbuf.m.planes[0].m.fd = input_record.fd[0]; fd 844 content/common/gpu/media/exynos_video_encode_accelerator.cc qbuf.m.planes[1].m.fd = input_record.fd[1]; fd 1057 content/common/gpu/media/exynos_video_encode_accelerator.cc pollfds[0].fd = device_poll_interrupt_fd_; fd 1065 content/common/gpu/media/exynos_video_encode_accelerator.cc pollfds[nfds].fd = gsc_fd_; fd 1071 content/common/gpu/media/exynos_video_encode_accelerator.cc pollfds[nfds].fd = mfc_fd_; fd 1410 content/common/gpu/media/exynos_video_encode_accelerator.cc input_record.fd[j] = expbuf.fd; fd 1500 content/common/gpu/media/exynos_video_encode_accelerator.cc for (size_t plane = 0; plane < arraysize(input_record.fd); ++plane) fd 1501 content/common/gpu/media/exynos_video_encode_accelerator.cc close(mfc_input_buffer_map_[buf].fd[plane]); fd 82 content/common/gpu/media/exynos_video_encode_accelerator.h int fd[2]; fd 22 content/common/gpu/media/tegra_v4l2_video_device.cc typedef int32 (*TegraV4L2Close)(int32 fd); fd 23 content/common/gpu/media/tegra_v4l2_video_device.cc typedef int32 (*TegraV4L2Ioctl)(int32 fd, unsigned long cmd, ...); fd 24 content/common/gpu/media/tegra_v4l2_video_device.cc typedef int32 (*TegraV4L2Poll)(int32 fd, bool poll_device, bool* event_pending); fd 25 content/common/gpu/media/tegra_v4l2_video_device.cc typedef int32 (*TegraV4L2SetDevicePollInterrupt)(int32 fd); fd 26 content/common/gpu/media/tegra_v4l2_video_device.cc typedef int32 (*TegraV4L2ClearDevicePollInterrupt)(int32 fd); fd 31 content/common/gpu/media/tegra_v4l2_video_device.cc int fd, fd 34 content/common/gpu/media/tegra_v4l2_video_device.cc typedef int32 (*TegraV4L2UseEglImage)(int fd, fd 168 content/common/plugin_list_posix.cc int fd = open(filename.value().c_str(), O_RDONLY|O_NONBLOCK); fd 169 content/common/plugin_list_posix.cc if (fd < 0) fd 171 content/common/plugin_list_posix.cc bool ret = (fstat(fd, &stat_buf) >= 0 && S_ISREG(stat_buf.st_mode)); fd 172 content/common/plugin_list_posix.cc if (IGNORE_EINTR(close(fd)) < 0) fd 41 content/common/sandbox_linux/sandbox_linux.cc inline void operator()(int* fd) const { fd 42 content/common/sandbox_linux/sandbox_linux.cc DCHECK(fd); fd 43 content/common/sandbox_linux/sandbox_linux.cc PCHECK(0 == IGNORE_EINTR(close(*fd))); fd 44 content/common/sandbox_linux/sandbox_linux.cc *fd = -1; fd 37 content/common/sandbox_util.cc int fd = should_close_source ? handle : ::dup(handle); fd 38 content/common/sandbox_util.cc out_handle = base::FileDescriptor(fd, true); fd 501 content/ppapi_plugin/ppapi_thread.cc if (handle->socket.fd == -1) fd 12 content/public/android/java/src/org/chromium/content/browser/FileDescriptorInfo.java FileDescriptorInfo(int id, int fd, boolean autoClose) { fd 14 content/public/android/java/src/org/chromium/content/browser/FileDescriptorInfo.java mFd = fd; fd 20 content/public/browser/file_descriptor_info.h fd(file_descriptor) { fd 24 content/public/browser/file_descriptor_info.h base::FileDescriptor fd; fd 50 content/public/common/child_process_sandbox_support_linux.h CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table_tag, off_t offset, fd 68 content/public/common/zygote_fork_delegate_linux.h virtual bool AckChild(int fd, const std::string& channel_switch) = 0; fd 522 content/renderer/media/android/audio_decoder_android.cc base::FileDescriptor fd(audio_decoder.write_fd(), true); fd 531 content/renderer/media/android/audio_decoder_android.cc encoded_data_handle, fd, data_size)); fd 133 content/renderer/media/audio_input_message_filter.cc base::SyncSocket::Handle socket_handle = socket_descriptor.fd; fd 184 content/renderer/media/audio_message_filter.cc base::SyncSocket::Handle socket_handle = socket_descriptor.fd; fd 44 content/renderer/mojo/mojo_render_process_observer.cc base::PlatformFile handle = file.fd; fd 515 content/renderer/npapi/webplugin_delegate_proxy.cc if ((handle_out->fd = HANDLE_EINTR(dup(handle_in.fd))) < 0) { fd 662 content/renderer/npapi/webplugin_delegate_proxy.cc if (handle.fd < 0) fd 41 content/renderer/pepper/audio_helper.cc *shm_handle = shared_memory_for_create_callback_->handle().fd; fd 91 content/renderer/pepper/host_array_buffer_var.cc shm->handle().fd; fd 42 content/renderer/pepper/host_dispatcher_wrapper.cc DCHECK_NE(-1, channel_handle.socket.fd); fd 43 content/renderer/pepper/host_dispatcher_wrapper.cc if (channel_handle.socket.fd == -1) fd 32 content/renderer/pepper/pepper_audio_input_host.cc return shared_memory.handle().fd; fd 63 content/renderer/pepper/pepper_broker.cc DCHECK_NE(-1, channel_handle.socket.fd); fd 64 content/renderer/pepper/pepper_broker.cc if (channel_handle.socket.fd == -1) fd 61 content/renderer/pepper/pepper_media_stream_track_host_base.cc shm_handle.fd; fd 83 content/renderer/pepper/pepper_platform_audio_input.cc DCHECK_NE(-1, handle.fd); fd 82 content/renderer/pepper/pepper_platform_audio_output.cc DCHECK_NE(-1, handle.fd); fd 90 content/renderer/pepper/ppb_buffer_impl.cc *shm_handle = shared_memory_->handle().fd; fd 249 content/renderer/pepper/ppb_image_data_impl.cc *handle = static_cast<intptr_t>(dib_->handle().fd); fd 319 content/renderer/pepper/ppb_image_data_impl.cc *handle = shared_memory_->handle().fd; fd 121 content/renderer/render_process_impl.cc if (handle.fd < 0) fd 1303 content/renderer/render_thread_impl.cc channel_handle.socket.fd == -1 || fd 124 content/zygote/zygote_linux.cc bool Zygote::HandleRequestFromBrowser(int fd) { fd 127 content/zygote/zygote_linux.cc const ssize_t len = UnixDomainSocket::RecvMsg(fd, buf, sizeof(buf), &fds); fd 148 content/zygote/zygote_linux.cc return HandleForkRequest(fd, pickle, iter, fds); fd 153 content/zygote/zygote_linux.cc HandleReapRequest(fd, pickle, iter); fd 158 content/zygote/zygote_linux.cc HandleGetTerminationStatus(fd, pickle, iter); fd 161 content/zygote/zygote_linux.cc HandleGetSandboxStatus(fd, pickle, iter); fd 177 content/zygote/zygote_linux.cc void Zygote::HandleReapRequest(int fd, fd 262 content/zygote/zygote_linux.cc void Zygote::HandleGetTerminationStatus(int fd, fd 292 content/zygote/zygote_linux.cc HANDLE_EINTR(write(fd, write_pickle.data(), write_pickle.size())); fd 516 content/zygote/zygote_linux.cc bool Zygote::HandleForkRequest(int fd, fd 548 content/zygote/zygote_linux.cc if (HANDLE_EINTR(write(fd, reply_pickle.data(), reply_pickle.size())) != fd 554 content/zygote/zygote_linux.cc bool Zygote::HandleGetSandboxStatus(int fd, fd 557 content/zygote/zygote_linux.cc if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != fd 59 content/zygote/zygote_linux.h bool HandleRequestFromBrowser(int fd); fd 61 content/zygote/zygote_linux.h void HandleReapRequest(int fd, const Pickle& pickle, PickleIterator iter); fd 71 content/zygote/zygote_linux.h void HandleGetTerminationStatus(int fd, fd 101 content/zygote/zygote_linux.h bool HandleForkRequest(int fd, fd 106 content/zygote/zygote_linux.h bool HandleGetSandboxStatus(int fd, fd 347 content/zygote/zygote_main_linux.cc static void CloseFdAndHandleEintr(int fd) { fd 348 content/zygote/zygote_main_linux.cc close(fd); fd 712 dbus/message.cc int fd = value.value(); fd 713 dbus/message.cc AppendBasic(DBUS_TYPE_UNIX_FD, &fd); fd 981 dbus/message.cc int fd = -1; fd 982 dbus/message.cc const bool success = PopBasic(DBUS_TYPE_UNIX_FD, &fd); fd 986 dbus/message.cc value->PutValue(fd); fd 46 device/bluetooth/bluetooth_profile_chromeos.cc scoped_ptr<dbus::FileDescriptor> fd) { fd 48 device/bluetooth/bluetooth_profile_chromeos.cc fd->CheckValidity(); fd 49 device/bluetooth/bluetooth_profile_chromeos.cc return fd.Pass(); fd 181 device/bluetooth/bluetooth_profile_chromeos.cc scoped_ptr<dbus::FileDescriptor> fd, fd 199 device/bluetooth/bluetooth_profile_chromeos.cc base::Bind(&CheckValidity, base::Passed(&fd)), fd 277 device/bluetooth/bluetooth_profile_chromeos.cc scoped_ptr<dbus::FileDescriptor> fd) { fd 279 device/bluetooth/bluetooth_profile_chromeos.cc if (!fd->is_valid()) { fd 292 device/bluetooth/bluetooth_profile_chromeos.cc BluetoothSocketChromeOS::Create(fd.get()))); fd 62 device/bluetooth/bluetooth_profile_chromeos.h scoped_ptr<dbus::FileDescriptor> fd, fd 106 device/bluetooth/bluetooth_profile_chromeos.h scoped_ptr<dbus::FileDescriptor> fd); fd 27 device/bluetooth/bluetooth_socket_chromeos.cc BluetoothSocketChromeOS::BluetoothSocketChromeOS(int fd) fd 28 device/bluetooth/bluetooth_socket_chromeos.cc : fd_(fd) { fd 69 device/bluetooth/bluetooth_socket_chromeos.cc pollfd.fd = fd_; fd 159 device/bluetooth/bluetooth_socket_chromeos.cc dbus::FileDescriptor* fd) { fd 160 device/bluetooth/bluetooth_socket_chromeos.cc DCHECK(fd->is_valid()); fd 163 device/bluetooth/bluetooth_socket_chromeos.cc new BluetoothSocketChromeOS(fd->TakeValue()); fd 44 device/bluetooth/bluetooth_socket_chromeos.h dbus::FileDescriptor* fd); fd 50 device/bluetooth/bluetooth_socket_chromeos.h BluetoothSocketChromeOS(int fd); fd 35 device/bluetooth/bluetooth_socket_win.cc BluetoothSocketWin::BluetoothSocketWin(SOCKET fd) : fd_(fd) { fd 42 device/bluetooth/bluetooth_socket_win.h explicit BluetoothSocketWin(SOCKET fd); fd 92 device/hid/hid_connection_linux.cc void HidConnectionLinux::OnFileCanReadWithoutBlocking(int fd) { fd 94 device/hid/hid_connection_linux.cc DCHECK_EQ(fd, device_file_.GetPlatformFile()); fd 114 device/hid/hid_connection_linux.cc void HidConnectionLinux::OnFileCanWriteWithoutBlocking(int fd) {} fd 35 device/hid/hid_connection_linux.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 36 device/hid/hid_connection_linux.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 93 device/hid/hid_service_linux.cc void HidServiceLinux::OnFileCanReadWithoutBlocking(int fd) { fd 94 device/hid/hid_service_linux.cc DCHECK_EQ(monitor_fd_, fd); fd 108 device/hid/hid_service_linux.cc void HidServiceLinux::OnFileCanWriteWithoutBlocking(int fd) {} fd 60 device/hid/hid_service_linux.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 61 device/hid/hid_service_linux.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 34 ipc/file_descriptor_set_posix.cc if (IGNORE_EINTR(close(descriptors_[i].fd)) < 0) fd 39 ipc/file_descriptor_set_posix.cc bool FileDescriptorSet::Add(int fd) { fd 46 ipc/file_descriptor_set_posix.cc sd.fd = fd; fd 52 ipc/file_descriptor_set_posix.cc bool FileDescriptorSet::AddAndAutoClose(int fd) { fd 59 ipc/file_descriptor_set_posix.cc sd.fd = fd; fd 96 ipc/file_descriptor_set_posix.cc return descriptors_[index].fd; fd 102 ipc/file_descriptor_set_posix.cc *(buffer++) = i->fd; fd 111 ipc/file_descriptor_set_posix.cc if (fstat(i->fd, &st) == 0 && S_ISDIR(st.st_mode)) fd 122 ipc/file_descriptor_set_posix.cc if (IGNORE_EINTR(close(i->fd)) < 0) fd 133 ipc/file_descriptor_set_posix.cc fds->push_back(i->fd); fd 147 ipc/file_descriptor_set_posix.cc sd.fd = buffer[i]; fd 39 ipc/file_descriptor_set_posix.h bool Add(int fd); fd 42 ipc/file_descriptor_set_posix.h bool AddAndAutoClose(int fd); fd 24 ipc/file_descriptor_set_posix_unittest.cc bool VerifyClosed(int fd) { fd 25 ipc/file_descriptor_set_posix_unittest.cc const int duped = dup(fd); fd 28 ipc/file_descriptor_set_posix_unittest.cc EXPECT_NE(IGNORE_EINTR(close(fd)), -1); fd 58 ipc/file_descriptor_set_posix_unittest.cc const int fd = GetSafeFd(); fd 59 ipc/file_descriptor_set_posix_unittest.cc ASSERT_TRUE(set->AddAndAutoClose(fd)); fd 65 ipc/file_descriptor_set_posix_unittest.cc ASSERT_TRUE(VerifyClosed(fd)); fd 85 ipc/file_descriptor_set_posix_unittest.cc const int fd = GetSafeFd(); fd 86 ipc/file_descriptor_set_posix_unittest.cc static const int fds[] = {fd}; fd 93 ipc/file_descriptor_set_posix_unittest.cc ASSERT_TRUE(VerifyClosed(fd)); fd 160 ipc/file_descriptor_set_posix_unittest.cc const int fd = GetSafeFd(); fd 161 ipc/file_descriptor_set_posix_unittest.cc ASSERT_TRUE(set->Add(fd)); fd 164 ipc/file_descriptor_set_posix_unittest.cc ASSERT_FALSE(VerifyClosed(fd)); fd 170 ipc/file_descriptor_set_posix_unittest.cc const int fd = GetSafeFd(); fd 171 ipc/file_descriptor_set_posix_unittest.cc ASSERT_TRUE(set->AddAndAutoClose(fd)); fd 174 ipc/file_descriptor_set_posix_unittest.cc ASSERT_TRUE(VerifyClosed(fd)); fd 47 ipc/ipc_channel_factory.cc void ChannelFactory::OnFileCanReadWithoutBlocking(int fd) { fd 48 ipc/ipc_channel_factory.cc DCHECK(fd == listen_fd_); fd 72 ipc/ipc_channel_factory.cc void ChannelFactory::OnFileCanWriteWithoutBlocking(int fd) { fd 44 ipc/ipc_channel_factory.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 45 ipc/ipc_channel_factory.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 251 ipc/ipc_channel_nacl.cc if (channel_handle.socket.fd == -1) { fd 255 ipc/ipc_channel_nacl.cc pipe_ = channel_handle.socket.fd; fd 121 ipc/ipc_channel_posix.cc void Insert(const std::string& channel_id, int fd) { fd 123 ipc/ipc_channel_posix.cc DCHECK_NE(-1, fd); fd 126 ipc/ipc_channel_posix.cc CHECK(i == map_.end()) << "Creating second IPC server (fd " << fd << ") " fd 129 ipc/ipc_channel_posix.cc map_[channel_id] = fd; fd 248 ipc/ipc_channel_posix.cc if (channel_handle.socket.fd != -1) { fd 250 ipc/ipc_channel_posix.cc local_pipe = channel_handle.socket.fd; fd 554 ipc/ipc_channel_posix.cc int fd = client_pipe_; fd 559 ipc/ipc_channel_posix.cc return fd; fd 642 ipc/ipc_channel_posix.cc void Channel::ChannelImpl::OnFileCanReadWithoutBlocking(int fd) { fd 643 ipc/ipc_channel_posix.cc if (fd == server_listen_pipe_) { fd 682 ipc/ipc_channel_posix.cc } else if (fd == pipe_) { fd 693 ipc/ipc_channel_posix.cc NOTREACHED() << "Unknown pipe " << fd; fd 708 ipc/ipc_channel_posix.cc void Channel::ChannelImpl::OnFileCanWriteWithoutBlocking(int fd) { fd 709 ipc/ipc_channel_posix.cc DCHECK_EQ(pipe_, fd); fd 952 ipc/ipc_channel_posix.cc void Channel::ChannelImpl::QueueCloseFDMessage(int fd, int hops) { fd 960 ipc/ipc_channel_posix.cc if (!msg->WriteInt(hops - 1) || !msg->WriteInt(fd)) { fd 998 ipc/ipc_channel_posix.cc fd_pipe_ = descriptor.fd; fd 1008 ipc/ipc_channel_posix.cc int fd, hops; fd 1011 ipc/ipc_channel_posix.cc if (!msg.ReadInt(&iter, &fd)) fd 1014 ipc/ipc_channel_posix.cc if (fds_to_close_.erase(fd) > 0) { fd 1015 ipc/ipc_channel_posix.cc if (IGNORE_EINTR(close(fd)) < 0) fd 1021 ipc/ipc_channel_posix.cc QueueCloseFDMessage(fd, hops); fd 85 ipc/ipc_channel_posix.h void QueueCloseFDMessage(int fd, int hops); fd 115 ipc/ipc_channel_posix.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 116 ipc/ipc_channel_posix.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 186 ipc/ipc_channel_posix_unittest.cc handle->socket.fd = socket_fd; fd 222 ipc/ipc_channel_posix_unittest.cc base::FileDescriptor fd(pipe_fds[0], false); fd 223 ipc/ipc_channel_posix_unittest.cc IPC::ChannelHandle handle(socket_name, fd); fd 129 ipc/ipc_message.cc return file_descriptor_set()->AddAndAutoClose(descriptor.fd); fd 131 ipc/ipc_message.cc return file_descriptor_set()->Add(descriptor.fd); fd 145 ipc/ipc_message.cc descriptor->fd = file_descriptor_set->GetDescriptorAt(descriptor_index); fd 148 ipc/ipc_message.cc return descriptor->fd >= 0; fd 462 ipc/ipc_message_utils.cc const bool valid = p.fd >= 0; fd 479 ipc/ipc_message_utils.cc r->fd = -1; fd 490 ipc/ipc_message_utils.cc l->append(base::StringPrintf("FD(%d auto-close)", p.fd)); fd 492 ipc/ipc_message_utils.cc l->append(base::StringPrintf("FD(%d)", p.fd)); fd 40 ipc/ipc_platform_file.cc int fd = close_source_handle ? handle : ::dup(handle); fd 41 ipc/ipc_platform_file.cc out_handle = base::FileDescriptor(fd, true); fd 39 ipc/ipc_platform_file.h return transit.fd; fd 48 ipc/ipc_platform_file.h return base::File(transit.fd); fd 43 ipc/ipc_send_fds_test.cc HandleFD(descriptor.fd); fd 48 ipc/ipc_send_fds_test.cc virtual void HandleFD(int fd) = 0; fd 68 ipc/ipc_send_fds_test.cc virtual void HandleFD(int fd) OVERRIDE { fd 71 ipc/ipc_send_fds_test.cc ssize_t amt_read = read(fd, &buf, 1); fd 76 ipc/ipc_send_fds_test.cc ASSERT_EQ(fstat(fd, &st), 0); fd 78 ipc/ipc_send_fds_test.cc ASSERT_EQ(close(fd), 0); fd 105 ipc/ipc_send_fds_test.cc const int fd = open(kDevZeroPath, O_RDONLY); fd 106 ipc/ipc_send_fds_test.cc ASSERT_GE(fd, 0); fd 107 ipc/ipc_send_fds_test.cc base::FileDescriptor descriptor(fd, true); fd 154 ipc/ipc_send_fds_test.cc int fd = open(kDevZeroPath, O_RDONLY); fd 155 ipc/ipc_send_fds_test.cc fstat(fd, &st); fd 156 ipc/ipc_send_fds_test.cc EXPECT_GE(IGNORE_EINTR(close(fd)), 0); fd 170 ipc/ipc_send_fds_test.cc const int fd = open(kDevZeroPath, O_RDONLY); fd 171 ipc/ipc_send_fds_test.cc fstat(fd, &st); fd 172 ipc/ipc_send_fds_test.cc if (IGNORE_EINTR(close(fd)) < 0) fd 205 ipc/ipc_send_fds_test.cc virtual void HandleFD(int fd) OVERRIDE { fd 206 ipc/ipc_send_fds_test.cc cb_.Run(fd); fd 277 ipc/ipc_send_fds_test.cc void Send(int fd) { fd 280 ipc/ipc_send_fds_test.cc ASSERT_GE(fd, 0); fd 281 ipc/ipc_send_fds_test.cc base::FileDescriptor descriptor(fd, true); fd 329 ipc/ipc_send_fds_test.cc void ConsumerHandleFD(int fd) { fd 331 ipc/ipc_send_fds_test.cc CHECK_EQ(1, HANDLE_EINTR(read(fd, &tmp, 1))); fd 333 ipc/ipc_send_fds_test.cc CHECK_EQ(0, IGNORE_EINTR(close(fd))); fd 81 ipc/sync_socket_unittest.cc SetHandle(fd_struct.fd); fd 49 ipc/unix_domain_socket_util.cc base::ScopedFD fd(socket(AF_UNIX, SOCK_STREAM, 0)); fd 50 ipc/unix_domain_socket_util.cc if (!fd.is_valid()) { fd 56 ipc/unix_domain_socket_util.cc if (HANDLE_EINTR(fcntl(fd.get(), F_SETFL, O_NONBLOCK)) < 0) { fd 67 ipc/unix_domain_socket_util.cc return fd.release(); fd 81 ipc/unix_domain_socket_util.cc base::ScopedFD fd( fd 83 ipc/unix_domain_socket_util.cc if (!fd.is_valid()) fd 99 ipc/unix_domain_socket_util.cc if (bind(fd.get(), reinterpret_cast<const sockaddr*>(&unix_addr), fd 106 ipc/unix_domain_socket_util.cc if (listen(fd.get(), SOMAXCONN) < 0) { fd 112 ipc/unix_domain_socket_util.cc *server_listen_fd = fd.release(); fd 125 ipc/unix_domain_socket_util.cc base::ScopedFD fd( fd 127 ipc/unix_domain_socket_util.cc if (!fd.is_valid()) fd 130 ipc/unix_domain_socket_util.cc if (HANDLE_EINTR(connect(fd.get(), reinterpret_cast<sockaddr*>(&unix_addr), fd 136 ipc/unix_domain_socket_util.cc *client_socket = fd.release(); fd 140 ipc/unix_domain_socket_util.cc bool GetPeerEuid(int fd, uid_t* peer_euid) { fd 145 ipc/unix_domain_socket_util.cc if (getpeereid(fd, &socket_euid, &socket_gid) < 0) { fd 146 ipc/unix_domain_socket_util.cc PLOG(ERROR) << "getpeereid " << fd; fd 154 ipc/unix_domain_socket_util.cc if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len) < 0) { fd 155 ipc/unix_domain_socket_util.cc PLOG(ERROR) << "getsockopt " << fd; fd 40 ipc/unix_domain_socket_util.h IPC_EXPORT bool GetPeerEuid(int fd, uid_t* peer_euid); fd 21 ipc/unix_domain_socket_util_unittest.cc SocketAcceptor(int fd, base::MessageLoopProxy* target_thread) fd 27 ipc/unix_domain_socket_util_unittest.cc base::Bind(&SocketAcceptor::StartWatching, base::Unretained(this), fd)); fd 53 ipc/unix_domain_socket_util_unittest.cc void StartWatching(int fd) { fd 56 ipc/unix_domain_socket_util_unittest.cc fd, true, base::MessageLoopForIO::WATCH_READ, watcher_.get(), this); fd 63 ipc/unix_domain_socket_util_unittest.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { fd 65 ipc/unix_domain_socket_util_unittest.cc IPC::ServerAcceptConnection(fd, &server_fd_); fd 69 ipc/unix_domain_socket_util_unittest.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} fd 124 media/audio/audio_input_device.cc DCHECK_GE(handle.fd, 0); fd 218 media/audio/audio_output_device.cc DCHECK_GE(handle.fd, 0); fd 37 media/audio/openbsd/audio_manager_openbsd.cc int fd; fd 43 media/audio/openbsd/audio_manager_openbsd.cc if ((fd = open(file, O_RDONLY)) < 0) fd 46 media/audio/openbsd/audio_manager_openbsd.cc close(fd); fd 43 media/base/android/webaudio_media_codec_bridge.cc pcm_output_(pcm_output.fd), fd 46 media/base/android/webaudio_media_codec_bridge.cc << " output fd = " << pcm_output.fd; fd 67 media/base/android/webaudio_media_codec_bridge.cc int fd = open(temporaryFile.c_str(), O_RDWR); fd 73 media/base/android/webaudio_media_codec_bridge.cc if (fd < 0) { fd 86 media/base/android/webaudio_media_codec_bridge.cc if (static_cast<uint32_t>(write(fd, encoded_data.memory(), data_size_)) fd 92 media/base/android/webaudio_media_codec_bridge.cc lseek(fd, 0, SEEK_SET); fd 94 media/base/android/webaudio_media_codec_bridge.cc return fd; fd 62 media/base/user_input_monitor_linux.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 63 media/base/user_input_monitor_linux.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 277 media/base/user_input_monitor_linux.cc void UserInputMonitorLinuxCore::OnFileCanReadWithoutBlocking(int fd) { fd 286 media/base/user_input_monitor_linux.cc void UserInputMonitorLinuxCore::OnFileCanWriteWithoutBlocking(int fd) { fd 254 media/midi/midi_manager_alsa.cc poll_fds_[0].fd = pipe_fd_[0]; fd 94 media/video/capture/linux/video_capture_device_linux.cc static bool HasUsableFormats(int fd) { fd 103 media/video/capture/linux/video_capture_device_linux.cc while (HANDLE_EINTR(ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc)) == 0) { fd 123 media/video/capture/linux/video_capture_device_linux.cc base::ScopedFD fd(HANDLE_EINTR(open(unique_id.c_str(), O_RDONLY))); fd 124 media/video/capture/linux/video_capture_device_linux.cc if (!fd.is_valid()) { fd 130 media/video/capture/linux/video_capture_device_linux.cc if ((HANDLE_EINTR(ioctl(fd.get(), VIDIOC_QUERYCAP, &cap)) == 0) && fd 134 media/video/capture/linux/video_capture_device_linux.cc if (HasUsableFormats(fd.get())) { fd 149 media/video/capture/linux/video_capture_device_linux.cc base::ScopedFD fd(HANDLE_EINTR(open(device.id().c_str(), O_RDONLY))); fd 150 media/video/capture/linux/video_capture_device_linux.cc if (!fd.is_valid()) { fd 160 media/video/capture/linux/video_capture_device_linux.cc while (HANDLE_EINTR(ioctl(fd.get(), VIDIOC_ENUM_FMT, &pixel_format)) == 0) { fd 171 media/video/capture/linux/video_capture_device_linux.cc while (HANDLE_EINTR(ioctl(fd.get(), VIDIOC_ENUM_FRAMESIZES, &frame_size)) == fd 188 media/video/capture/linux/video_capture_device_linux.cc fd.get(), VIDIOC_ENUM_FRAMEINTERVALS, &frame_interval)) == 0) { fd 258 media/video/capture/linux/video_capture_device_linux.cc base::ScopedFD fd(HANDLE_EINTR(open(device_name.id().c_str(), O_RDONLY))); fd 259 media/video/capture/linux/video_capture_device_linux.cc if (!fd.is_valid()) { fd 27 mojo/common/test/multiprocess_test_helper_unittest.cc return fcntl(handle.fd, F_GETFL) & O_NONBLOCK; fd 20 mojo/common/test/test_utils_posix.cc int original_flags = fcntl(handle.fd, F_GETFL); fd 22 mojo/common/test/test_utils_posix.cc fcntl(handle.fd, F_SETFL, original_flags & (~O_NONBLOCK)) != 0) { fd 26 mojo/common/test/test_utils_posix.cc ssize_t result = HANDLE_EINTR(write(handle.fd, buffer, bytes_to_write)); fd 28 mojo/common/test/test_utils_posix.cc fcntl(handle.fd, F_SETFL, original_flags); fd 41 mojo/common/test/test_utils_posix.cc int original_flags = fcntl(handle.fd, F_GETFL); fd 43 mojo/common/test/test_utils_posix.cc fcntl(handle.fd, F_SETFL, original_flags & (~O_NONBLOCK)) != 0) { fd 47 mojo/common/test/test_utils_posix.cc ssize_t result = HANDLE_EINTR(read(handle.fd, buffer, buffer_size)); fd 49 mojo/common/test/test_utils_posix.cc fcntl(handle.fd, F_SETFL, original_flags); fd 62 mojo/common/test/test_utils_posix.cc ssize_t result = HANDLE_EINTR(read(handle.fd, buffer, buffer_size)); fd 95 mojo/embedder/platform_channel_pair_posix.cc handle_passing_info->push_back(std::pair<int, int>(client_handle_.get().fd, fd 55 mojo/embedder/platform_channel_pair_posix_unittest.cc write(client_handle.get().fd, kHello, sizeof(kHello))); fd 63 mojo/embedder/platform_channel_pair_posix_unittest.cc read(server_handle.get().fd, buffer, sizeof(buffer))); fd 67 mojo/embedder/platform_channel_pair_posix_unittest.cc ssize_t result = read(server_handle.get().fd, buffer, sizeof(buffer)); fd 78 mojo/embedder/platform_channel_pair_posix_unittest.cc result = write(server_handle.get().fd, kHello, sizeof(kHello)); fd 80 mojo/embedder/platform_channel_pair_posix_unittest.cc result = send(server_handle.get().fd, kHello, sizeof(kHello), MSG_NOSIGNAL); fd 27 mojo/embedder/platform_handle.cc bool success = (close(fd) == 0); fd 29 mojo/embedder/platform_handle.cc fd = -1; fd 20 mojo/embedder/platform_handle.h PlatformHandle() : fd(-1) {} fd 21 mojo/embedder/platform_handle.h explicit PlatformHandle(int fd) : fd(fd) {} fd 25 mojo/embedder/platform_handle.h bool is_valid() const { return fd != -1; } fd 27 mojo/embedder/platform_handle.h int fd; fd 51 mojo/system/raw_channel_posix.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 52 mojo/system/raw_channel_posix.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 107 mojo/system/raw_channel_posix.cc ssize_t read_result = HANDLE_EINTR(read(fd_.get().fd, buffer, bytes_to_read)); fd 149 mojo/system/raw_channel_posix.cc write(fd_.get().fd, buffers[0].addr, buffers[0].size)); fd 176 mojo/system/raw_channel_posix.cc write_result = HANDLE_EINTR(writev(fd_.get().fd, iov, buffer_count)); fd 181 mojo/system/raw_channel_posix.cc write_result = HANDLE_EINTR(sendmsg(fd_.get().fd, &msg, MSG_NOSIGNAL)); fd 216 mojo/system/raw_channel_posix.cc fd_.get().fd, false, base::MessageLoopForIO::WATCH_WRITE, fd 233 mojo/system/raw_channel_posix.cc if (!message_loop_for_io()->WatchFileDescriptor(fd_.get().fd, true, fd 264 mojo/system/raw_channel_posix.cc void RawChannelPosix::OnFileCanReadWithoutBlocking(int fd) { fd 265 mojo/system/raw_channel_posix.cc DCHECK_EQ(fd, fd_.get().fd); fd 290 mojo/system/raw_channel_posix.cc void RawChannelPosix::OnFileCanWriteWithoutBlocking(int fd) { fd 291 mojo/system/raw_channel_posix.cc DCHECK_EQ(fd, fd_.get().fd); fd 315 mojo/system/raw_channel_posix.cc fd_.get().fd, false, base::MessageLoopForIO::WATCH_WRITE, fd 70 mojo/system/raw_shared_buffer_posix.cc base::ScopedFD fd(dup(fileno(fp.get()))); fd 71 mojo/system/raw_shared_buffer_posix.cc if (!fd.is_valid()) { fd 76 mojo/system/raw_shared_buffer_posix.cc if (HANDLE_EINTR(ftruncate(fd.get(), static_cast<off_t>(num_bytes_))) != 0) { fd 81 mojo/system/raw_shared_buffer_posix.cc handle_.reset(embedder::PlatformHandle(fd.release())); fd 100 mojo/system/raw_shared_buffer_posix.cc handle_.get().fd, static_cast<off_t>(real_offset)); fd 37 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc RealNode(Filesystem* filesystem, int fd); fd 114 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc RealNode::RealNode(Filesystem* filesystem, int fd) : Node(filesystem), fd_(fd) { fd 22 native_client_sdk/src/libraries/nacl_io/include/sys/ioctl.h int ioctl(int fd, unsigned long request, ...); fd 29 native_client_sdk/src/libraries/nacl_io/include/sys/poll.h int fd; fd 134 native_client_sdk/src/libraries/nacl_io/include/sys/termios.h int tcdrain(int fd); fd 135 native_client_sdk/src/libraries/nacl_io/include/sys/termios.h int tcflow(int fd, int action); fd 136 native_client_sdk/src/libraries/nacl_io/include/sys/termios.h int tcflush(int fd, int queue_selector); fd 137 native_client_sdk/src/libraries/nacl_io/include/sys/termios.h int tcgetattr(int fd, struct termios *termios_p); fd 138 native_client_sdk/src/libraries/nacl_io/include/sys/termios.h int tcsendbreak(int fd, int duration); fd 139 native_client_sdk/src/libraries/nacl_io/include/sys/termios.h int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); fd 159 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_fchdir(int fd) { fd 161 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->fchdir(fd); fd 164 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_fchmod(int fd, mode_t mode) { fd 166 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->fchmod(fd, mode); fd 205 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_read(int fd, void *buf, size_t nbyte) { fd 207 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->read(fd, buf, nbyte); fd 210 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_write(int fd, const void *buf, size_t nbyte) { fd 212 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->write(fd, buf, nbyte); fd 215 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_fstat(int fd, struct stat *buf){ fd 217 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->fstat(fd, buf); fd 220 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_getdents(int fd, void *buf, unsigned int count) { fd 222 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->getdents(fd, buf, count); fd 225 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_ftruncate(int fd, off_t length) { fd 227 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->ftruncate(fd, length); fd 230 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_fsync(int fd) { fd 232 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->fsync(fd); fd 235 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_fdatasync(int fd) { fd 237 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->fdatasync(fd); fd 240 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_isatty(int fd) { fd 242 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->isatty(fd); fd 245 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_close(int fd) { fd 247 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->close(fd); fd 250 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc off_t ki_lseek(int fd, off_t offset, int whence) { fd 252 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->lseek(fd, offset, whence); fd 305 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc void* ki_mmap(void* addr, size_t length, int prot, int flags, int fd, fd 308 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->mmap(addr, length, prot, flags, fd, offset); fd 335 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_fchown(int fd, uid_t owner, gid_t group) { fd 337 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->fchown(fd, owner, group); fd 359 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_tcflush(int fd, int queue_selector) { fd 361 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->tcflush(fd, queue_selector); fd 364 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_tcgetattr(int fd, struct termios* termios_p) { fd 366 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->tcgetattr(fd, termios_p); fd 369 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_tcsetattr(int fd, int optional_actions, fd 372 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->tcsetattr(fd, optional_actions, termios_p); fd 426 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_accept(int fd, struct sockaddr* addr, socklen_t* len) { fd 428 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->accept(fd, addr, len); fd 431 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_bind(int fd, const struct sockaddr* addr, socklen_t len) { fd 433 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->bind(fd, addr, len); fd 436 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_connect(int fd, const struct sockaddr* addr, socklen_t len) { fd 438 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->connect(fd, addr, len); fd 457 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_getpeername(int fd, struct sockaddr* addr, socklen_t* len) { fd 459 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->getpeername(fd, addr, len); fd 462 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_getsockname(int fd, struct sockaddr* addr, socklen_t* len) { fd 464 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->getsockname(fd, addr, len); fd 467 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len) { fd 469 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->getsockopt(fd, lvl, optname, optval, len); fd 472 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_listen(int fd, int backlog) { fd 474 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->listen(fd, backlog); fd 477 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_recv(int fd, void* buf, size_t len, int flags) { fd 479 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->recv(fd, buf, len, flags); fd 482 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_recvfrom(int fd, void* buf, size_t len, int flags, fd 485 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->recvfrom(fd, buf, len, flags, addr, addrlen); fd 488 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_recvmsg(int fd, struct msghdr* msg, int flags) { fd 490 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->recvmsg(fd, msg, flags); fd 493 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_send(int fd, const void* buf, size_t len, int flags) { fd 495 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->send(fd, buf, len, flags); fd 498 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_sendto(int fd, const void* buf, size_t len, int flags, fd 501 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->sendto(fd, buf, len, flags, addr, addrlen); fd 504 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ssize_t ki_sendmsg(int fd, const struct msghdr* msg, int flags) { fd 506 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->sendmsg(fd, msg, flags); fd 509 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_setsockopt(int fd, int lvl, int optname, const void* optval, fd 512 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->setsockopt(fd, lvl, optname, optval, len); fd 515 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc int ki_shutdown(int fd, int how) { fd 517 native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc return s_state.kp->shutdown(fd, how); fd 77 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_fchdir(int fd); fd 78 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_fchmod(int fd, mode_t mode); fd 87 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_read(int fd, void* buf, size_t nbyte); fd 88 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_write(int fd, const void* buf, size_t nbyte); fd 89 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_fstat(int fd, struct stat *buf); fd 90 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_getdents(int fd, void* buf, unsigned int count); fd 91 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_fsync(int fd); fd 92 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_fdatasync(int fd); fd 93 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_ftruncate(int fd, off_t length); fd 94 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_isatty(int fd); fd 95 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_close(int fd); fd 96 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h off_t ki_lseek(int fd, off_t offset, int whence); fd 107 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h void* ki_mmap(void* addr, size_t length, int prot, int flags, int fd, fd 114 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_fchown(int fd, uid_t owner, gid_t group); fd 122 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_tcflush(int fd, int queue_selector); fd 123 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_tcgetattr(int fd, struct termios* termios_p); fd 124 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_tcsetattr(int fd, int optional_actions, fd 138 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_accept(int fd, struct sockaddr* addr, socklen_t* len); fd 139 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_bind(int fd, const struct sockaddr* addr, socklen_t len); fd 140 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_connect(int fd, const struct sockaddr* addr, socklen_t len); fd 146 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_getpeername(int fd, struct sockaddr* addr, socklen_t* len); fd 147 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_getsockname(int fd, struct sockaddr* addr, socklen_t* len); fd 148 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len); fd 149 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_listen(int fd, int backlog); fd 150 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_recv(int fd, void* buf, size_t len, int flags); fd 151 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_recvfrom(int fd, void* buf, size_t len, int flags, fd 153 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_recvmsg(int fd, struct msghdr* msg, int flags); fd 154 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_send(int fd, const void* buf, size_t len, int flags); fd 155 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_sendto(int fd, const void* buf, size_t len, int flags, fd 157 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h ssize_t ki_sendmsg(int fd, const struct msghdr* msg, int flags); fd 158 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_setsockopt(int fd, int lvl, int optname, const void* optval, fd 160 native_client_sdk/src/libraries/nacl_io/kernel_intercept.h int ki_shutdown(int fd, int how); fd 146 native_client_sdk/src/libraries/nacl_io/kernel_object.cc Error KernelObject::GetFDFlags(int fd, int* out_flags) { fd 148 native_client_sdk/src/libraries/nacl_io/kernel_object.cc if (fd < 0 || fd >= static_cast<int>(handle_map_.size())) fd 151 native_client_sdk/src/libraries/nacl_io/kernel_object.cc *out_flags = handle_map_[fd].flags; fd 155 native_client_sdk/src/libraries/nacl_io/kernel_object.cc Error KernelObject::SetFDFlags(int fd, int flags) { fd 157 native_client_sdk/src/libraries/nacl_io/kernel_object.cc if (fd < 0 || fd >= static_cast<int>(handle_map_.size())) fd 164 native_client_sdk/src/libraries/nacl_io/kernel_object.cc handle_map_[fd].flags = flags; fd 168 native_client_sdk/src/libraries/nacl_io/kernel_object.cc Error KernelObject::AcquireHandle(int fd, ScopedKernelHandle* out_handle) { fd 172 native_client_sdk/src/libraries/nacl_io/kernel_object.cc if (fd < 0 || fd >= static_cast<int>(handle_map_.size())) fd 175 native_client_sdk/src/libraries/nacl_io/kernel_object.cc *out_handle = handle_map_[fd].handle; fd 182 native_client_sdk/src/libraries/nacl_io/kernel_object.cc Error KernelObject::AcquireHandleAndPath(int fd, ScopedKernelHandle* out_handle, fd 187 native_client_sdk/src/libraries/nacl_io/kernel_object.cc if (fd < 0 || fd >= static_cast<int>(handle_map_.size())) fd 190 native_client_sdk/src/libraries/nacl_io/kernel_object.cc *out_handle = handle_map_[fd].handle; fd 194 native_client_sdk/src/libraries/nacl_io/kernel_object.cc *out_path = handle_map_[fd].path; fd 222 native_client_sdk/src/libraries/nacl_io/kernel_object.cc void KernelObject::FreeAndReassignFD(int fd, const ScopedKernelHandle& handle, fd 225 native_client_sdk/src/libraries/nacl_io/kernel_object.cc FreeFD(fd); fd 230 native_client_sdk/src/libraries/nacl_io/kernel_object.cc if (fd >= (int)handle_map_.size()) fd 231 native_client_sdk/src/libraries/nacl_io/kernel_object.cc handle_map_.resize(fd + 1); fd 234 native_client_sdk/src/libraries/nacl_io/kernel_object.cc handle_map_[fd] = Descriptor_t(handle, path); fd 238 native_client_sdk/src/libraries/nacl_io/kernel_object.cc void KernelObject::FreeFD(int fd) { fd 241 native_client_sdk/src/libraries/nacl_io/kernel_object.cc handle_map_[fd].handle.reset(NULL); fd 242 native_client_sdk/src/libraries/nacl_io/kernel_object.cc free_fds_.push_back(fd); fd 70 native_client_sdk/src/libraries/nacl_io/kernel_object.h Error GetFDFlags(int fd, int* out_flags); fd 72 native_client_sdk/src/libraries/nacl_io/kernel_object.h Error SetFDFlags(int fd, int flags); fd 76 native_client_sdk/src/libraries/nacl_io/kernel_object.h Error AcquireHandle(int fd, ScopedKernelHandle* out_handle); fd 77 native_client_sdk/src/libraries/nacl_io/kernel_object.h Error AcquireHandleAndPath(int fd, ScopedKernelHandle *out_handle, fd 87 native_client_sdk/src/libraries/nacl_io/kernel_object.h void FreeAndReassignFD(int fd, const ScopedKernelHandle& handle, fd 89 native_client_sdk/src/libraries/nacl_io/kernel_object.h void FreeFD(int fd); fd 95 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int fd; fd 96 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc fd = open("/dev/stdin", O_RDONLY); fd 97 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc assert(fd == 0); fd 98 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (fd < 0) fd 101 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc fd = open("/dev/stdout", O_WRONLY); fd 102 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc assert(fd == 1); fd 103 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (fd < 0) fd 106 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc fd = open("/dev/stderr", O_WRONLY); fd 107 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc assert(fd == 2); fd 108 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (fd < 0) fd 231 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::close(int fd) { fd 233 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 240 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc FreeFD(fd); fd 313 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int fd = KernelProxy::open(path, O_RDONLY); fd 314 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (-1 == fd) fd 317 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int result = fchmod(fd, mode); fd 318 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc close(fd); fd 326 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fchown(int fd, uid_t owner, gid_t group) { fd 377 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int fd = open(path, O_RDONLY); fd 378 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (-1 == fd) fd 381 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int result = fstat(fd, buf); fd 382 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc close(fd); fd 453 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::read(int fd, void* buf, size_t nbytes) { fd 455 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 471 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::write(int fd, const void* buf, size_t nbytes) { fd 473 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 489 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fstat(int fd, struct stat* buf) { fd 491 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 506 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::getdents(int fd, void* buf, unsigned int count) { fd 508 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 522 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fchdir(int fd) { fd 525 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandleAndPath(fd, &handle, &path); fd 550 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::ftruncate(int fd, off_t length) { fd 552 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 567 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fsync(int fd) { fd 569 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 584 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fdatasync(int fd) { fd 589 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::isatty(int fd) { fd 591 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 606 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::ioctl(int fd, int request, va_list args) { fd 608 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 623 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc off_t KernelProxy::lseek(int fd, off_t offset, int whence) { fd 625 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 661 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int fd = KernelProxy::open(path, O_WRONLY); fd 662 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (-1 == fd) fd 665 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int result = ftruncate(fd, len); fd 666 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc close(fd); fd 730 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fchmod(int fd, int mode) { fd 732 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 741 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::fcntl(int fd, int request, va_list args) { fd 750 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = GetFDFlags(fd, &rtn); fd 759 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = SetFDFlags(fd, flags); fd 769 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc error = AcquireHandle(fd, &handle); fd 828 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int fd, fd 832 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc assert(fd != -1); fd 835 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 886 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::tcflush(int fd, int queue_selector) { fd 888 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 903 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::tcgetattr(int fd, struct termios* termios_p) { fd 905 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 920 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::tcsetattr(int fd, int optional_actions, fd 923 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 1044 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc for (int fd = 0; fd < nfds; fd++) { fd 1046 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (FD_ISSET(fd, readfds)) fd 1049 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (FD_ISSET(fd, writefds)) fd 1052 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (FD_ISSET(fd, exceptfds)) fd 1057 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc info.fd = fd; fd 1091 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc FD_SET(info->fd, readfds); fd 1095 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc FD_SET(info->fd, writefds); fd 1099 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc FD_SET(info->fd, exceptfds); fd 1125 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error err = AcquireHandle(fd_info->fd, &handle); fd 1199 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::accept(int fd, struct sockaddr* addr, socklen_t* len) { fd 1206 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 1241 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::bind(int fd, const struct sockaddr* addr, socklen_t len) { fd 1248 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1260 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::connect(int fd, const struct sockaddr* addr, socklen_t len) { fd 1267 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 1296 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::getpeername(int fd, struct sockaddr* addr, socklen_t* len) { fd 1303 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1315 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::getsockname(int fd, struct sockaddr* addr, socklen_t* len) { fd 1322 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1334 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::getsockopt(int fd, fd 1345 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1357 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::listen(int fd, int backlog) { fd 1359 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1371 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::recv(int fd, fd 1381 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 1397 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::recvfrom(int fd, fd 1405 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc return recv(fd, buf, len, flags); fd 1414 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 1430 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::recvmsg(int fd, struct msghdr* msg, int flags) { fd 1437 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1444 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::send(int fd, const void* buf, size_t len, int flags) { fd 1451 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 1467 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::sendto(int fd, fd 1475 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc return send(fd, buf, len, flags); fd 1484 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, &handle); fd 1500 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ssize_t KernelProxy::sendmsg(int fd, const struct msghdr* msg, int flags) { fd 1507 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1514 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::setsockopt(int fd, fd 1525 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1537 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::shutdown(int fd, int how) { fd 1539 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc if (AcquireSocketHandle(fd, &handle) == -1) fd 1635 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc int KernelProxy::AcquireSocketHandle(int fd, ScopedKernelHandle* handle) { fd 1636 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc Error error = AcquireHandle(fd, handle); fd 69 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int close(int fd); fd 70 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int dup(int fd); fd 71 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int dup2(int fd, int newfd); fd 88 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fchown(int fd, uid_t owner, gid_t group); fd 106 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t read(int fd, void *buf, size_t nbyte); fd 107 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t write(int fd, const void *buf, size_t nbyte); fd 109 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fchmod(int fd, int prot); fd 110 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fcntl(int fd, int request, va_list args); fd 111 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fstat(int fd, struct stat *buf); fd 112 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int getdents(int fd, void *buf, unsigned int count); fd 113 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fchdir(int fd); fd 114 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int ftruncate(int fd, off_t length); fd 115 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fsync(int fd); fd 116 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int fdatasync(int fd); fd 117 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int isatty(int fd); fd 118 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int ioctl(int fd, int request, va_list args); fd 122 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual off_t lseek(int fd, off_t offset, int whence); fd 145 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h int fd, fd 148 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int tcflush(int fd, int queue_selector); fd 149 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int tcgetattr(int fd, struct termios* termios_p); fd 150 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int tcsetattr(int fd, int optional_actions, fd 164 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int accept(int fd, struct sockaddr* addr, socklen_t* len); fd 165 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int bind(int fd, const struct sockaddr* addr, socklen_t len); fd 166 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int connect(int fd, const struct sockaddr* addr, socklen_t len); fd 172 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int getpeername(int fd, struct sockaddr* addr, socklen_t* len); fd 173 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int getsockname(int fd, struct sockaddr* addr, socklen_t* len); fd 174 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int getsockopt(int fd, fd 179 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int listen(int fd, int backlog); fd 180 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t recv(int fd, fd 184 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t recvfrom(int fd, fd 190 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t recvmsg(int fd, struct msghdr* msg, int flags); fd 191 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t send(int fd, const void* buf, size_t len, int flags); fd 192 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t sendto(int fd, fd 198 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual ssize_t sendmsg(int fd, const struct msghdr* msg, int flags); fd 199 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int setsockopt(int fd, fd 204 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int shutdown(int fd, int how); fd 223 native_client_sdk/src/libraries/nacl_io/kernel_proxy.h virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); fd 50 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int NAME(close)(int fd); fd 53 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int fchown(int fd, uid_t owner, gid_t group) NOTHROW; fd 55 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat32(int fd, struct _stat32* buf); fd 56 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat64(int fd, struct _stat64* buf); fd 57 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat32i64(int fd, struct _stat32i64* buf); fd 58 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int _fstat64i32(int fd, struct _stat64i32* buf); fd 61 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h extern int fstat(int fd, struct stat* buf) NOTHROW; fd 63 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int fsync(int fd); fd 64 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int ftruncate(int fd, off_t length) NOTHROW; fd 68 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int getdents(int fd, void* buf, unsigned int count) NOTHROW; fd 71 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int getdents(unsigned int fd, struct dirent* buf, unsigned int count) NOTHROW; fd 73 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int NAME(isatty)(int fd) NOTHROW; fd 76 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h off_t NAME(lseek)(int fd, off_t offset, int whence) NOTHROW; fd 82 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h void* mmap(void* addr, size_t length, int prot, int flags, int fd, fd 88 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h read_ssize_t NAME(read)(int fd, void* buf, size_t nbyte); fd 105 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h read_ssize_t NAME(write)(int fd, const void* buf, size_t nbyte); fd 109 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int accept(int fd, struct sockaddr* addr, socklen_t* len); fd 110 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int bind(int fd, const struct sockaddr* addr, socklen_t len); fd 111 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int connect(int fd, const struct sockaddr* addr, socklen_t len); fd 113 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int getpeername(int fd, struct sockaddr* addr, socklen_t* len); fd 114 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int getsockname(int fd, struct sockaddr* addr, socklen_t* len); fd 115 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len); fd 116 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int listen(int fd, int backlog); fd 117 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t recv(int fd, void* buf, size_t len, int flags); fd 118 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t recvfrom(int fd, void* buf, size_t len, int flags, fd 120 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t recvmsg(int fd, struct msghdr* msg, int flags); fd 121 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t send(int fd, const void* buf, size_t len, int flags); fd 122 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t sendto(int fd, const void* buf, size_t len, int flags, fd 124 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h ssize_t sendmsg(int fd, const struct msghdr* msg, int flags); fd 125 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int setsockopt(int fd, int lvl, int optname, const void* optval, fd 127 native_client_sdk/src/libraries/nacl_io/kernel_wrap.h int shutdown(int fd, int how); fd 157 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(close)(int fd) { fd 158 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return (ki_close(fd) < 0) ? errno : 0; fd 161 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(dup)(int fd, int* newfd) NOTHROW { fd 162 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc *newfd = ki_dup(fd); fd 166 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(dup2)(int fd, int newfd) NOTHROW { fd 167 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return (ki_dup2(fd, newfd) < 0) ? errno : 0; fd 174 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(fchdir)(int fd) NOTHROW { fd 175 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return (ki_fchdir(fd)) ? errno : 0; fd 178 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(fchmod)(int fd, mode_t mode) NOTHROW { fd 179 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return (ki_fchmod(fd, mode)) ? errno : 0; fd 182 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(fdatasync)(int fd) NOTHROW { fd 183 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return (ki_fdatasync(fd)) ? errno : 0; fd 186 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(fstat)(int fd, struct nacl_abi_stat *nacl_buf) { fd 189 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int res = ki_fstat(fd, &buf); fd 196 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(fsync)(int fd) NOTHROW { fd 197 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return (ki_fsync(fd)) ? errno : 0; fd 206 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(getdents)(int fd, dirent* nacl_buf, size_t nacl_count, size_t *nread) { fd 215 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc count = ki_getdents(fd, buf, nacl_count); fd 236 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(isatty)(int fd, int* result) { fd 237 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc *result = ki_isatty(fd); fd 257 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(mmap)(void** addr, size_t length, int prot, int flags, int fd, fd 260 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(mmap)(addr, length, prot, flags, fd, offset); fd 262 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc *addr = ki_mmap(*addr, length, prot, flags, fd, offset); fd 278 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(open_resource)(const char* file, int* fd) { fd 279 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc *fd = ki_open_resource(file); fd 280 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return (*fd < 0) ? errno : 0; fd 289 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(read)(int fd, void *buf, size_t count, size_t *nread) { fd 290 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc ssize_t signed_nread = ki_read(fd, buf, count); fd 305 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(seek)(int fd, off64_t offset, int whence, int64_t* new_offset) { fd 306 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc *new_offset = ki_lseek(fd, offset, whence); fd 330 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) { fd 331 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc ssize_t signed_nwrote = ki_write(fd, buf, count); fd 350 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_close(int fd) { fd 352 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(close)(fd); fd 359 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_fchdir(int fd) { fd 361 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(fchdir)(fd); fd 364 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_fchmod(int fd, mode_t mode) { fd 366 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(fchmod)(fd, mode); fd 369 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_fdatasync(int fd) { fd 371 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(fdatasync)(fd); fd 374 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_fstat(int fd, struct stat* buf) { fd 378 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int err = REAL(fstat)(fd, (struct stat*) &st); fd 388 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_fsync(int fd) { fd 390 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(fsync)(fd); fd 393 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_getdents(int fd, void* buf, size_t count, size_t* nread) { fd 401 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int err = REAL(getdents)(fd, (dirent*)nacl_buf, count, &nacl_nread); fd 423 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_isatty(int fd, int* result) { fd 424 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc *result = isatty(fd); fd 428 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_lseek(int fd, int64_t offset, int whence, int64_t* new_offset) { fd 431 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int ret = REAL(seek)(fd, offset, whence, &nacl_new_offs); fd 456 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, fd 459 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(mmap)(addr, length, prot, flags, fd, offset); fd 472 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_open_resource(const char* file, int* fd) { fd 474 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(open_resource)(file, fd); fd 477 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_read(int fd, void *buf, size_t count, size_t *nread) { fd 479 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(read)(fd, buf, count, nread); fd 497 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) { fd 499 native_client_sdk/src/libraries/nacl_io/kernel_wrap_bionic.cc return REAL(write)(fd, buf, count, nwrote); fd 18 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_close(int fd) { fd 22 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_fstat(int fd, struct stat *buf) { fd 26 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t *nread) { fd 30 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset) { fd 38 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, fd 51 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_open_resource(const char* file, int* fd) { fd 55 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_read(int fd, void *buf, size_t count, size_t *nread) { fd 64 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) { fd 65 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc int rtn = write(fd, buf, count); fd 154 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(close)(int fd) { fd 155 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return (ki_close(fd) < 0) ? errno : 0; fd 158 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(dup)(int fd, int* newfd) NOTHROW { fd 159 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc *newfd = ki_dup(fd); fd 163 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(dup2)(int fd, int newfd) NOTHROW { fd 164 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return (ki_dup2(fd, newfd) < 0) ? errno : 0; fd 171 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(fstat)(int fd, struct nacl_abi_stat *nacl_buf) { fd 174 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int res = ki_fstat(fd, &buf); fd 187 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(getdents)(int fd, dirent* nacl_buf, size_t nacl_count, size_t *nread) { fd 196 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc count = ki_getdents(fd, buf, nacl_count); fd 221 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(mmap)(void** addr, size_t length, int prot, int flags, int fd, fd 224 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(mmap)(addr, length, prot, flags, fd, offset); fd 226 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc *addr = ki_mmap(*addr, length, prot, flags, fd, offset); fd 242 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(open_resource)(const char* file, int* fd) { fd 243 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc *fd = ki_open_resource(file); fd 244 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return (*fd < 0) ? errno : 0; fd 253 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(read)(int fd, void *buf, size_t count, size_t *nread) { fd 254 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc ssize_t signed_nread = ki_read(fd, buf, count); fd 263 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(seek)(int fd, off_t offset, int whence, off_t* new_offset) { fd 264 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc *new_offset = ki_lseek(fd, offset, whence); fd 284 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) { fd 285 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc ssize_t signed_nwrote = ki_write(fd, buf, count); fd 304 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_close(int fd) { fd 306 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(close)(fd); fd 314 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_fstat(int fd, struct stat* buf) { fd 317 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int err = REAL(fstat)(fd, &st); fd 327 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_getdents(int fd, void* buf, size_t count, size_t* nread) { fd 335 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int err = REAL(getdents)(fd, (dirent*)nacl_buf, count, &nacl_nread); fd 357 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset) { fd 359 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(seek)(fd, offset, whence, new_offset); fd 367 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, fd 370 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(mmap)(addr, length, prot, flags, fd, offset); fd 383 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_open_resource(const char* file, int* fd) { fd 385 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(open_resource)(file, fd); fd 388 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_read(int fd, void *buf, size_t count, size_t *nread) { fd 390 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(read)(fd, buf, count, nread); fd 398 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc int _real_write(int fd, const void *buf, size_t count, size_t *nwrote) { fd 400 native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc return REAL(write)(fd, buf, count, nwrote); fd 95 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(close)(int fd) { fd 96 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_close(fd) < 0) ? errno : 0; fd 99 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(dup)(int fd, int* newfd) { fd 100 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc *newfd = ki_dup(fd); fd 104 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(dup2)(int fd, int newfd) { fd 105 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc newfd = ki_dup2(fd, newfd); fd 113 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(read)(int fd, void* buf, size_t count, size_t* nread) { fd 114 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc ssize_t signed_nread = ki_read(fd, buf, count); fd 119 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) { fd 120 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc ssize_t signed_nwrote = ki_write(fd, buf, count); fd 125 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(seek)(int fd, off_t offset, int whence, off_t* new_offset) { fd 126 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc *new_offset = ki_lseek(fd, offset, whence); fd 130 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(fstat)(int fd, struct stat* buf) { fd 131 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_fstat(fd, buf) < 0) ? errno : 0; fd 134 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(getdents)(int fd, dirent* buf, size_t count, size_t* nread) { fd 135 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int rtn = ki_getdents(fd, buf, count); fd 142 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(fchdir)(int fd) { fd 143 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_fchdir(fd) < 0) ? errno : 0; fd 146 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(fchmod)(int fd, mode_t mode) { fd 147 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_fchmod(fd, mode) < 0) ? errno : 0; fd 150 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(fsync)(int fd) { fd 151 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_fsync(fd) < 0) ? errno : 0; fd 154 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(fdatasync)(int fd) { fd 155 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_fdatasync(fd) < 0) ? errno : 0; fd 158 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(ftruncate)(int fd, off_t length) { fd 159 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return (ki_ftruncate(fd, length) < 0) ? errno : 0; fd 162 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(isatty)(int fd, int* result) { fd 163 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc *result = ki_isatty(fd); fd 169 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int WRAP(mmap)(void** addr, size_t length, int prot, int flags, int fd, fd 172 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(mmap)(addr, length, prot, flags, fd, offset); fd 174 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc *addr = ki_mmap(*addr, length, prot, flags, fd, offset); fd 273 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_close(int fd) { fd 275 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(close)(fd); fd 283 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_fstat(int fd, struct stat* buf) { fd 285 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(fstat)(fd, buf); fd 288 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_isatty(int fd, int* result) { fd 290 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(isatty)(fd, result); fd 293 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t* nread) { fd 295 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(getdents)(fd, static_cast<dirent*>(nacl_buf), nacl_count, nread); fd 298 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset) { fd 300 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(seek)(fd, offset, whence, new_offset); fd 307 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, fd 310 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(mmap)(addr, length, prot, flags, fd, offset); fd 323 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_open_resource(const char* file, int* fd) { fd 327 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_read(int fd, void* buf, size_t count, size_t* nread) { fd 329 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(read)(fd, buf, count, nread); fd 336 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc int _real_write(int fd, const void* buf, size_t count, size_t* nwrote) { fd 338 native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc return REAL(write)(fd, buf, count, nwrote); fd 15 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_close(int fd); fd 17 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_fstat(int fd, struct stat *buf); fd 18 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t *nread); fd 19 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_isatty(int fd, int* result); fd 20 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_lseek(int fd, int64_t offset, int whence, int64_t* new_offset); fd 22 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_mmap(void** addr, size_t length, int prot, int flags, int fd, fd 26 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_open_resource(const char* file, int* fd); fd 27 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_read(int fd, void *buf, size_t count, size_t *nread); fd 29 native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h int _real_write(int fd, const void *buf, size_t count, size_t *nwrote); fd 60 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _close(int fd) { fd 61 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_close(fd); fd 64 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _close_nolock(int fd) { fd 65 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_close(fd); fd 76 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat32(int fd, struct _stat32* buf) { fd 78 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int res = ki_fstat(fd, &ki_buf); fd 83 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat64(int fd, struct _stat64* buf) { fd 85 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int res = ki_fstat(fd, &ki_buf); fd 90 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat32i64(int fd, struct _stat32i64* buf) { fd 92 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int res = ki_fstat(fd, &ki_buf); fd 97 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _fstat64i32(int fd, struct _stat64i32* buf) { fd 99 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int res = ki_fstat(fd, &ki_buf); fd 119 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _isatty(int fd) { fd 120 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_isatty(fd); fd 123 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc off_t _lseek(int fd, off_t offset, int whence) { fd 124 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_lseek(fd, offset, whence); fd 155 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _read(int fd, void* buf, size_t nbyte) { fd 159 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_read(fd, buf, nbyte); fd 162 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _read_nolock(int fd, void* buf, size_t nbyte) { fd 166 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_read(fd, buf, nbyte); fd 222 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc int _write(int fd, const void* buf, size_t nbyte) { fd 226 native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc return ki_write(fd, buf, nbyte); fd 31 native_client_sdk/src/libraries/nacl_io/ostermios.h int tcgetattr(int fd,struct termios *termios_p); fd 32 native_client_sdk/src/libraries/nacl_io/ostermios.h int tcsetattr(int fd,int optional_actions,const struct termios *termios_p); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/accept.c int accept(int fd, struct sockaddr* addr, socklen_t* len) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/accept.c return ki_accept(fd, addr, len); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/bind.c int bind(int fd, const struct sockaddr* addr, socklen_t len) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/bind.c return ki_bind(fd, addr, len); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/connect.c int connect(int fd, const struct sockaddr* addr, socklen_t len) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/connect.c return ki_connect(fd, addr, len); fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/fchdir.c int fchdir(int fd) { fd 13 native_client_sdk/src/libraries/nacl_io/syscalls/fchdir.c return ki_fchdir(fd); fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/fchmod.c int fchmod(int fd, mode_t mode) { fd 13 native_client_sdk/src/libraries/nacl_io/syscalls/fchmod.c return ki_fchmod(fd, mode); fd 8 native_client_sdk/src/libraries/nacl_io/syscalls/fchown.c int fchown(int fd, uid_t owner, gid_t group) { fd 9 native_client_sdk/src/libraries/nacl_io/syscalls/fchown.c return ki_fchown(fd, owner, group); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/fcntl.c int fcntl(int fd, int cmd, ...) { fd 13 native_client_sdk/src/libraries/nacl_io/syscalls/fcntl.c int rtn = ki_fcntl(fd, cmd, ap); fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/fdatasync.c int fdatasync(int fd) { fd 13 native_client_sdk/src/libraries/nacl_io/syscalls/fdatasync.c return ki_fdatasync(fd); fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/fsync.c int fsync(int fd) { fd 13 native_client_sdk/src/libraries/nacl_io/syscalls/fsync.c return ki_fsync(fd); fd 8 native_client_sdk/src/libraries/nacl_io/syscalls/ftruncate.c int ftruncate(int fd, off_t length) { fd 9 native_client_sdk/src/libraries/nacl_io/syscalls/ftruncate.c return ki_ftruncate(fd, length); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/getpeername.c int getpeername(int fd, struct sockaddr* addr, socklen_t* len) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/getpeername.c return ki_getpeername(fd, addr, len); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/getsockname.c int getsockname(int fd, struct sockaddr* addr, socklen_t* len) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/getsockname.c return ki_getsockname(fd, addr, len); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/getsockopt.c int getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/getsockopt.c return ki_getsockopt(fd, lvl, optname, optval, len); fd 16 native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c int ioctl(int fd, REQ_TYPE request, ...) { fd 19 native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c int rtn = ki_ioctl(fd, request, ap); fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/isatty.c int isatty(int fd) { fd 13 native_client_sdk/src/libraries/nacl_io/syscalls/isatty.c return ki_isatty(fd); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/listen.c int listen(int fd, int backlog) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/listen.c return ki_listen(fd, backlog); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/recv.c ssize_t recv(int fd, void* buf, size_t len, int flags) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/recv.c return ki_recv(fd, buf, len, flags); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/recvfrom.c ssize_t recvfrom(int fd, void* buf, size_t len, int flags, fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/recvfrom.c return ki_recvfrom(fd, buf, len, flags, addr, addrlen); fd 8 native_client_sdk/src/libraries/nacl_io/syscalls/recvmsg.c ssize_t recvmsg(int fd, struct msghdr* msg, int flags) { fd 9 native_client_sdk/src/libraries/nacl_io/syscalls/recvmsg.c return ki_recvmsg(fd, msg, flags); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/send.c ssize_t send(int fd, const void* buf, size_t len, int flags) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/send.c return ki_send(fd, buf, len, flags); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/sendmsg.c ssize_t sendmsg(int fd, const struct msghdr* msg, int flags) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/sendmsg.c return ki_sendmsg(fd, msg, flags); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/sendto.c ssize_t sendto(int fd, const void* buf, size_t len, int flags, fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/sendto.c return ki_sendto(fd, buf, len, flags, addr, addrlen); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/setsockopt.c int setsockopt(int fd, int lvl, int optname, const void* optval, fd 12 native_client_sdk/src/libraries/nacl_io/syscalls/setsockopt.c return ki_setsockopt(fd, lvl, optname, optval, len); fd 10 native_client_sdk/src/libraries/nacl_io/syscalls/shutdown.c int shutdown(int fd, int how) { fd 11 native_client_sdk/src/libraries/nacl_io/syscalls/shutdown.c return ki_shutdown(fd, how); fd 18 native_client_sdk/src/libraries/nacl_io/syscalls/tcdrain.c int tcdrain(int fd) { fd 17 native_client_sdk/src/libraries/nacl_io/syscalls/tcflow.c int tcflow(int fd, int action) { fd 16 native_client_sdk/src/libraries/nacl_io/syscalls/tcflush.c int tcflush(int fd, int queue_selector) { fd 17 native_client_sdk/src/libraries/nacl_io/syscalls/tcflush.c return ki_tcflush(fd, queue_selector); fd 17 native_client_sdk/src/libraries/nacl_io/syscalls/tcgetattr.c int tcgetattr(int fd, struct termios* termios_p) { fd 18 native_client_sdk/src/libraries/nacl_io/syscalls/tcgetattr.c return ki_tcgetattr(fd, termios_p); fd 19 native_client_sdk/src/libraries/nacl_io/syscalls/tcsendbreak.c int tcsendbreak(int fd, int duration) { fd 16 native_client_sdk/src/libraries/nacl_io/syscalls/tcsetattr.c int tcsetattr(int fd, int optional_actions, const struct termios* termios_p) { fd 17 native_client_sdk/src/libraries/nacl_io/syscalls/tcsetattr.c return ki_tcsetattr(fd, optional_actions, termios_p); fd 47 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc static int ki_fcntl_wrapper(int fd, int request, ...) { fd 50 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc int rtn = ki_fcntl(fd, request, ap); fd 74 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc int Bind(int fd, uint32_t ip, uint16_t port) { fd 79 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc int err = ki_bind(fd, (sockaddr*)&addr, addrlen); fd 680 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc pollfd.fd = server_sock; fd 695 native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc pollfd.fd = server_sock; fd 230 native_client_sdk/src/tests/nacl_io_test/event_test.cc pollfds[index].fd = fds[index]; fd 340 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc int fd = ki_open("/hello", O_WRONLY | O_CREAT); fd 341 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ASSERT_GT(fd, -1); fd 343 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ki_write(fd, hello_world, sizeof(hello_world))); fd 344 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc EXPECT_EQ(0, ki_close(fd)); fd 347 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc fd = ki_open("/hello", O_RDONLY); fd 348 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ASSERT_GT(fd, -1); fd 352 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc ASSERT_EQ(sizeof(buffer), ki_read(fd, buffer, sizeof(buffer))); fd 354 native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc EXPECT_EQ(0, ki_close(fd)); fd 168 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc static int ki_ioctl_wrapper(int fd, int request, ...) { fd 171 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc int rtn = ki_ioctl(fd, request, ap); fd 176 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc static int JSPipeWrite(int fd, const char* string) { fd 180 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc return ki_ioctl_wrapper(fd, TIOCNACLINPUT, &input); fd 187 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc static int IsReadable(int fd) { fd 193 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc FD_SET(fd, &readfds); fd 194 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc FD_SET(fd, &errorfds); fd 195 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc int rtn = ki_select(fd + 1, &readfds, NULL, &errorfds, &timeout); fd 200 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc if (FD_ISSET(fd, &errorfds)) fd 202 native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc if (!FD_ISSET(fd, &readfds)) fd 73 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc static int ki_fcntl_wrapper(int fd, int request, ...) { fd 76 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int rtn = ki_fcntl(fd, request, ap); fd 88 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/test", O_RDWR | O_CREAT); fd 89 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_NE(-1, fd); fd 92 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(0, ki_fcntl_wrapper(fd, F_GETFD)); fd 96 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(0, ki_fcntl_wrapper(fd, F_SETFD, flags)) fd 98 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(FD_CLOEXEC, ki_fcntl_wrapper(fd, F_GETFD)); fd 102 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(-1, ki_fcntl_wrapper(fd, F_SETFD, flags)); fd 119 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open(filename, O_WRONLY | O_CREAT); fd 120 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_GT(fd, -1); fd 122 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(buffer_size, ki_write(fd, garbage, buffer_size)); fd 123 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ki_close(fd); fd 451 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/foo", O_CREAT | O_RDWR); fd 452 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_GT(fd, -1); fd 453 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(9, ki_write(fd, "Some text", 9)); fd 455 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(9, ki_lseek(fd, 0, SEEK_CUR)); fd 456 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(9, ki_lseek(fd, 0, SEEK_END)); fd 457 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(-1, ki_lseek(fd, -1, SEEK_SET)); fd 461 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(13, ki_lseek(fd, 13, SEEK_SET)); fd 464 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(9, ki_lseek(fd, -4, SEEK_END)); fd 465 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(9, ki_lseek(fd, 0, SEEK_CUR)); fd 466 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(4, ki_read(fd, &buffer[0], 4)); fd 471 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/foo", O_CREAT | O_RDWR); fd 472 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_GT(fd, -1); fd 474 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(9, ki_write(fd, "Some text", 9)); fd 476 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd2 = ki_dup(fd); fd 479 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(0, ki_close(fd)); fd 484 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/foo", O_CREAT | O_RDWR); fd 485 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_GT(fd, -1); fd 487 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int dup_fd = ki_dup(fd); fd 490 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(9, ki_write(fd, "Some text", 9)); fd 491 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(9, ki_lseek(fd, 0, SEEK_CUR)); fd 495 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(dup2_fd, ki_dup2(fd, dup2_fd)); fd 500 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(fd, ki_dup2(new_fd, fd)); fd 511 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_EQ(dup_fd, ki_dup2(fd, dup_fd)); fd 516 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/foo", O_CREAT | O_RDWR); fd 517 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_GT(fd, -1); fd 676 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/file", O_RDWR | O_CREAT); fd 677 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ASSERT_NE(-1, fd); fd 679 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc void* addr1 = ki_mmap(NULL, 0x800, PROT_READ, MAP_PRIVATE, fd, 0); fd 683 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc void* addr2 = ki_mmap(NULL, 0x800, PROT_READ, MAP_PRIVATE, fd, 0); fd 687 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc void* addr3 = ki_mmap(NULL, 0x800, PROT_READ, MAP_PRIVATE, fd, 0); fd 691 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ki_close(fd); fd 767 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/dummy", O_WRONLY); fd 768 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_NE(0, fd); fd 771 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(-1, ki_write(fd, &buf[0], 20)); fd 789 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc int fd = ki_open("/dummy", O_RDONLY); fd 790 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_NE(0, fd); fd 793 native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc EXPECT_EQ(-1, ki_read(fd, &buf[0], 20)); fd 25 native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc int fchdir(int fd); fd 127 native_client_sdk/src/tests/nacl_io_test/tty_test.cc static int ki_ioctl_wrapper(int fd, int request, ...) { fd 130 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int rtn = ki_ioctl(fd, request, ap); fd 135 native_client_sdk/src/tests/nacl_io_test/tty_test.cc static int TtyWrite(int fd, const char* string) { fd 139 native_client_sdk/src/tests/nacl_io_test/tty_test.cc return ki_ioctl_wrapper(fd, TIOCNACLINPUT, &input); fd 146 native_client_sdk/src/tests/nacl_io_test/tty_test.cc static int IsReadable(int fd) { fd 152 native_client_sdk/src/tests/nacl_io_test/tty_test.cc FD_SET(fd, &readfds); fd 153 native_client_sdk/src/tests/nacl_io_test/tty_test.cc FD_SET(fd, &errorfds); fd 154 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int rtn = ki_select(fd + 1, &readfds, NULL, &errorfds, &timeout); fd 159 native_client_sdk/src/tests/nacl_io_test/tty_test.cc if (FD_ISSET(fd, &errorfds)) fd 161 native_client_sdk/src/tests/nacl_io_test/tty_test.cc if (!FD_ISSET(fd, &readfds)) fd 328 native_client_sdk/src/tests/nacl_io_test/tty_test.cc int fd = ki_open("/dev/tty", O_RDONLY); fd 329 native_client_sdk/src/tests/nacl_io_test/tty_test.cc TtyWrite(fd, "test\n"); fd 350 net/base/address_tracker_linux.cc void AddressTrackerLinux::OnFileCanReadWithoutBlocking(int fd) { fd 351 net/base/address_tracker_linux.cc DCHECK_EQ(netlink_fd_, fd); fd 83 net/base/address_tracker_linux.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 1393 net/base/net_util.cc int SetNonBlocking(int fd) { fd 1396 net/base/net_util.cc return ioctlsocket(fd, FIONBIO, &no_block); fd 1398 net/base/net_util.cc int flags = fcntl(fd, F_GETFL, 0); fd 1401 net/base/net_util.cc return fcntl(fd, F_SETFL, flags | O_NONBLOCK); fd 354 net/base/net_util.h NET_EXPORT int SetNonBlocking(int fd); fd 194 net/base/nss_memio.c static PRStatus PR_CALLBACK memio_Close(PRFileDesc *fd) fd 196 net/base/nss_memio.c struct PRFilePrivate *secret = fd->secret; fd 200 net/base/nss_memio.c fd->dtor(fd); fd 204 net/base/nss_memio.c static PRStatus PR_CALLBACK memio_Shutdown(PRFileDesc *fd, PRIntn how) fd 214 net/base/nss_memio.c static int PR_CALLBACK memio_Recv(PRFileDesc *fd, void *buf, PRInt32 len, fd 226 net/base/nss_memio.c secret = fd->secret; fd 252 net/base/nss_memio.c static int PR_CALLBACK memio_Read(PRFileDesc *fd, void *buf, PRInt32 len) fd 255 net/base/nss_memio.c return memio_Recv(fd, buf, len, 0, PR_INTERVAL_NO_TIMEOUT); fd 258 net/base/nss_memio.c static int PR_CALLBACK memio_Send(PRFileDesc *fd, const void *buf, PRInt32 len, fd 265 net/base/nss_memio.c secret = fd->secret; fd 286 net/base/nss_memio.c static int PR_CALLBACK memio_Write(PRFileDesc *fd, const void *buf, PRInt32 len) fd 289 net/base/nss_memio.c return memio_Send(fd, buf, len, 0, PR_INTERVAL_NO_TIMEOUT); fd 292 net/base/nss_memio.c static PRStatus PR_CALLBACK memio_GetPeerName(PRFileDesc *fd, PRNetAddr *addr) fd 295 net/base/nss_memio.c struct PRFilePrivate *secret = fd->secret; fd 300 net/base/nss_memio.c static PRStatus memio_GetSocketOption(PRFileDesc *fd, PRSocketOptionData *data) fd 376 net/base/nss_memio.c PRFileDesc *fd; fd 382 net/base/nss_memio.c fd = PR_CreateIOLayerStub(memio_identity, &memio_layer_methods); fd 388 net/base/nss_memio.c fd->secret = secret; fd 389 net/base/nss_memio.c return fd; fd 392 net/base/nss_memio.c void memio_SetPeerName(PRFileDesc *fd, const PRNetAddr *peername) fd 394 net/base/nss_memio.c PRFileDesc *memiofd = PR_GetIdentitiesLayer(fd, memio_identity); fd 399 net/base/nss_memio.c memio_Private *memio_GetSecret(PRFileDesc *fd) fd 401 net/base/nss_memio.c PRFileDesc *memiofd = PR_GetIdentitiesLayer(fd, memio_identity); fd 43 net/base/nss_memio.h void memio_SetPeerName(PRFileDesc *fd, const PRNetAddr *peername); fd 51 net/base/nss_memio.h memio_Private *memio_GetSecret(PRFileDesc *fd); fd 51 net/dns/notify_watcher_mac.cc void NotifyWatcherMac::OnFileCanReadWithoutBlocking(int fd) { fd 34 net/dns/notify_watcher_mac.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 35 net/dns/notify_watcher_mac.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} fd 982 net/proxy/proxy_config_service_linux.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { fd 983 net/proxy/proxy_config_service_linux.cc DCHECK_EQ(fd, inotify_fd_); fd 987 net/proxy/proxy_config_service_linux.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE { fd 283 net/socket/stream_listen_socket.cc void StreamListenSocket::OnFileCanReadWithoutBlocking(int fd) { fd 302 net/socket/stream_listen_socket.cc void StreamListenSocket::OnFileCanWriteWithoutBlocking(int fd) { fd 117 net/socket/stream_listen_socket.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 118 net/socket/stream_listen_socket.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 42 net/socket/tcp_socket_libevent.cc bool SetTCPNoDelay(int fd, bool no_delay) { fd 44 net/socket/tcp_socket_libevent.cc int error = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); fd 49 net/socket/tcp_socket_libevent.cc bool SetTCPKeepAlive(int fd, bool enable, int delay) { fd 51 net/socket/tcp_socket_libevent.cc if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on))) { fd 52 net/socket/tcp_socket_libevent.cc PLOG(ERROR) << "Failed to set SO_KEEPALIVE on fd: " << fd; fd 62 net/socket/tcp_socket_libevent.cc if (setsockopt(fd, SOL_TCP, TCP_KEEPIDLE, &delay, sizeof(delay))) { fd 63 net/socket/tcp_socket_libevent.cc PLOG(ERROR) << "Failed to set TCP_KEEPIDLE on fd: " << fd; fd 67 net/socket/tcp_socket_libevent.cc if (setsockopt(fd, SOL_TCP, TCP_KEEPINTVL, &delay, sizeof(delay))) { fd 68 net/socket/tcp_socket_libevent.cc PLOG(ERROR) << "Failed to set TCP_KEEPINTVL on fd: " << fd; fd 148 net/socket/tcp_socket_libevent.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 149 net/socket/tcp_socket_libevent.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 326 net/socket/unix_domain_socket_posix_unittest.cc poll_fd.fd = sock; fd 193 net/test/openssl_helper.cc const int fd = accept(3, NULL, NULL); fd 196 net/test/openssl_helper.cc BIO* bio = BIO_new_socket(fd, 1 /* take ownership of fd */); fd 63 net/test/spawned_test_server/local_test_server_posix.cc bool ReadData(int fd, ssize_t bytes_max, uint8* buffer, fd 70 net/test/spawned_test_server/local_test_server_posix.cc poll_fds[0].fd = fd; fd 91 net/test/spawned_test_server/local_test_server_posix.cc ssize_t num_bytes = HANDLE_EINTR(read(fd, buffer + bytes_read, fd 280 net/third_party/nss/ssl/dtlscon.c SSL_GETPID(), ss->fd)); fd 290 net/third_party/nss/ssl/dtlscon.c SSL_GETPID(), ss->fd)); fd 301 net/third_party/nss/ssl/dtlscon.c SSL_GETPID(), ss->fd)); fd 963 net/third_party/nss/ssl/dtlscon.c SSL_GETPID(), ss->fd)); fd 108 net/third_party/nss/ssl/preenc.h PEHeader *SSL_PreencryptedStreamToFile(PRFileDesc *fd, PEHeader *, fd 111 net/third_party/nss/ssl/preenc.h PEHeader *SSL_PreencryptedFileToStream(PRFileDesc *fd, PEHeader *, fd 20 net/third_party/nss/ssl/prelib.c PEHeader *SSL_PreencryptedStreamToFile(PRFileDesc *fd, PEHeader *inHeader, fd 27 net/third_party/nss/ssl/prelib.c PEHeader *SSL_PreencryptedFileToStream(PRFileDesc *fd, PEHeader *header, fd 47 net/third_party/nss/ssl/ssl.h SSL_IMPORT PRFileDesc *SSL_ImportFD(PRFileDesc *model, PRFileDesc *fd); fd 53 net/third_party/nss/ssl/ssl.h SSL_IMPORT PRFileDesc *DTLS_ImportFD(PRFileDesc *model, PRFileDesc *fd); fd 191 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_Enable(PRFileDesc *fd, int option, PRBool on); fd 196 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_OptionSet(PRFileDesc *fd, PRInt32 option, PRBool on); fd 197 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_OptionGet(PRFileDesc *fd, PRInt32 option, PRBool *on); fd 200 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_CertDBHandleSet(PRFileDesc *fd, CERTCertDBHandle *dbHandle); fd 214 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, fd 223 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SetNextProtoCallback(PRFileDesc *fd, fd 245 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SetNextProtoNego(PRFileDesc *fd, fd 263 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_GetNextProto(PRFileDesc *fd, fd 283 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_CipherPrefSet(PRFileDesc *fd, PRInt32 cipher, PRBool enabled); fd 284 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_CipherPrefGet(PRFileDesc *fd, PRInt32 cipher, PRBool *enabled); fd 294 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_CipherOrderSet(PRFileDesc *fd, const PRUint16 *ciphers, fd 312 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_GetChannelBinding(PRFileDesc *fd, fd 381 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_VersionRangeGet(PRFileDesc *fd, fd 385 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_VersionRangeSet(PRFileDesc *fd, fd 421 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_ResetHandshake(PRFileDesc *fd, PRBool asServer); fd 427 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_ForceHandshake(PRFileDesc *fd); fd 432 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_ForceHandshakeWithTimeout(PRFileDesc *fd, fd 435 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_RestartHandshakeAfterCertReq(PRFileDesc *fd, fd 451 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SecurityStatus(PRFileDesc *fd, int *on, char **cipher, fd 469 net/third_party/nss/ssl/ssl.h SSL_IMPORT CERTCertificate *SSL_PeerCertificate(PRFileDesc *fd); fd 478 net/third_party/nss/ssl/ssl.h SSL_IMPORT CERTCertList *SSL_PeerCertificateChain(PRFileDesc *fd); fd 496 net/third_party/nss/ssl/ssl.h SSL_IMPORT const SECItemArray * SSL_PeerStapledOCSPResponses(PRFileDesc *fd); fd 513 net/third_party/nss/ssl/ssl.h SSL_IMPORT const SECItem * SSL_PeerSignedCertTimestamps(PRFileDesc *fd); fd 522 net/third_party/nss/ssl/ssl.h SSL_SetStapledOCSPResponses(PRFileDesc *fd, const SECItemArray *responses, fd 556 net/third_party/nss/ssl/ssl.h typedef SECStatus (PR_CALLBACK *SSLAuthCertificate)(void *arg, PRFileDesc *fd, fd 560 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_AuthCertificateHook(PRFileDesc *fd, fd 565 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_AuthCertificate(void *arg, PRFileDesc *fd, fd 576 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, fd 588 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_GetClientAuthDataHook(PRFileDesc *fd, fd 613 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, fd 631 net/third_party/nss/ssl/ssl.h SSL_GetPlatformClientAuthDataHook(PRFileDesc *fd, fd 660 net/third_party/nss/ssl/ssl.h typedef PRInt32 (PR_CALLBACK *SSLSNISocketConfig)(PRFileDesc *fd, fd 678 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SNISocketConfigHook(PRFileDesc *fd, fd 687 net/third_party/nss/ssl/ssl.h SSL_IMPORT PRFileDesc *SSL_ReconfigFD(PRFileDesc *model, PRFileDesc *fd); fd 694 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SetPKCS11PinArg(PRFileDesc *fd, void *a); fd 711 net/third_party/nss/ssl/ssl.h typedef SECStatus (PR_CALLBACK *SSLBadCertHandler)(void *arg, PRFileDesc *fd); fd 712 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_BadCertHook(PRFileDesc *fd, SSLBadCertHandler f, fd 721 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, CERTCertificate *cert, fd 729 net/third_party/nss/ssl/ssl.h SSL_ConfigSecureServerWithCertChain(PRFileDesc *fd, CERTCertificate *cert, fd 804 net/third_party/nss/ssl/ssl.h typedef void (PR_CALLBACK *SSLHandshakeCallback)(PRFileDesc *fd, fd 806 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_HandshakeCallback(PRFileDesc *fd, fd 821 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, void *arg, PRBool *canFalseStart); fd 824 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, SSLCanFalseStartCallback callback, void *arg); fd 831 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_RecommendedCanFalseStart(PRFileDesc *fd, fd 842 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_ReHandshake(PRFileDesc *fd, PRBool flushCache); fd 847 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_ReHandshakeWithTimeout(PRFileDesc *fd, fd 860 net/third_party/nss/ssl/ssl.h SSL_GetRequestedClientCertificateTypes(PRFileDesc *fd); fd 869 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_RedoHandshake(PRFileDesc *fd); fd 875 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SetURL(PRFileDesc *fd, const char *url); fd 881 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SetTrustAnchors(PRFileDesc *fd, CERTCertList *list); fd 887 net/third_party/nss/ssl/ssl.h SSL_IMPORT int SSL_DataPending(PRFileDesc *fd); fd 892 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_InvalidateSession(PRFileDesc *fd); fd 897 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_CacheSession(PRFileDesc *fd); fd 904 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_CacheSessionUnlocked(PRFileDesc *fd); fd 909 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECItem *SSL_GetSessionID(PRFileDesc *fd); fd 925 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SetSockPeerID(PRFileDesc *fd, const char *peerID); fd 960 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_SetSRTPCiphers(PRFileDesc *fd, fd 969 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_GetSRTPCipher(PRFileDesc *fd, fd 1009 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_GetChannelInfo(PRFileDesc *fd, SSLChannelInfo *info, fd 1015 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECItem *SSL_GetNegotiatedHostInfo(PRFileDesc *fd); fd 1023 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_ExportKeyingMaterial(PRFileDesc *fd, fd 1036 net/third_party/nss/ssl/ssl.h SSL_IMPORT CERTCertificate * SSL_LocalCertificate(PRFileDesc *fd); fd 1077 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_HandshakeResumedSession(PRFileDesc *fd, fd 1086 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, fd 1095 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, fd 1104 net/third_party/nss/ssl/ssl.h PRFileDesc *fd, fd 1193 net/third_party/nss/ssl/ssl.h SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, fd 1428 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, suite)); fd 2900 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, ssl3_DecodeContentType(type), fd 2963 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, spaceNeeded)); fd 3286 net/third_party/nss/ssl/ssl3con.c lower = ss->fd->lower; fd 3331 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, level, desc)); fd 3408 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, errCode)); fd 3441 net/third_party/nss/ssl/ssl3con.c SSL_TRC(3, ("%d: SSL3[%d]: handle alert record", SSL_GETPID(), ss->fd)); fd 3452 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, level, desc)); fd 3553 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 3583 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd )); fd 3621 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 3652 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd )); fd 3978 net/third_party/nss/ssl/ssl3con.c SSL_TRC(30,("%d: SSL3[%d]: start handshake hashes", SSL_GETPID(), ss->fd)); fd 4094 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd )); fd 4284 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, ssl3_DecodeHandshakeType(t))); fd 4999 net/third_party/nss/ssl/ssl3con.c ss->fd)); fd 5488 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 6177 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 6234 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 6259 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 6360 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 6726 net/third_party/nss/ssl/ssl3con.c rv = ss->getChannelID(ss->getChannelIDArg, ss->fd, fd 6798 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 7178 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 7280 net/third_party/nss/ssl/ssl3con.c ss->fd, &ca_list, fd 7290 net/third_party/nss/ssl/ssl3con.c ss->fd, &ca_list, fd 7502 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 7517 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 7519 net/third_party/nss/ssl/ssl3con.c rv = (ss->canFalseStartCallback)(ss->fd, fd 7524 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, fd 7528 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, fd 7574 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 7651 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 7737 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 7799 net/third_party/nss/ssl/ssl3con.c ss->fd)); fd 7905 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 8004 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 8193 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, ss->sec.ci.peer.pr_s6_addr32[0], fd 8609 net/third_party/nss/ssl/ssl3con.c ret = (SECStatus)(*ss->sniSocketConfig)(ss->fd, fd 8808 net/third_party/nss/ssl/ssl3con.c SSL_TRC(3, ("%d: SSL3[%d]: handle v2 client_hello", SSL_GETPID(), ss->fd)); fd 8858 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, length, fd 9002 net/third_party/nss/ssl/ssl3con.c ss->fd)); fd 9193 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 9308 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 9374 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 9406 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 9703 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 9830 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 9954 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 10051 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 10225 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 10399 net/third_party/nss/ssl/ssl3con.c rv = (SECStatus)(*ss->authCertificate)(ss->authCertificateArg, ss->fd, fd 10405 net/third_party/nss/ssl/ssl3con.c rv = (*ss->handleBadCert)(ss->badCertArg, ss->fd); fd 10545 net/third_party/nss/ssl/ssl3con.c " with peer's finished message", SSL_GETPID(), ss->fd)); fd 10558 net/third_party/nss/ssl/ssl3con.c " peer's finished message", SSL_GETPID(), ss->fd)); fd 10952 net/third_party/nss/ssl/ssl3con.c SSL_TRC(3, ("%d: SSL3[%d]: send finished handshake", SSL_GETPID(), ss->fd)); fd 11109 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 11370 net/third_party/nss/ssl/ssl3con.c ss->fd, ssl3_DecodeHandshakeType(ss->ssl3.hs.msg_type))); fd 11920 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd)); fd 11944 net/third_party/nss/ssl/ssl3con.c "from irrelevant epoch %d", SSL_GETPID(), ss->fd, epoch)); fd 11956 net/third_party/nss/ssl/ssl3con.c "potentially replayed packet", SSL_GETPID(), ss->fd)); fd 12028 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, MAX_FRAGMENT_LENGTH + 2048)); fd 12152 net/third_party/nss/ssl/ssl3con.c SSL_DBG(("%d: SSL3[%d]: decryption failed", SSL_GETPID(), ss->fd)); fd 12187 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, fd 12286 net/third_party/nss/ssl/ssl3con.c SSL_GETPID(), ss->fd, cText->type)); fd 160 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 659 net/third_party/nss/ssl/ssl3ext.c rv = ss->nextProtoCallback(ss->nextProtoArg, ss->fd, data->data, data->len, fd 1027 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 1419 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 1429 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 1459 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd, PORT_GetError())); fd 1463 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 1481 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 1503 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 1523 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 1731 net/third_party/nss/ssl/ssl3ext.c SSL_GETPID(), ss->fd)); fd 56 net/third_party/nss/ssl/ssl3gthr.c SSL_GETPID(), ss->fd, gs->state, gs->remainder)); fd 64 net/third_party/nss/ssl/ssl3gthr.c SSL_TRC(30, ("%d: SSL3[%d]: EOF", SSL_GETPID(), ss->fd)); fd 68 net/third_party/nss/ssl/ssl3gthr.c SSL_DBG(("%d: SSL3[%d]: recv error %d", SSL_GETPID(), ss->fd, fd 198 net/third_party/nss/ssl/ssl3gthr.c SSL_TRC(30, ("%d: SSL3[%d]: EOF", SSL_GETPID(), ss->fd)); fd 202 net/third_party/nss/ssl/ssl3gthr.c SSL_DBG(("%d: SSL3[%d]: recv error %d", SSL_GETPID(), ss->fd, fd 216 net/third_party/nss/ssl/ssl3gthr.c "too short to contain header", SSL_GETPID(), ss->fd)); fd 231 net/third_party/nss/ssl/ssl3gthr.c "to contain rest of body", SSL_GETPID(), ss->fd)); fd 14 net/third_party/nss/ssl/sslauth.c SSL_PeerCertificate(PRFileDesc *fd) fd 18 net/third_party/nss/ssl/sslauth.c ss = ssl_FindSocket(fd); fd 21 net/third_party/nss/ssl/sslauth.c SSL_GETPID(), fd)); fd 32 net/third_party/nss/ssl/sslauth.c SSL_PeerCertificateChain(PRFileDesc *fd) fd 39 net/third_party/nss/ssl/sslauth.c ss = ssl_FindSocket(fd); fd 42 net/third_party/nss/ssl/sslauth.c SSL_GETPID(), fd)); fd 72 net/third_party/nss/ssl/sslauth.c SSL_LocalCertificate(PRFileDesc *fd) fd 76 net/third_party/nss/ssl/sslauth.c ss = ssl_FindSocket(fd); fd 79 net/third_party/nss/ssl/sslauth.c SSL_GETPID(), fd)); fd 97 net/third_party/nss/ssl/sslauth.c SSL_SecurityStatus(PRFileDesc *fd, int *op, char **cp, int *kp0, int *kp1, fd 104 net/third_party/nss/ssl/sslauth.c ss = ssl_FindSocket(fd); fd 107 net/third_party/nss/ssl/sslauth.c SSL_GETPID(), fd)); fd 220 net/third_party/nss/ssl/sslauth.c SSL_SetClientChannelIDCallback(PRFileDesc *fd, fd 223 net/third_party/nss/ssl/sslauth.c sslSocket *ss = ssl_FindSocket(fd); fd 227 net/third_party/nss/ssl/sslauth.c SSL_GETPID(), fd)); fd 282 net/third_party/nss/ssl/sslauth.c SSL_AuthCertificate(void *arg, PRFileDesc *fd, PRBool checkSig, PRBool isServer) fd 292 net/third_party/nss/ssl/sslauth.c ss = ssl_FindSocket(fd); fd 252 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 473 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, len)); fd 506 net/third_party/nss/ssl/sslcon.c SSL_TRC(3, ("%d: SSL[%d]: sending error %d", SSL_GETPID(), ss->fd, error)); fd 535 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 608 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 669 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 715 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 754 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 859 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, len)); fd 934 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, len)); fd 978 net/third_party/nss/ssl/sslcon.c "saving data", SSL_GETPID(), ss->fd)); fd 982 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, PORT_GetError())); fd 1038 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, len)); fd 1110 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, PORT_GetError())); fd 1232 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, rv)); fd 1240 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->gs.remainder)); fd 1251 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->gs.recordLen)); fd 1428 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, cipherType)); fd 1455 net/third_party/nss/ssl/sslcon.c SSL_TRC(3, ("%d: SSL[%d]: using %s", SSL_GETPID(), ss->fd, fd 1582 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, cipher)); fd 1591 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, cipher)); fd 1599 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, keyBits)); fd 1606 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ckLen)); fd 1613 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, caLen)); fd 1625 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ekLen)); fd 1653 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 1702 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ssl_cipherName[cipher], fd 1890 net/third_party/nss/ssl/sslcon.c SSL_DBG(("%d: SSL[%d]: no cipher overlap", SSL_GETPID(), ss->fd)); fd 1915 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 2045 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, PORT_GetError())); fd 2098 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ssl_cipherName[cipher], fd 2309 net/third_party/nss/ssl/sslcon.c ss->fd, authType)); fd 2316 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 2319 net/third_party/nss/ssl/sslcon.c ret = (*ss->getClientAuthData)(ss->getClientAuthDataArg, ss->fd, fd 2372 net/third_party/nss/ssl/sslcon.c ss->fd, ret)); fd 2465 net/third_party/nss/ssl/sslcon.c ss->fd, PR_TRUE, PR_TRUE); fd 2509 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, data[0])); fd 2516 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 2525 net/third_party/nss/ssl/sslcon.c SSL_DBG(("%d: SSL[%d]: bad connection-id", SSL_GETPID(), ss->fd)); fd 2534 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, fd 2542 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 2548 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->gs.recordLen)); fd 2553 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, fd 2564 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, len)); fd 2576 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 2625 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, rv)); fd 2650 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, data[0])); fd 2655 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, data[0], fd 2708 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->sec.ci.requiredElements, fd 2784 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, sidHit, ss->version, certLen, fd 2789 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, SSL_LIBRARY_VERSION_2, fd 2793 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->version, SSL_LIBRARY_VERSION_2)); fd 2823 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, sidHit, certLen, csLen)); fd 2830 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->sec.ci.peer, ss->sec.ci.port)); fd 2848 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 2853 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, certLen, csLen)); fd 2860 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 2898 net/third_party/nss/ssl/sslcon.c rv = (* ss->authCertificate)(ss->authCertificateArg, ss->fd, fd 2902 net/third_party/nss/ssl/sslcon.c rv = (*ss->handleBadCert)(ss->badCertArg, ss->fd); fd 2906 net/third_party/nss/ssl/sslcon.c "SECWouldBlock", SSL_GETPID(), ss->fd)); fd 2912 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, PORT_GetError())); fd 2919 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, PORT_GetError())); fd 2944 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->sec.ci.requiredElements, fd 3007 net/third_party/nss/ssl/sslcon.c (void) PR_Write(ss->fd->lower, &dummy, 0); fd 3018 net/third_party/nss/ssl/sslcon.c SSL_TRC(3, ("%d: SSL[%d]: sending client-hello", SSL_GETPID(), ss->fd)); fd 3243 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, cipher, keyBits, ckLen, ekLen, caLen)); fd 3248 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->gs.recordLen)); fd 3280 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, fd 3407 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->gs.recordLen, fd 3413 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->version)); fd 3425 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->version, SSL_LIBRARY_VERSION_2)); fd 3456 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->sec.ci.peer.pr_s6_addr32[0], fd 3467 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, ss->sec.ci.peer, fd 3489 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 3552 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd, sendLen)); fd 3613 net/third_party/nss/ssl/sslcon.c SSL_GETPID(), ss->fd)); fd 22 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 31 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 40 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 49 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 58 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 81 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 120 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 133 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 158 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 167 net/third_party/nss/ssl/ssldef.c PRFileDesc *lower = ss->fd->lower; fd 176 net/third_party/nss/ssl/ssldef.c PRFileDesc *fd; fd 180 net/third_party/nss/ssl/ssldef.c fd = ss->fd; fd 186 net/third_party/nss/ssl/ssldef.c PORT_Assert(fd->higher == NULL); fd 187 net/third_party/nss/ssl/ssldef.c if (fd->higher) { fd 191 net/third_party/nss/ssl/ssldef.c ss->fd = NULL; fd 197 net/third_party/nss/ssl/ssldef.c popped = PR_PopIOLayer(fd, PR_TOP_IO_LAYER); fd 203 net/third_party/nss/ssl/ssldef.c rv = fd->methods->close(fd); fd 208 net/third_party/nss/ssl/ssldef.c SSL_GETPID(), fd, rv, PORT_GetError())); fd 82 net/third_party/nss/ssl/sslgathr.c SSL_GETPID(), ss->fd, gs->state, gs->remainder)); fd 90 net/third_party/nss/ssl/sslgathr.c SSL_TRC(30, ("%d: SSL[%d]: EOF", SSL_GETPID(), ss->fd)); fd 95 net/third_party/nss/ssl/sslgathr.c SSL_DBG(("%d: SSL[%d]: recv error %d", SSL_GETPID(), ss->fd, fd 229 net/third_party/nss/ssl/sslgathr.c SSL_GETPID(), ss->fd, gs->count, fd 281 net/third_party/nss/ssl/sslgathr.c SSL_GETPID(), ss->fd, ss->sec.rcvSequence)); fd 1219 net/third_party/nss/ssl/sslimpl.h PRFileDesc * fd; fd 1492 net/third_party/nss/ssl/sslimpl.h extern PRBool ssl_FdIsBlocking(PRFileDesc *fd); fd 1634 net/third_party/nss/ssl/sslimpl.h extern sslSocket *ssl_FindSocket(PRFileDesc *fd); fd 1894 net/third_party/nss/ssl/sslimpl.h extern PRFileDesc *ssl_NewPRSocket(sslSocket *ss, PRFileDesc *fd); fd 1895 net/third_party/nss/ssl/sslimpl.h extern void ssl_FreePRSocket(PRFileDesc *fd); fd 2009 net/third_party/nss/ssl/sslimpl.h SECStatus SSL_DisableExportCipherSuites(PRFileDesc * fd); fd 24 net/third_party/nss/ssl/sslinfo.c SSL_GetChannelInfo(PRFileDesc *fd, SSLChannelInfo *info, PRUintn len) fd 35 net/third_party/nss/ssl/sslinfo.c ss = ssl_FindSocket(fd); fd 38 net/third_party/nss/ssl/sslinfo.c SSL_GETPID(), fd)); fd 267 net/third_party/nss/ssl/sslinfo.c SSL_DisableExportCipherSuites(PRFileDesc * fd) fd 275 net/third_party/nss/ssl/sslinfo.c rv = SSL_CipherPrefSet(fd, pInfo->cipherSuite, PR_FALSE); fd 298 net/third_party/nss/ssl/sslinfo.c SSL_GetNegotiatedHostInfo(PRFileDesc *fd) fd 304 net/third_party/nss/ssl/sslinfo.c ss = ssl_FindSocket(fd); fd 307 net/third_party/nss/ssl/sslinfo.c SSL_GETPID(), fd)); fd 324 net/third_party/nss/ssl/sslinfo.c name = SSL_RevealURL(fd); fd 338 net/third_party/nss/ssl/sslinfo.c SSL_ExportKeyingMaterial(PRFileDesc *fd, fd 349 net/third_party/nss/ssl/sslinfo.c ss = ssl_FindSocket(fd); fd 352 net/third_party/nss/ssl/sslinfo.c SSL_GETPID(), fd)); fd 78 net/third_party/nss/ssl/sslmutex.c setNonBlocking(int fd, int nonBlocking) fd 83 net/third_party/nss/ssl/sslmutex.c flags = fcntl(fd, F_GETFL, 0); fd 90 net/third_party/nss/ssl/sslmutex.c err = fcntl(fd, F_SETFL, flags); fd 17 net/third_party/nss/ssl/sslreveal.c SSL_RevealCert(PRFileDesc * fd) fd 22 net/third_party/nss/ssl/sslreveal.c sslsocket = ssl_FindSocket(fd); fd 36 net/third_party/nss/ssl/sslreveal.c SSL_RevealPinArg(PRFileDesc * fd) fd 41 net/third_party/nss/ssl/sslreveal.c sslsocket = ssl_FindSocket(fd); fd 55 net/third_party/nss/ssl/sslreveal.c SSL_RevealURL(PRFileDesc * fd) fd 60 net/third_party/nss/ssl/sslreveal.c sslsocket = ssl_FindSocket(fd); fd 133 net/third_party/nss/ssl/sslsecur.c SSL_TRC(3, ("%d: SSL[%d]: handshake is completed", SSL_GETPID(), ss->fd)); fd 141 net/third_party/nss/ssl/sslsecur.c (ss->handshakeCallback)(ss->fd, ss->handshakeCallbackData); fd 169 net/third_party/nss/ssl/sslsecur.c ssl_SetTimeout(PRFileDesc *fd, PRIntervalTime timeout) fd 173 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 175 net/third_party/nss/ssl/sslsecur.c SSL_DBG(("%d: SSL[%d]: bad socket in SetTimeout", SSL_GETPID(), fd)); fd 262 net/third_party/nss/ssl/sslsecur.c SSL_ReHandshake(PRFileDesc *fd, PRBool flushCache) fd 267 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 269 net/third_party/nss/ssl/sslsecur.c SSL_DBG(("%d: SSL[%d]: bad socket in RedoHandshake", SSL_GETPID(), fd)); fd 296 net/third_party/nss/ssl/sslsecur.c SSL_IMPORT SECStatus SSL_ReHandshakeWithTimeout(PRFileDesc *fd, fd 300 net/third_party/nss/ssl/sslsecur.c if (SECSuccess != ssl_SetTimeout(fd, timeout)) { fd 303 net/third_party/nss/ssl/sslsecur.c return SSL_ReHandshake(fd, flushCache); fd 307 net/third_party/nss/ssl/sslsecur.c SSL_RedoHandshake(PRFileDesc *fd) fd 309 net/third_party/nss/ssl/sslsecur.c return SSL_ReHandshake(fd, PR_TRUE); fd 316 net/third_party/nss/ssl/sslsecur.c SSL_HandshakeCallback(PRFileDesc *fd, SSLHandshakeCallback cb, fd 321 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 324 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 349 net/third_party/nss/ssl/sslsecur.c SSL_SetCanFalseStartCallback(PRFileDesc *fd, SSLCanFalseStartCallback cb, fd 354 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 357 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 379 net/third_party/nss/ssl/sslsecur.c SSL_RecommendedCanFalseStart(PRFileDesc *fd, PRBool *canFalseStart) fd 384 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 387 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 421 net/third_party/nss/ssl/sslsecur.c SSL_ForceHandshake(PRFileDesc *fd) fd 426 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 429 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 480 net/third_party/nss/ssl/sslsecur.c SSL_IMPORT SECStatus SSL_ForceHandshakeWithTimeout(PRFileDesc *fd, fd 483 net/third_party/nss/ssl/sslsecur.c if (SECSuccess != ssl_SetTimeout(fd, timeout)) { fd 486 net/third_party/nss/ssl/sslsecur.c return SSL_ForceHandshake(fd); fd 547 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, len, ss->pendingBuf.len)); fd 565 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, ss->pendingBuf.len)); fd 622 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd)); fd 654 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, available)); fd 667 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, amount, available)); fd 816 net/third_party/nss/ssl/sslsecur.c SSL_ConfigSecureServer(PRFileDesc *fd, CERTCertificate *cert, fd 820 net/third_party/nss/ssl/sslsecur.c return SSL_ConfigSecureServerWithCertChain(fd, cert, NULL, key, kea); fd 824 net/third_party/nss/ssl/sslsecur.c SSL_ConfigSecureServerWithCertChain(PRFileDesc *fd, CERTCertificate *cert, fd 833 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 1070 net/third_party/nss/ssl/sslsecur.c PRFileDesc *osfd = ss->fd->lower; fd 1088 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, err)); fd 1095 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, rv)); fd 1150 net/third_party/nss/ssl/sslsecur.c PRFileDesc *osfd = ss->fd->lower; fd 1225 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, rv, PORT_GetError())); fd 1242 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, len)); fd 1315 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd)); fd 1329 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, rv, PORT_GetError())); fd 1332 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), ss->fd, rv)); fd 1344 net/third_party/nss/ssl/sslsecur.c SSL_BadCertHook(PRFileDesc *fd, SSLBadCertHandler f, void *arg) fd 1348 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 1351 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 1367 net/third_party/nss/ssl/sslsecur.c SSL_SetURL(PRFileDesc *fd, const char *url) fd 1369 net/third_party/nss/ssl/sslsecur.c sslSocket * ss = ssl_FindSocket(fd); fd 1374 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 1399 net/third_party/nss/ssl/sslsecur.c SSL_SetTrustAnchors(PRFileDesc *fd, CERTCertList *certList) fd 1401 net/third_party/nss/ssl/sslsecur.c sslSocket * ss = ssl_FindSocket(fd); fd 1410 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 1435 net/third_party/nss/ssl/sslsecur.c SSL_DataPending(PRFileDesc *fd) fd 1440 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 1452 net/third_party/nss/ssl/sslsecur.c SSL_InvalidateSession(PRFileDesc *fd) fd 1454 net/third_party/nss/ssl/sslsecur.c sslSocket * ss = ssl_FindSocket(fd); fd 1484 net/third_party/nss/ssl/sslsecur.c SSL_CacheSession(PRFileDesc *fd) fd 1486 net/third_party/nss/ssl/sslsecur.c sslSocket * ss = ssl_FindSocket(fd); fd 1503 net/third_party/nss/ssl/sslsecur.c SSL_CacheSessionUnlocked(PRFileDesc *fd) fd 1505 net/third_party/nss/ssl/sslsecur.c sslSocket * ss = ssl_FindSocket(fd); fd 1516 net/third_party/nss/ssl/sslsecur.c SSL_GetSessionID(PRFileDesc *fd) fd 1521 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 1549 net/third_party/nss/ssl/sslsecur.c SSL_CertDBHandleSet(PRFileDesc *fd, CERTCertDBHandle *dbHandle) fd 1553 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 1591 net/third_party/nss/ssl/sslsecur.c SSL_RestartHandshakeAfterCertReq(PRFileDesc * fd, fd 1596 net/third_party/nss/ssl/sslsecur.c sslSocket * ss = ssl_FindSocket(fd); fd 1601 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 1631 net/third_party/nss/ssl/sslsecur.c SSL_RestartHandshakeAfterChannelIDReq(PRFileDesc * fd, fd 1635 net/third_party/nss/ssl/sslsecur.c sslSocket * ss = ssl_FindSocket(fd); fd 1641 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 1678 net/third_party/nss/ssl/sslsecur.c SSL_AuthCertificateComplete(PRFileDesc *fd, PRErrorCode error) fd 1681 net/third_party/nss/ssl/sslsecur.c sslSocket *ss = ssl_FindSocket(fd); fd 1685 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 1708 net/third_party/nss/ssl/sslsecur.c SSL_SNISocketConfigHook(PRFileDesc *fd, SSLSNISocketConfig func, fd 1713 net/third_party/nss/ssl/sslsecur.c ss = ssl_FindSocket(fd); fd 1716 net/third_party/nss/ssl/sslsecur.c SSL_GETPID(), fd)); fd 151 net/third_party/nss/ssl/sslsock.c ssl_GetPrivate(PRFileDesc *fd) fd 155 net/third_party/nss/ssl/sslsock.c PORT_Assert(fd != NULL); fd 156 net/third_party/nss/ssl/sslsock.c PORT_Assert(fd->methods->file_type == PR_DESC_LAYERED); fd 157 net/third_party/nss/ssl/sslsock.c PORT_Assert(fd->identity == ssl_layer_id); fd 159 net/third_party/nss/ssl/sslsock.c if (fd->methods->file_type != PR_DESC_LAYERED || fd 160 net/third_party/nss/ssl/sslsock.c fd->identity != ssl_layer_id) { fd 165 net/third_party/nss/ssl/sslsock.c ss = (sslSocket *)fd->secret; fd 166 net/third_party/nss/ssl/sslsock.c ss->fd = fd; fd 176 net/third_party/nss/ssl/sslsock.c ssl_FindSocket(PRFileDesc *fd) fd 181 net/third_party/nss/ssl/sslsock.c PORT_Assert(fd != NULL); fd 184 net/third_party/nss/ssl/sslsock.c layer = PR_GetIdentitiesLayer(fd, ssl_layer_id); fd 191 net/third_party/nss/ssl/sslsock.c ss->fd = layer; fd 439 net/third_party/nss/ssl/sslsock.c PRFileDesc * osfd = ss->fd->lower; fd 472 net/third_party/nss/ssl/sslsock.c SSL_Enable(PRFileDesc *fd, int which, PRBool on) fd 474 net/third_party/nss/ssl/sslsock.c return SSL_OptionSet(fd, which, on); fd 570 net/third_party/nss/ssl/sslsock.c SSL_OptionSet(PRFileDesc *fd, PRInt32 which, PRBool on) fd 572 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 577 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in Enable", SSL_GETPID(), fd)); fd 713 net/third_party/nss/ssl/sslsock.c SSL_DisableExportCipherSuites(fd); fd 819 net/third_party/nss/ssl/sslsock.c SSL_OptionGet(PRFileDesc *fd, PRInt32 which, PRBool *pOn) fd 821 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 830 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in Enable", SSL_GETPID(), fd)); fd 1271 net/third_party/nss/ssl/sslsock.c SSL_CipherPrefSet(PRFileDesc *fd, PRInt32 which, PRBool enabled) fd 1274 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1277 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in CipherPrefSet", SSL_GETPID(), fd)); fd 1295 net/third_party/nss/ssl/sslsock.c SSL_CipherOrderSet(PRFileDesc *fd, const PRUint16 *ciphers, unsigned int len) fd 1297 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1301 net/third_party/nss/ssl/sslsock.c fd)); fd 1308 net/third_party/nss/ssl/sslsock.c SSL_CipherPrefGet(PRFileDesc *fd, PRInt32 which, PRBool *enabled) fd 1311 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1318 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in CipherPrefGet", SSL_GETPID(), fd)); fd 1360 net/third_party/nss/ssl/sslsock.c SSL_GetChannelBinding(PRFileDesc *fd, fd 1365 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1369 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1384 net/third_party/nss/ssl/sslsock.c ssl_ImportFD(PRFileDesc *model, PRFileDesc *fd, SSLProtocolVariant variant) fd 1410 net/third_party/nss/ssl/sslsock.c rv = ssl_PushIOLayer(ns, fd, PR_TOP_IO_LAYER); fd 1416 net/third_party/nss/ssl/sslsock.c ns = ssl_FindSocket(fd); fd 1420 net/third_party/nss/ssl/sslsock.c return fd; fd 1424 net/third_party/nss/ssl/sslsock.c SSL_ImportFD(PRFileDesc *model, PRFileDesc *fd) fd 1426 net/third_party/nss/ssl/sslsock.c return ssl_ImportFD(model, fd, ssl_variant_stream); fd 1430 net/third_party/nss/ssl/sslsock.c DTLS_ImportFD(PRFileDesc *model, PRFileDesc *fd) fd 1432 net/third_party/nss/ssl/sslsock.c return ssl_ImportFD(model, fd, ssl_variant_datagram); fd 1436 net/third_party/nss/ssl/sslsock.c SSL_SetNextProtoCallback(PRFileDesc *fd, SSLNextProtoCallback callback, fd 1439 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1443 net/third_party/nss/ssl/sslsock.c fd)); fd 1459 net/third_party/nss/ssl/sslsock.c ssl_NextProtoNegoCallback(void *arg, PRFileDesc *fd, fd 1466 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1470 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1511 net/third_party/nss/ssl/sslsock.c SSL_SetNextProtoNego(PRFileDesc *fd, const unsigned char *data, fd 1518 net/third_party/nss/ssl/sslsock.c ss = ssl_FindSocket(fd); fd 1521 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1536 net/third_party/nss/ssl/sslsock.c return SSL_SetNextProtoCallback(fd, ssl_NextProtoNegoCallback, NULL); fd 1540 net/third_party/nss/ssl/sslsock.c SSL_GetNextProto(PRFileDesc *fd, SSLNextProtoState *state, unsigned char *buf, fd 1543 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1547 net/third_party/nss/ssl/sslsock.c fd)); fd 1573 net/third_party/nss/ssl/sslsock.c SECStatus SSL_SetSRTPCiphers(PRFileDesc *fd, fd 1580 net/third_party/nss/ssl/sslsock.c ss = ssl_FindSocket(fd); fd 1583 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1607 net/third_party/nss/ssl/sslsock.c "suite specified: 0x%04hx", SSL_GETPID(), fd, fd 1621 net/third_party/nss/ssl/sslsock.c SSL_GetSRTPCipher(PRFileDesc *fd, PRUint16 *cipher) fd 1625 net/third_party/nss/ssl/sslsock.c ss = ssl_FindSocket(fd); fd 1628 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1643 net/third_party/nss/ssl/sslsock.c SSL_ReconfigFD(PRFileDesc *model, PRFileDesc *fd) fd 1660 net/third_party/nss/ssl/sslsock.c ss = ssl_FindSocket(fd); fd 1769 net/third_party/nss/ssl/sslsock.c return fd; fd 1861 net/third_party/nss/ssl/sslsock.c SSL_VersionRangeGet(PRFileDesc *fd, SSLVersionRange *vrange) fd 1863 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1867 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1906 net/third_party/nss/ssl/sslsock.c SSL_VersionRangeSet(PRFileDesc *fd, const SSLVersionRange *vrange) fd 1908 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1912 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1947 net/third_party/nss/ssl/sslsock.c SSL_PeerStapledOCSPResponses(PRFileDesc *fd) fd 1949 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1953 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1966 net/third_party/nss/ssl/sslsock.c SSL_PeerSignedCertTimestamps(PRFileDesc *fd) fd 1968 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1972 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 1989 net/third_party/nss/ssl/sslsock.c SSL_HandshakeResumedSession(PRFileDesc *fd, PRBool *handshake_resumed) { fd 1990 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 1994 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 2003 net/third_party/nss/ssl/sslsock.c SSL_GetRequestedClientCertificateTypes(PRFileDesc *fd) fd 2005 net/third_party/nss/ssl/sslsock.c sslSocket *ss = ssl_FindSocket(fd); fd 2009 net/third_party/nss/ssl/sslsock.c "SSL_GetRequestedClientCertificateTypes", SSL_GETPID(), fd)); fd 2022 net/third_party/nss/ssl/sslsock.c ssl_Accept(PRFileDesc *fd, PRNetAddr *sockaddr, PRIntervalTime timeout) fd 2030 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2032 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in accept", SSL_GETPID(), fd)); fd 2044 net/third_party/nss/ssl/sslsock.c osfd = ss->fd->lower; fd 2050 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), ss->fd, PORT_GetError())); fd 2093 net/third_party/nss/ssl/sslsock.c ssl_Connect(PRFileDesc *fd, const PRNetAddr *sockaddr, PRIntervalTime timeout) fd 2098 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2100 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in connect", SSL_GETPID(), fd)); fd 2118 net/third_party/nss/ssl/sslsock.c ssl_Bind(PRFileDesc *fd, const PRNetAddr *addr) fd 2120 net/third_party/nss/ssl/sslsock.c sslSocket * ss = ssl_GetPrivate(fd); fd 2124 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in bind", SSL_GETPID(), fd)); fd 2138 net/third_party/nss/ssl/sslsock.c ssl_Listen(PRFileDesc *fd, PRIntn backlog) fd 2140 net/third_party/nss/ssl/sslsock.c sslSocket * ss = ssl_GetPrivate(fd); fd 2144 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in listen", SSL_GETPID(), fd)); fd 2158 net/third_party/nss/ssl/sslsock.c ssl_Shutdown(PRFileDesc *fd, PRIntn how) fd 2160 net/third_party/nss/ssl/sslsock.c sslSocket * ss = ssl_GetPrivate(fd); fd 2164 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in shutdown", SSL_GETPID(), fd)); fd 2186 net/third_party/nss/ssl/sslsock.c ssl_Close(PRFileDesc *fd) fd 2191 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2193 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in close", SSL_GETPID(), fd)); fd 2213 net/third_party/nss/ssl/sslsock.c ssl_Recv(PRFileDesc *fd, void *buf, PRInt32 len, PRIntn flags, fd 2219 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2221 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in recv", SSL_GETPID(), fd)); fd 2234 net/third_party/nss/ssl/sslsock.c ssl_Send(PRFileDesc *fd, const void *buf, PRInt32 len, PRIntn flags, fd 2240 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2242 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in send", SSL_GETPID(), fd)); fd 2255 net/third_party/nss/ssl/sslsock.c ssl_Read(PRFileDesc *fd, void *buf, PRInt32 len) fd 2260 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2262 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in read", SSL_GETPID(), fd)); fd 2275 net/third_party/nss/ssl/sslsock.c ssl_Write(PRFileDesc *fd, const void *buf, PRInt32 len) fd 2280 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2282 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in write", SSL_GETPID(), fd)); fd 2295 net/third_party/nss/ssl/sslsock.c ssl_GetPeerName(PRFileDesc *fd, PRNetAddr *addr) fd 2299 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2301 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in getpeername", SSL_GETPID(), fd)); fd 2316 net/third_party/nss/ssl/sslsock.c osfd = ss->fd->lower; fd 2338 net/third_party/nss/ssl/sslsock.c ssl_GetSockName(PRFileDesc *fd, PRNetAddr *name) fd 2342 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2344 net/third_party/nss/ssl/sslsock.c SSL_DBG(("%d: SSL[%d]: bad socket in getsockname", SSL_GETPID(), fd)); fd 2351 net/third_party/nss/ssl/sslsock.c SSL_SetStapledOCSPResponses(PRFileDesc *fd, const SECItemArray *responses, fd 2356 net/third_party/nss/ssl/sslsock.c ss = ssl_FindSocket(fd); fd 2359 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 2365 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 2380 net/third_party/nss/ssl/sslsock.c SSL_SetSockPeerID(PRFileDesc *fd, const char *peerID) fd 2384 net/third_party/nss/ssl/sslsock.c ss = ssl_FindSocket(fd); fd 2387 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 2403 net/third_party/nss/ssl/sslsock.c ssl_Poll(PRFileDesc *fd, PRInt16 how_flags, PRInt16 *p_out_flags) fd 2410 net/third_party/nss/ssl/sslsock.c ss = ssl_GetPrivate(fd); fd 2413 net/third_party/nss/ssl/sslsock.c SSL_GETPID(), fd)); fd 2464 net/third_party/nss/ssl/sslsock.c } else if ((new_flags & PR_POLL_READ) && (SSL_DataPending(fd) > 0)) { fd 2500 net/third_party/nss/ssl/sslsock.c if (new_flags && (fd->lower->methods->poll != NULL)) { fd 2503 net/third_party/nss/ssl/sslsock.c lower_new_flags = fd->lower->methods->poll(fd->lower, new_flags, fd 2523 net/third_party/nss/ssl/sslsock.c ssl_TransmitFile(PRFileDesc *sd, PRFileDesc *fd, fd 2529 net/third_party/nss/ssl/sslsock.c sfd.fd = fd; fd 2542 net/third_party/nss/ssl/sslsock.c ssl_FdIsBlocking(PRFileDesc *fd) fd 2549 net/third_party/nss/ssl/sslsock.c status = PR_GetSocketOption(fd, &opt); fd 2558 net/third_party/nss/ssl/sslsock.c return ssl_FdIsBlocking(ss->fd); fd 2565 net/third_party/nss/ssl/sslsock.c ssl_WriteV(PRFileDesc *fd, const PRIOVec *iov, PRInt32 vectors, fd 2582 net/third_party/nss/ssl/sslsock.c blocking = ssl_FdIsBlocking(fd); fd 2604 net/third_party/nss/ssl/sslsock.c rv = ssl_Send(fd, bfr, len, 0, timeout); \ fd 2612 net/third_party/nss/ssl/sslsock.c return ssl_Send(fd, 0, 0, 0, timeout); fd 2615 net/third_party/nss/ssl/sslsock.c return ssl_Send(fd, myIov.iov_base, myIov.iov_len, 0, timeout); fd 2696 net/third_party/nss/ssl/sslsock.c ssl_Available(PRFileDesc *fd) fd 2704 net/third_party/nss/ssl/sslsock.c ssl_Available64(PRFileDesc *fd) fd 2715 net/third_party/nss/ssl/sslsock.c ssl_FSync(PRFileDesc *fd) fd 2723 net/third_party/nss/ssl/sslsock.c ssl_Seek(PRFileDesc *fd, PRInt32 offset, PRSeekWhence how) { fd 2730 net/third_party/nss/ssl/sslsock.c ssl_Seek64(PRFileDesc *fd, PRInt64 offset, PRSeekWhence how) { fd 2740 net/third_party/nss/ssl/sslsock.c ssl_FileInfo(PRFileDesc *fd, PRFileInfo *info) fd 2748 net/third_party/nss/ssl/sslsock.c ssl_FileInfo64(PRFileDesc *fd, PRFileInfo64 *info) fd 2756 net/third_party/nss/ssl/sslsock.c ssl_RecvFrom(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, fd 2765 net/third_party/nss/ssl/sslsock.c ssl_SendTo(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, fd 2902 net/third_party/nss/ssl/sslsock.c ns->fd = (id == PR_TOP_IO_LAYER) ? stack : layer; fd 44 net/third_party/nss/ssl/ssltrace.c SSL_TRACE(("%d: SSL[%d]: %s [Len: %d]", SSL_GETPID(), ss->fd, fd 77 net/third_party/nss/ssl/ssltrace.c SSL_TRACE(("%d: SSL[%d]: dump-msg: %s", SSL_GETPID(), ss->fd, fd 87 net/third_party/nss/ssl/ssltrace.c SSL_TRACE(("%d: SSL[%d]: %s=%u", SSL_GETPID(), ss->fd, fd 105 net/third_party/nss/ssl/ssltrace.c SSL_GETPID(), ss->fd, msg, len)); fd 120 net/third_party/nss/ssl/ssltrace.c SSL_GETPID(), ss->fd, buf)); fd 131 net/third_party/nss/ssl/ssltrace.c SSL_GETPID(), ss->fd, buf)); fd 63 net/tools/epoll_server/epoll_server.cc virtual void OnEvent(int fd, EpollEvent* event) OVERRIDE { fd 69 net/tools/epoll_server/epoll_server.cc data_read = read(fd, &data, sizeof(data)); fd 72 net/tools/epoll_server/epoll_server.cc virtual void OnShutdown(EpollServer *eps, int fd) OVERRIDE {} fd 115 net/tools/epoll_server/epoll_server.cc int fd = cb_iter->fd; fd 120 net/tools/epoll_server/epoll_server.cc cb->OnShutdown(this, fd); fd 190 net/tools/epoll_server/epoll_server.cc void EpollServer::RegisterFD(int fd, CB* cb, int event_mask) { fd 192 net/tools/epoll_server/epoll_server.cc VLOG(3) << "RegisterFD fd=" << fd << " event_mask=" << event_mask; fd 193 net/tools/epoll_server/epoll_server.cc FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd)); fd 203 net/tools/epoll_server/epoll_server.cc other_cb->OnUnregistration(fd, true); fd 204 net/tools/epoll_server/epoll_server.cc ModFD(fd, event_mask); fd 207 net/tools/epoll_server/epoll_server.cc AddFD(fd, event_mask); fd 213 net/tools/epoll_server/epoll_server.cc AddFD(fd, event_mask); fd 214 net/tools/epoll_server/epoll_server.cc cb_map_.insert(CBAndEventMask(cb, event_mask, fd)); fd 219 net/tools/epoll_server/epoll_server.cc SetNonblocking(fd); fd 221 net/tools/epoll_server/epoll_server.cc cb->OnRegistration(this, fd, event_mask); fd 224 net/tools/epoll_server/epoll_server.cc int EpollServer::GetFlags(int fd) { fd 225 net/tools/epoll_server/epoll_server.cc return fcntl(fd, F_GETFL, 0); fd 228 net/tools/epoll_server/epoll_server.cc void EpollServer::SetNonblocking(int fd) { fd 229 net/tools/epoll_server/epoll_server.cc int flags = GetFlags(fd); fd 234 net/tools/epoll_server/epoll_server.cc << " doing fcntl(" << fd << ", F_GETFL, 0): " fd 239 net/tools/epoll_server/epoll_server.cc flags = SetFlags(fd, flags | O_NONBLOCK); fd 245 net/tools/epoll_server/epoll_server.cc << " doing fcntl(" << fd << ", F_SETFL, " << saved_flags << "): " fd 258 net/tools/epoll_server/epoll_server.cc void EpollServer::RegisterFDForWrite(int fd, CB* cb) { fd 259 net/tools/epoll_server/epoll_server.cc RegisterFD(fd, cb, EPOLLOUT); fd 262 net/tools/epoll_server/epoll_server.cc void EpollServer::RegisterFDForReadWrite(int fd, CB* cb) { fd 263 net/tools/epoll_server/epoll_server.cc RegisterFD(fd, cb, EPOLLIN | EPOLLOUT); fd 266 net/tools/epoll_server/epoll_server.cc void EpollServer::RegisterFDForRead(int fd, CB* cb) { fd 267 net/tools/epoll_server/epoll_server.cc RegisterFD(fd, cb, EPOLLIN); fd 270 net/tools/epoll_server/epoll_server.cc void EpollServer::UnregisterFD(int fd) { fd 271 net/tools/epoll_server/epoll_server.cc FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd)); fd 278 net/tools/epoll_server/epoll_server.cc event_recorder_.RecordUnregistration(fd); fd 284 net/tools/epoll_server/epoll_server.cc DelFD(fd); fd 285 net/tools/epoll_server/epoll_server.cc cb->OnUnregistration(fd, false); fd 304 net/tools/epoll_server/epoll_server.cc void EpollServer::ModifyCallback(int fd, int event_mask) { fd 305 net/tools/epoll_server/epoll_server.cc ModifyFD(fd, ~0, event_mask); fd 308 net/tools/epoll_server/epoll_server.cc void EpollServer::StopRead(int fd) { fd 309 net/tools/epoll_server/epoll_server.cc ModifyFD(fd, EPOLLIN, 0); fd 312 net/tools/epoll_server/epoll_server.cc void EpollServer::StartRead(int fd) { fd 313 net/tools/epoll_server/epoll_server.cc ModifyFD(fd, 0, EPOLLIN); fd 316 net/tools/epoll_server/epoll_server.cc void EpollServer::StopWrite(int fd) { fd 317 net/tools/epoll_server/epoll_server.cc ModifyFD(fd, EPOLLOUT, 0); fd 320 net/tools/epoll_server/epoll_server.cc void EpollServer::StartWrite(int fd) { fd 321 net/tools/epoll_server/epoll_server.cc ModifyFD(fd, 0, EPOLLOUT); fd 324 net/tools/epoll_server/epoll_server.cc void EpollServer::HandleEvent(int fd, int event_mask) { fd 326 net/tools/epoll_server/epoll_server.cc event_recorder_.RecordEpollEvent(fd, event_mask); fd 328 net/tools/epoll_server/epoll_server.cc FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd)); fd 412 net/tools/epoll_server/epoll_server.cc void EpollServer::SetFDReady(int fd, int events_to_fake) { fd 413 net/tools/epoll_server/epoll_server.cc FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd)); fd 433 net/tools/epoll_server/epoll_server.cc void EpollServer::SetFDNotReady(int fd) { fd 434 net/tools/epoll_server/epoll_server.cc FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd)); fd 440 net/tools/epoll_server/epoll_server.cc bool EpollServer::IsFDReady(int fd) const { fd 441 net/tools/epoll_server/epoll_server.cc FDToCBMap::const_iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd)); fd 544 net/tools/epoll_server/epoll_server.cc LOG(ERROR) << "fd: " << it->fd << " with mask " << it->event_mask fd 555 net/tools/epoll_server/epoll_server.cc void EpollServer::DelFD(int fd) const { fd 559 net/tools/epoll_server/epoll_server.cc event_recorder_.RecordFDMaskEvent(fd, 0, "DelFD"); fd 561 net/tools/epoll_server/epoll_server.cc if (epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, fd, &ee)) { fd 564 net/tools/epoll_server/epoll_server.cc LOG(FATAL) << "Epoll set removal error for fd " << fd << ": " fd 571 net/tools/epoll_server/epoll_server.cc void EpollServer::AddFD(int fd, int event_mask) const { fd 575 net/tools/epoll_server/epoll_server.cc ee.data.fd = fd; fd 577 net/tools/epoll_server/epoll_server.cc event_recorder_.RecordFDMaskEvent(fd, ee.events, "AddFD"); fd 579 net/tools/epoll_server/epoll_server.cc if (epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, fd, &ee)) { fd 582 net/tools/epoll_server/epoll_server.cc LOG(FATAL) << "Epoll set insertion error for fd " << fd << ": " fd 589 net/tools/epoll_server/epoll_server.cc void EpollServer::ModFD(int fd, int event_mask) const { fd 593 net/tools/epoll_server/epoll_server.cc ee.data.fd = fd; fd 595 net/tools/epoll_server/epoll_server.cc event_recorder_.RecordFDMaskEvent(fd, ee.events, "ModFD"); fd 597 net/tools/epoll_server/epoll_server.cc VLOG(3) << "modifying fd= " << fd << " " fd 599 net/tools/epoll_server/epoll_server.cc if (epoll_ctl(epoll_fd_, EPOLL_CTL_MOD, fd, &ee)) { fd 602 net/tools/epoll_server/epoll_server.cc LOG(FATAL) << "Epoll set modification error for fd " << fd << ": " fd 609 net/tools/epoll_server/epoll_server.cc void EpollServer::ModifyFD(int fd, int remove_event, int add_event) { fd 610 net/tools/epoll_server/epoll_server.cc FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd)); fd 612 net/tools/epoll_server/epoll_server.cc VLOG(2) << "Didn't find the fd " << fd << "in internal structures"; fd 618 net/tools/epoll_server/epoll_server.cc VLOG(3) << "fd= " << fd fd 625 net/tools/epoll_server/epoll_server.cc ModFD(fd, event_mask); fd 627 net/tools/epoll_server/epoll_server.cc fd_i->cb->OnModification(fd, event_mask); fd 672 net/tools/epoll_server/epoll_server.cc int fd = events[i].data.fd; fd 673 net/tools/epoll_server/epoll_server.cc HandleEvent(fd, event_mask); fd 717 net/tools/epoll_server/epoll_server.cc cb_and_mask->cb->OnEvent(cb_and_mask->fd, &event); fd 71 net/tools/epoll_server/epoll_server.h virtual void OnRegistration(EpollServer* eps, int fd, int event_mask) = 0; fd 80 net/tools/epoll_server/epoll_server.h virtual void OnModification(int fd, int event_mask) = 0; fd 92 net/tools/epoll_server/epoll_server.h virtual void OnEvent(int fd, EpollEvent* event) = 0; fd 101 net/tools/epoll_server/epoll_server.h virtual void OnUnregistration(int fd, bool replaced) = 0; fd 109 net/tools/epoll_server/epoll_server.h virtual void OnShutdown(EpollServer* eps, int fd) = 0; fd 165 net/tools/epoll_server/epoll_server.h virtual void RegisterFD(int fd, CB* cb, int event_mask); fd 175 net/tools/epoll_server/epoll_server.h virtual void RegisterFDForWrite(int fd, CB* cb); fd 185 net/tools/epoll_server/epoll_server.h virtual void RegisterFDForReadWrite(int fd, CB* cb); fd 195 net/tools/epoll_server/epoll_server.h virtual void RegisterFDForRead(int fd, CB* cb); fd 207 net/tools/epoll_server/epoll_server.h virtual void UnregisterFD(int fd); fd 219 net/tools/epoll_server/epoll_server.h virtual void ModifyCallback(int fd, int event_mask); fd 230 net/tools/epoll_server/epoll_server.h virtual void StopRead(int fd); fd 241 net/tools/epoll_server/epoll_server.h virtual void StartRead(int fd); fd 252 net/tools/epoll_server/epoll_server.h virtual void StopWrite(int fd); fd 263 net/tools/epoll_server/epoll_server.h virtual void StartWrite(int fd); fd 288 net/tools/epoll_server/epoll_server.h void HandleEvent(int fd, int event_mask); fd 333 net/tools/epoll_server/epoll_server.h virtual void SetFDReady(int fd, int events_to_fake); fd 335 net/tools/epoll_server/epoll_server.h virtual void SetFDNotReady(int fd); fd 344 net/tools/epoll_server/epoll_server.h virtual bool IsFDReady(int fd) const; fd 490 net/tools/epoll_server/epoll_server.h virtual int GetFlags(int fd); fd 491 net/tools/epoll_server/epoll_server.h inline int SetFlags(int fd, int flags) { fd 492 net/tools/epoll_server/epoll_server.h return fcntl(fd, F_SETFL, flags | O_NONBLOCK); fd 495 net/tools/epoll_server/epoll_server.h virtual void SetNonblocking(int fd); fd 515 net/tools/epoll_server/epoll_server.h fd(-1), fd 526 net/tools/epoll_server/epoll_server.h int fd) fd 527 net/tools/epoll_server/epoll_server.h : cb(cb), fd(fd), event_mask(event_mask), events_asserted(0), fd 537 net/tools/epoll_server/epoll_server.h return fd == cb_and_mask.fd; fd 545 net/tools/epoll_server/epoll_server.h int fd; fd 560 net/tools/epoll_server/epoll_server.h return static_cast<size_t>(cb_and_eventmask.fd); fd 578 net/tools/epoll_server/epoll_server.h virtual void DelFD(int fd) const; fd 592 net/tools/epoll_server/epoll_server.h virtual void AddFD(int fd, int event_mask) const; fd 606 net/tools/epoll_server/epoll_server.h virtual void ModFD(int fd, int event_mask) const; fd 625 net/tools/epoll_server/epoll_server.h virtual void ModifyFD(int fd, int remove_event, int add_event); fd 754 net/tools/epoll_server/epoll_server.h void RecordFDMaskEvent(int fd, int mask, const char* function) { fd 755 net/tools/epoll_server/epoll_server.h FDMaskOutput* fdmo = new FDMaskOutput(fd, mask, function); fd 768 net/tools/epoll_server/epoll_server.h void RecordEpollEvent(int fd, int event_mask) { fd 769 net/tools/epoll_server/epoll_server.h Events& events_for_fd = event_counts_[fd]; fd 791 net/tools/epoll_server/epoll_server.h void RecordUnregistration(int fd) { fd 792 net/tools/epoll_server/epoll_server.h EventCountsMap::iterator i = event_counts_.find(fd); fd 813 net/tools/epoll_server/epoll_server.h FDMaskOutput(int fd, int mask, const char* function) : fd 814 net/tools/epoll_server/epoll_server.h fd_(fd), mask_(mask), function_(function) {} fd 122 net/tools/flip_server/acceptor_thread.cc int fd = accept(acceptor_->listen_fd_, &address, &socklen); fd 123 net/tools/flip_server/acceptor_thread.cc if (fd == -1) { fd 132 net/tools/flip_server/acceptor_thread.cc HandleConnection(fd, (struct sockaddr_in*)&address); fd 138 net/tools/flip_server/acceptor_thread.cc int fd = accept(acceptor_->listen_fd_, &address, &socklen); fd 139 net/tools/flip_server/acceptor_thread.cc if (fd == -1) { fd 148 net/tools/flip_server/acceptor_thread.cc HandleConnection(fd, (struct sockaddr_in*)&address); fd 198 net/tools/flip_server/acceptor_thread.cc void SMAcceptorThread::OnEvent(int fd, EpollEvent* event) { fd 54 net/tools/flip_server/acceptor_thread.h int fd, fd 56 net/tools/flip_server/acceptor_thread.h virtual void OnModification(int fd, int event_mask) OVERRIDE {} fd 57 net/tools/flip_server/acceptor_thread.h virtual void OnEvent(int fd, EpollEvent* event) OVERRIDE; fd 58 net/tools/flip_server/acceptor_thread.h virtual void OnUnregistration(int fd, bool replaced) OVERRIDE {} fd 59 net/tools/flip_server/acceptor_thread.h virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {} fd 50 net/tools/flip_server/create_listener.cc bool CloseSocket(int* fd, int tries) { fd 52 net/tools/flip_server/create_listener.cc if (!close(*fd)) { fd 53 net/tools/flip_server/create_listener.cc *fd = -1; fd 61 net/tools/flip_server/create_listener.cc void FlipSetNonBlocking(int fd) { fd 62 net/tools/flip_server/create_listener.cc DCHECK_GE(fd, 0); fd 64 net/tools/flip_server/create_listener.cc int fcntl_return = fcntl(fd, F_GETFL, 0); fd 65 net/tools/flip_server/create_listener.cc CHECK_NE(fcntl_return, -1) << "error doing fcntl(fd, F_GETFL, 0) fd: " << fd fd 71 net/tools/flip_server/create_listener.cc fcntl_return = fcntl(fd, F_SETFL, fcntl_return | O_NONBLOCK); fd 73 net/tools/flip_server/create_listener.cc << "error doing fcntl(fd, F_SETFL, fcntl_return) fd: " << fd fd 77 net/tools/flip_server/create_listener.cc int SetDisableNagle(int fd) { fd 81 net/tools/flip_server/create_listener.cc fd, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast<char*>(&on), sizeof(on)); fd 83 net/tools/flip_server/create_listener.cc close(fd); fd 84 net/tools/flip_server/create_listener.cc LOG(FATAL) << "setsockopt() TCP_NODELAY: failed on fd " << fd; fd 13 net/tools/flip_server/create_listener.h void FlipSetNonBlocking(int fd); fd 107 net/tools/flip_server/flip_in_mem_edsm_server.cc int fd; fd 111 net/tools/flip_server/flip_in_mem_edsm_server.cc fd = open(pidfile, O_RDWR | O_CREAT, 0600); fd 112 net/tools/flip_server/flip_in_mem_edsm_server.cc if (fd == -1) { fd 117 net/tools/flip_server/flip_in_mem_edsm_server.cc ret = flock(fd, LOCK_EX | LOCK_NB); fd 127 net/tools/flip_server/flip_in_mem_edsm_server.cc if (fstat(fd, &pid_stat) == -1) { fd 133 net/tools/flip_server/flip_in_mem_edsm_server.cc if (ftruncate(fd, pid_stat.st_size) == -1) { fd 145 net/tools/flip_server/flip_in_mem_edsm_server.cc if (write(fd, pid_str, strlen(pid_str)) != bytes) { fd 147 net/tools/flip_server/flip_in_mem_edsm_server.cc close(fd); fd 151 net/tools/flip_server/flip_in_mem_edsm_server.cc return fd; fd 98 net/tools/flip_server/http_interface.cc int fd, fd 108 net/tools/flip_server/http_interface.cc fd, fd 80 net/tools/flip_server/http_interface.h int fd, fd 91 net/tools/flip_server/loadtime_measurement.h int fd = open(filename, 0, "r"); fd 92 net/tools/flip_server/loadtime_measurement.h if (fd == -1) fd 95 net/tools/flip_server/loadtime_measurement.h ssize_t read_status = read(fd, buffer, sizeof(buffer)); fd 99 net/tools/flip_server/loadtime_measurement.h read_status = read(fd, buffer, sizeof(buffer)); fd 102 net/tools/flip_server/loadtime_measurement.h close(fd); fd 123 net/tools/flip_server/mem_cache.cc int fd = open(filename, 0, "r"); fd 124 net/tools/flip_server/mem_cache.cc if (fd == -1) fd 127 net/tools/flip_server/mem_cache.cc ssize_t read_status = read(fd, buffer, sizeof(buffer)); fd 131 net/tools/flip_server/mem_cache.cc read_status = read(fd, buffer, sizeof(buffer)); fd 134 net/tools/flip_server/mem_cache.cc close(fd); fd 95 net/tools/flip_server/mem_cache.h explicit MemCacheIter(FileData* fd) fd 96 net/tools/flip_server/mem_cache.h : file_data(fd), fd 82 net/tools/flip_server/sm_connection.cc int fd, fd 94 net/tools/flip_server/sm_connection.cc if (fd == -1) { fd 134 net/tools/flip_server/sm_connection.cc fd_ = fd; fd 223 net/tools/flip_server/sm_connection.cc void SMConnection::OnRegistration(EpollServer* eps, int fd, int event_mask) { fd 227 net/tools/flip_server/sm_connection.cc void SMConnection::OnEvent(int fd, EpollEvent* event) { fd 236 net/tools/flip_server/sm_connection.cc void SMConnection::OnUnregistration(int fd, bool replaced) { fd 240 net/tools/flip_server/sm_connection.cc void SMConnection::OnShutdown(EpollServer* eps, int fd) { fd 66 net/tools/flip_server/sm_connection.h int fd() const { return fd_; } fd 73 net/tools/flip_server/sm_connection.h int fd, fd 86 net/tools/flip_server/sm_connection.h int fd, fd 88 net/tools/flip_server/sm_connection.h virtual void OnModification(int fd, int event_mask) OVERRIDE {} fd 89 net/tools/flip_server/sm_connection.h virtual void OnEvent(int fd, EpollEvent* event) OVERRIDE; fd 90 net/tools/flip_server/sm_connection.h virtual void OnUnregistration(int fd, bool replaced) OVERRIDE; fd 91 net/tools/flip_server/sm_connection.h virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE; fd 27 net/tools/flip_server/sm_interface.h int fd, fd 59 net/tools/flip_server/spdy_interface.cc int fd, fd 68 net/tools/flip_server/spdy_interface.cc fd, fd 43 net/tools/flip_server/spdy_interface.h int fd, fd 53 net/tools/flip_server/streamer_interface.cc int fd, fd 63 net/tools/flip_server/streamer_interface.cc fd, fd 38 net/tools/flip_server/streamer_interface.h int fd, fd 138 net/tools/quic/end_to_end_test.cc client_->OnEvent(client_->fd(), &event); fd 259 net/tools/quic/quic_client.cc void QuicClient::OnEvent(int fd, EpollEvent* event) { fd 260 net/tools/quic/quic_client.cc DCHECK_EQ(fd, fd_); fd 106 net/tools/quic/quic_client.h int fd, fd 108 net/tools/quic/quic_client.h virtual void OnModification(int fd, int event_mask) OVERRIDE {} fd 109 net/tools/quic/quic_client.h virtual void OnEvent(int fd, EpollEvent* event) OVERRIDE; fd 113 net/tools/quic/quic_client.h virtual void OnUnregistration(int fd, bool replaced) OVERRIDE {} fd 114 net/tools/quic/quic_client.h virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {} fd 139 net/tools/quic/quic_client.h int fd() { return fd_; } fd 12 net/tools/quic/quic_default_packet_writer.cc QuicDefaultPacketWriter::QuicDefaultPacketWriter(int fd) fd 13 net/tools/quic/quic_default_packet_writer.cc : fd_(fd), fd 21 net/tools/quic/quic_default_packet_writer.h explicit QuicDefaultPacketWriter(int fd); fd 164 net/tools/quic/quic_dispatcher.cc void QuicDispatcher::Initialize(int fd) { fd 166 net/tools/quic/quic_dispatcher.cc writer_.reset(CreateWriterWrapper(CreateWriter(fd))); fd 340 net/tools/quic/quic_dispatcher.cc QuicPacketWriter* QuicDispatcher::CreateWriter(int fd) { fd 341 net/tools/quic/quic_dispatcher.cc return new QuicDefaultPacketWriter(fd); fd 71 net/tools/quic/quic_dispatcher.h virtual void Initialize(int fd); fd 108 net/tools/quic/quic_dispatcher.h QuicPacketWriter* CreateWriter(int fd); fd 199 net/tools/quic/quic_server.cc void QuicServer::OnEvent(int fd, EpollEvent* event) { fd 200 net/tools/quic/quic_server.cc DCHECK_EQ(fd, fd_); fd 223 net/tools/quic/quic_server.cc bool QuicServer::ReadAndDispatchSinglePacket(int fd, fd 234 net/tools/quic/quic_server.cc QuicSocketUtils::ReadPacket(fd, buf, arraysize(buf), fd 50 net/tools/quic/quic_server.h int fd, fd 52 net/tools/quic/quic_server.h virtual void OnModification(int fd, int event_mask) OVERRIDE {} fd 53 net/tools/quic/quic_server.h virtual void OnEvent(int fd, EpollEvent* event) OVERRIDE; fd 54 net/tools/quic/quic_server.h virtual void OnUnregistration(int fd, bool replaced) OVERRIDE {} fd 62 net/tools/quic/quic_server.h static bool ReadAndDispatchSinglePacket(int fd, int port, fd 66 net/tools/quic/quic_server.h virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {} fd 71 net/tools/quic/quic_socket_utils.cc int QuicSocketUtils::SetGetAddressInfo(int fd, int address_family) { fd 74 net/tools/quic/quic_socket_utils.cc return setsockopt(fd, IPPROTO_IP, IP_PKTINFO, fd 77 net/tools/quic/quic_socket_utils.cc return setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, fd 83 net/tools/quic/quic_socket_utils.cc int QuicSocketUtils::ReadPacket(int fd, char* buffer, size_t buf_len, fd 108 net/tools/quic/quic_socket_utils.cc int bytes_read = recvmsg(fd, &hdr, 0); fd 140 net/tools/quic/quic_socket_utils.cc WriteResult QuicSocketUtils::WritePacket(int fd, fd 195 net/tools/quic/quic_socket_utils.cc int rc = sendmsg(fd, &hdr, 0); fd 34 net/tools/quic/quic_socket_utils.h static int SetGetAddressInfo(int fd, int address_family); fd 45 net/tools/quic/quic_socket_utils.h static int ReadPacket(int fd, fd 56 net/tools/quic/quic_socket_utils.h static WriteResult WritePacket(int fd, const char* buffer, size_t buf_len, fd 86 net/tools/quic/test_tools/mock_epoll_server.h virtual void DelFD(int fd) const OVERRIDE { } fd 87 net/tools/quic/test_tools/mock_epoll_server.h virtual void AddFD(int fd, int event_mask) const OVERRIDE { } fd 88 net/tools/quic/test_tools/mock_epoll_server.h virtual void ModFD(int fd, int event_mask) const OVERRIDE { } fd 95 net/tools/quic/test_tools/mock_epoll_server.h virtual void SetNonblocking (int fd) OVERRIDE { } fd 24 ppapi/native_client/src/trusted/plugin/file_utils.cc StatusCode SlurpFile(int32_t fd, fd 28 ppapi/native_client/src/trusted/plugin/file_utils.cc if (fstat(fd, &stat_buf) != 0) { fd 29 ppapi/native_client/src/trusted/plugin/file_utils.cc CLOSE(fd); fd 37 ppapi/native_client/src/trusted/plugin/file_utils.cc CLOSE(fd); fd 41 ppapi/native_client/src/trusted/plugin/file_utils.cc FILE* input_file = fdopen(fd, "rb"); fd 43 ppapi/native_client/src/trusted/plugin/file_utils.cc CLOSE(fd); fd 30 ppapi/native_client/src/trusted/plugin/file_utils.h StatusCode SlurpFile(int32_t fd, fd 114 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc int32_t fd = GetPnaclFD(plugin_, resource_info_filename.c_str()); fd 115 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc if (fd < 0) { fd 126 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc file_utils::StatusCode status = file_utils::SlurpFile(fd, json_buffer); fd 225 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc int32_t fd = PnaclResources::GetPnaclFD(plugin_, filename.c_str()); fd 226 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc if (fd < 0) { fd 239 ppapi/native_client/src/trusted/plugin/pnacl_resources.cc plugin_->wrapper_factory()->MakeFileDesc(fd, O_RDONLY); fd 256 ppapi/native_client/src/trusted/plugin/service_runtime.cc int32_t fd = PnaclResources::GetPnaclFD( fd 259 ppapi/native_client/src/trusted/plugin/service_runtime.cc if (fd < 0) { fd 271 ppapi/native_client/src/trusted/plugin/service_runtime.cc p->file_info->desc = fd; fd 69 ppapi/native_client/src/trusted/plugin/temporary_file.cc int32_t fd = posix_desc; fd 71 ppapi/native_client/src/trusted/plugin/temporary_file.cc int32_t fd = file_handle; fd 74 ppapi/native_client/src/trusted/plugin/temporary_file.cc if (fd < 0) { fd 84 ppapi/native_client/src/trusted/plugin/temporary_file.cc int32_t read_fd = DUP(fd); fd 94 ppapi/native_client/src/trusted/plugin/temporary_file.cc plugin_->wrapper_factory()->MakeFileDescQuota(fd, O_RDWR, identifier_)); fd 648 ppapi/proxy/ppb_image_data_proxy.cc *result_image_handle = image_handle.fd; fd 159 ppapi/tests/test_broker.cc int fd = ::mkstemp(file_name); fd 160 ppapi/tests/test_broker.cc if (-1 == fd) fd 163 ppapi/tests/test_broker.cc if (IGNORE_EINTR(::close(fd))) { fd 129 ppapi/tests/test_file_io.cc bool ReadEntireFileFromFileHandle(int fd, std::string* data) { fd 130 ppapi/tests/test_file_io.cc if (lseek(fd, 0, SEEK_SET) < 0) fd 137 ppapi/tests/test_file_io.cc ret = read(fd, buf, sizeof(buf)); fd 1022 ppapi/tests/test_file_io.cc int fd = _open_osfhandle(reinterpret_cast<intptr_t>(handle), fd 1025 ppapi/tests/test_file_io.cc int fd = handle; fd 1027 ppapi/tests/test_file_io.cc if (fd < 0) fd 1032 ppapi/tests/test_file_io.cc ssize_t cnt = write(fd, msg.data(), msg.size()); fd 1039 ppapi/tests/test_file_io.cc off_t off = lseek(fd, 0, SEEK_CUR); fd 1045 ppapi/tests/test_file_io.cc off = lseek(fd, 0, SEEK_SET); fd 1053 ppapi/tests/test_file_io.cc cnt = read(fd, &buf[0], msg.size()); fd 1128 ppapi/tests/test_file_io.cc int fd = handle; fd 1129 ppapi/tests/test_file_io.cc if (fd < 0) fd 1134 ppapi/tests/test_file_io.cc ssize_t cnt = write(fd, msg.data(), msg.size()); fd 1144 ppapi/tests/test_file_io.cc mmap(NULL, msg.size(), PROT_READ, MAP_PRIVATE, fd, 0)); fd 1160 ppapi/tests/test_file_io.cc mmap(NULL, msg.size(), PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0)); fd 1166 ppapi/tests/test_file_io.cc ASSERT_TRUE(ReadEntireFileFromFileHandle(fd, &read_buffer)); fd 1177 ppapi/tests/test_file_io.cc mmap(NULL, msg.size(), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)); fd 1183 ppapi/tests/test_file_io.cc ASSERT_TRUE(ReadEntireFileFromFileHandle(fd, &read_buffer)); fd 1192 ppapi/tests/test_file_io.cc if (close(fd) < 0) fd 1211 ppapi/tests/test_file_io.cc fd = handle; fd 1212 ppapi/tests/test_file_io.cc if (fd < 0) fd 1220 ppapi/tests/test_file_io.cc mmap(NULL, msg2.size(), PROT_READ, MAP_PRIVATE, fd, 0)); fd 1236 ppapi/tests/test_file_io.cc mmap(NULL, msg2.size(), PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0)); fd 1242 ppapi/tests/test_file_io.cc ASSERT_TRUE(ReadEntireFileFromFileHandle(fd, &read_buffer)); fd 1253 ppapi/tests/test_file_io.cc mmap(NULL, msg2.size(), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)); fd 1260 ppapi/tests/test_file_io.cc if (close(fd) < 0) fd 100 printing/android/java/src/org/chromium/printing/PrintingContext.java public static void pdfWritingDone(int fd, boolean success) { fd 103 printing/android/java/src/org/chromium/printing/PrintingContext.java if (PRINTING_CONTEXT_MAP.get(fd) != null) { fd 105 printing/android/java/src/org/chromium/printing/PrintingContext.java PrintingContext printingContext = PRINTING_CONTEXT_MAP.get(fd); fd 107 printing/android/java/src/org/chromium/printing/PrintingContext.java PRINTING_CONTEXT_MAP.remove(fd); fd 340 printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java private static void closeFileDescriptor(int fd) { fd 341 printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java if (fd != -1) return; fd 342 printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java ParcelFileDescriptor fileDescriptor = ParcelFileDescriptor.adoptFd(fd); fd 162 printing/metafile.h virtual bool SaveToFD(const base::FileDescriptor& fd) const = 0; fd 199 printing/pdf_metafile_skia.cc bool PdfMetafileSkia::SaveToFD(const base::FileDescriptor& fd) const { fd 202 printing/pdf_metafile_skia.cc if (fd.fd < 0) { fd 209 printing/pdf_metafile_skia.cc if (base::WriteFileDescriptor(fd.fd, fd 213 printing/pdf_metafile_skia.cc DLOG(ERROR) << "Failed to save file with fd " << fd.fd; fd 217 printing/pdf_metafile_skia.cc if (fd.auto_close) { fd 218 printing/pdf_metafile_skia.cc if (IGNORE_EINTR(close(fd.fd)) < 0) { fd 67 printing/pdf_metafile_skia.h virtual bool SaveToFD(const base::FileDescriptor& fd) const OVERRIDE; fd 69 printing/printing_context_android.cc void PrintingContextAndroid::PdfWritingDone(int fd, bool success) { fd 71 printing/printing_context_android.cc Java_PrintingContext_pdfWritingDone(env, fd, success); fd 114 printing/printing_context_android.cc int fd = Java_PrintingContext_getFileDescriptor(env, fd 116 printing/printing_context_android.cc settings_.set_device_name(base::IntToString16(fd)); fd 27 printing/printing_context_android.h static void PdfWritingDone(int fd, bool success); fd 33 remoting/host/clipboard_x11.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 34 remoting/host/clipboard_x11.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 102 remoting/host/clipboard_x11.cc void ClipboardX11::OnFileCanReadWithoutBlocking(int fd) { fd 106 remoting/host/clipboard_x11.cc void ClipboardX11::OnFileCanWriteWithoutBlocking(int fd) { fd 189 remoting/host/desktop_process_unittest.cc base::ClosePlatformFile(desktop_process.fd); fd 95 remoting/host/desktop_session_agent.cc memory->handle().fd, fd 570 remoting/host/desktop_session_agent.cc base::ClosePlatformFile(desktop_pipe_.fd); fd 60 remoting/host/desktop_session_proxy.cc << ", handle.fd=" << handle.fd fd 73 remoting/host/desktop_session_proxy.cc return shared_memory_.handle().fd; fd 197 remoting/host/ipc_desktop_environment.cc base::ClosePlatformFile(desktop_pipe.fd); fd 46 remoting/host/ipc_util_posix.cc base::FileDescriptor fd(pipe_fds[0], false); fd 47 remoting/host/ipc_util_posix.cc IPC::ChannelHandle handle(socket_name, fd); fd 48 remoting/host/ipc_util_posix.cc server_out->reset(new IPC::ChannelProxy(IPC::ChannelHandle(socket_name, fd), fd 97 remoting/host/linux/audio_pipe_reader.cc void AudioPipeReader::OnFileCanReadWithoutBlocking(int fd) { fd 98 remoting/host/linux/audio_pipe_reader.cc DCHECK_EQ(fd, pipe_fd_); fd 102 remoting/host/linux/audio_pipe_reader.cc void AudioPipeReader::OnFileCanWriteWithoutBlocking(int fd) { fd 47 remoting/host/linux/audio_pipe_reader.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 48 remoting/host/linux/audio_pipe_reader.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 65 remoting/host/local_input_monitor_linux.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 66 remoting/host/local_input_monitor_linux.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 268 remoting/host/local_input_monitor_linux.cc void LocalInputMonitorLinux::Core::OnFileCanReadWithoutBlocking(int fd) { fd 278 remoting/host/local_input_monitor_linux.cc void LocalInputMonitorLinux::Core::OnFileCanWriteWithoutBlocking(int fd) { fd 30 remoting/host/posix/signal_handler.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 31 remoting/host/posix/signal_handler.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} fd 51 remoting/host/posix/signal_handler.cc void SignalListener::OnFileCanReadWithoutBlocking(int fd) { fd 53 remoting/host/posix/signal_handler.cc int result = HANDLE_EINTR(read(fd, &buffer, sizeof(buffer))); fd 78 sandbox/linux/seccomp-bpf/demo.cc for (int i = 0, fd; (fd = va_arg(ap, int)) >= 0; ++i) { fd 79 sandbox/linux/seccomp-bpf/demo.cc (reinterpret_cast<int *>(CMSG_DATA(cmsg)))[i] = fd; fd 89 sandbox/linux/seccomp-bpf/demo.cc for (int *fd; (fd = va_arg(ap, int *)) != NULL; ++count) { fd 90 sandbox/linux/seccomp-bpf/demo.cc *fd = -1; fd 138 sandbox/linux/seccomp-bpf/demo.cc for (int *fd, i = 0; (fd = va_arg(ap, int *)) != NULL; ++i) { fd 139 sandbox/linux/seccomp-bpf/demo.cc *fd = (reinterpret_cast<int *>(CMSG_DATA(cmsg)))[i]; fd 831 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc int fd; fd 832 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT((fd = open("/proc/self/comm", O_RDWR)) == -1); fd 834 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc BPF_ASSERT((fd = open("/proc/self/comm", O_RDONLY)) >= 0); fd 835 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc close(fd); fd 133 sandbox/linux/seccomp-bpf/syscall_unittest.cc int fd; fd 134 sandbox/linux/seccomp-bpf/syscall_unittest.cc ASSERT_LE(0, fd = SandboxSyscall(__NR_open, "/dev/null", O_RDWR, 0L)); fd 145 sandbox/linux/seccomp-bpf/syscall_unittest.cc fd, fd 157 sandbox/linux/seccomp-bpf/syscall_unittest.cc fd, fd 163 sandbox/linux/seccomp-bpf/syscall_unittest.cc EXPECT_EQ(0, IGNORE_EINTR(SandboxSyscall(__NR_close, fd))); fd 167 sandbox/linux/seccomp-bpf/syscall_unittest.cc ASSERT_GE(fd = SandboxSyscall(__NR_open, "/proc/self/exe", O_RDONLY, 0L), 0); fd 171 sandbox/linux/seccomp-bpf/syscall_unittest.cc kMMapNr, (void*)NULL, 8192L, PROT_READ, MAP_PRIVATE, fd, 0L))); fd 178 sandbox/linux/seccomp-bpf/syscall_unittest.cc fd, fd 190 sandbox/linux/seccomp-bpf/syscall_unittest.cc EXPECT_EQ(8192, SandboxSyscall(__NR_read, fd, buf, 8192L)); fd 196 sandbox/linux/seccomp-bpf/syscall_unittest.cc EXPECT_EQ(0, IGNORE_EINTR(SandboxSyscall(__NR_close, fd))); fd 87 sandbox/linux/services/broker_process_unittest.cc int fd = open_broker.Open(NULL, O_RDONLY); fd 88 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -EFAULT); fd 118 sandbox/linux/services/broker_process_unittest.cc int fd = -1; fd 119 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListed, O_RDONLY); fd 120 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -ENOENT); fd 121 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListed, O_WRONLY); fd 122 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 123 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListed, O_RDWR); fd 124 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 143 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListedButDenied, O_RDONLY); fd 146 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -EACCES); fd 147 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListedButDenied, O_WRONLY); fd 148 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 149 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kR_WhiteListedButDenied, O_RDWR); fd 150 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 166 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kW_WhiteListed, O_RDONLY); fd 167 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 168 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kW_WhiteListed, O_WRONLY); fd 169 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -ENOENT); fd 170 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kW_WhiteListed, O_RDWR); fd 171 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 185 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kRW_WhiteListed, O_RDONLY); fd 186 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -ENOENT); fd 187 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kRW_WhiteListed, O_WRONLY); fd 188 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -ENOENT); fd 189 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kRW_WhiteListed, O_RDWR); fd 190 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -ENOENT); fd 204 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(k_NotWhitelisted, O_RDONLY); fd 205 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 206 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(k_NotWhitelisted, O_WRONLY); fd 207 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 208 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(k_NotWhitelisted, O_RDWR); fd 209 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 224 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kRW_WhiteListed, O_RDONLY | O_WRONLY | O_RDWR); fd 225 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 229 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kRW_WhiteListed, O_RDWR | O_CREAT); fd 230 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -denied_errno); fd 269 sandbox/linux/services/broker_process_unittest.cc int fd = -1; fd 270 sandbox/linux/services/broker_process_unittest.cc fd = open_broker->Open(kFileCpuInfo, O_RDWR); fd 271 sandbox/linux/services/broker_process_unittest.cc base::ScopedFD fd_closer(fd); fd 272 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(fd, -EPERM); fd 350 sandbox/linux/services/broker_process_unittest.cc len = read(tempfile.fd(), buf, sizeof(buf)); fd 398 sandbox/linux/services/broker_process_unittest.cc int fd = -1; fd 400 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kCpuInfo, O_RDONLY); fd 401 sandbox/linux/services/broker_process_unittest.cc ASSERT_GE(fd, 0); fd 402 sandbox/linux/services/broker_process_unittest.cc ret = fcntl(fd, F_GETFL); fd 406 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(0, close(fd)); fd 408 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kCpuInfo, O_RDONLY | O_CLOEXEC); fd 409 sandbox/linux/services/broker_process_unittest.cc ASSERT_GE(fd, 0); fd 410 sandbox/linux/services/broker_process_unittest.cc ret = fcntl(fd, F_GETFD); fd 415 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(0, close(fd)); fd 417 sandbox/linux/services/broker_process_unittest.cc fd = open_broker.Open(kCpuInfo, O_RDONLY | O_NONBLOCK); fd 418 sandbox/linux/services/broker_process_unittest.cc ASSERT_GE(fd, 0); fd 419 sandbox/linux/services/broker_process_unittest.cc ret = fcntl(fd, F_GETFL); fd 422 sandbox/linux/services/broker_process_unittest.cc ASSERT_EQ(0, close(fd)); fd 130 sandbox/linux/services/libc_urandom_override.cc int fd = HANDLE_EINTR(dup(base::GetUrandomFD())); fd 131 sandbox/linux/services/libc_urandom_override.cc if (fd < 0) { fd 135 sandbox/linux/services/libc_urandom_override.cc return fdopen(fd, mode); fd 146 sandbox/linux/services/libc_urandom_override.cc int fd = HANDLE_EINTR(dup(base::GetUrandomFD())); fd 147 sandbox/linux/services/libc_urandom_override.cc if (fd < 0) { fd 151 sandbox/linux/services/libc_urandom_override.cc return fdopen(fd, mode); fd 104 sandbox/linux/services/scoped_process_unittest.cc void SleepInMsAndWriteOneByte(int time_to_sleep, int fd) { fd 106 sandbox/linux/services/scoped_process_unittest.cc CHECK(1 == write(fd, "1", 1)); fd 67 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd())); fd 72 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd())); fd 75 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread)); fd 80 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd())); fd 86 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd())); fd 88 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread)); fd 94 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd())); fd 101 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd())); fd 103 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread)); fd 104 sandbox/linux/services/thread_helpers_unittests.cc ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd())); fd 100 sandbox/linux/suid/linux_util.c DIR* fd = opendirat(proc_pid_fd, "fd"); fd 101 sandbox/linux/suid/linux_util.c if (!fd) { fd 106 sandbox/linux/suid/linux_util.c while ((dent = readdir(fd))) { fd 117 sandbox/linux/suid/linux_util.c closedir(fd); fd 129 sandbox/linux/suid/linux_util.c closedir(fd); fd 51 sandbox/linux/suid/process_util_linux.c int fd = openat(dirfd, "oom_score_adj", O_WRONLY); fd 52 sandbox/linux/suid/process_util_linux.c if (fd < 0) { fd 55 sandbox/linux/suid/process_util_linux.c fd = openat(dirfd, "oom_adj", O_WRONLY); fd 56 sandbox/linux/suid/process_util_linux.c if (fd < 0) { fd 72 sandbox/linux/suid/process_util_linux.c ssize_t bytes_written = write(fd, buf, len); fd 73 sandbox/linux/suid/process_util_linux.c close(fd); fd 44 third_party/ashmem/ashmem-dev.c int fd, ret; fd 46 third_party/ashmem/ashmem-dev.c fd = open(ASHMEM_DEVICE, O_RDWR); fd 47 third_party/ashmem/ashmem-dev.c if (fd < 0) fd 48 third_party/ashmem/ashmem-dev.c return fd; fd 54 third_party/ashmem/ashmem-dev.c ret = ioctl(fd, ASHMEM_SET_NAME, buf); fd 59 third_party/ashmem/ashmem-dev.c ret = ioctl(fd, ASHMEM_SET_SIZE, size); fd 63 third_party/ashmem/ashmem-dev.c return fd; fd 66 third_party/ashmem/ashmem-dev.c close(fd); fd 70 third_party/ashmem/ashmem-dev.c int ashmem_set_prot_region(int fd, int prot) fd 72 third_party/ashmem/ashmem-dev.c return ioctl(fd, ASHMEM_SET_PROT_MASK, prot); fd 75 third_party/ashmem/ashmem-dev.c int ashmem_pin_region(int fd, size_t offset, size_t len) fd 78 third_party/ashmem/ashmem-dev.c return ioctl(fd, ASHMEM_PIN, &pin); fd 81 third_party/ashmem/ashmem-dev.c int ashmem_unpin_region(int fd, size_t offset, size_t len) fd 84 third_party/ashmem/ashmem-dev.c return ioctl(fd, ASHMEM_UNPIN, &pin); fd 87 third_party/ashmem/ashmem-dev.c int ashmem_get_size_region(int fd) fd 89 third_party/ashmem/ashmem-dev.c return ioctl(fd, ASHMEM_GET_SIZE, NULL); fd 94 third_party/ashmem/ashmem-dev.c const int fd = open(ASHMEM_DEVICE, O_RDWR); fd 95 third_party/ashmem/ashmem-dev.c if (fd < 0) fd 96 third_party/ashmem/ashmem-dev.c return fd; fd 97 third_party/ashmem/ashmem-dev.c const int ret = ioctl(fd, ASHMEM_PURGE_ALL_CACHES, 0); fd 98 third_party/ashmem/ashmem-dev.c close(fd); fd 20 third_party/ashmem/ashmem.h int ashmem_set_prot_region(int fd, int prot); fd 21 third_party/ashmem/ashmem.h int ashmem_pin_region(int fd, size_t offset, size_t len); fd 22 third_party/ashmem/ashmem.h int ashmem_unpin_region(int fd, size_t offset, size_t len); fd 23 third_party/ashmem/ashmem.h int ashmem_get_size_region(int fd); fd 60 third_party/bspatch/mbspatch.cc MBS_ReadHeader(int fd, MBSPatchHeader *header) fd 62 third_party/bspatch/mbspatch.cc int s = read(fd, header, sizeof(MBSPatchHeader)); fd 74 third_party/bspatch/mbspatch.cc s = fstat(fd, &hs); fd 78 third_party/bspatch/mbspatch.h int MBS_ReadHeader(int fd, MBSPatchHeader *header); fd 350 third_party/libevent/buffer.c evbuffer_read(struct evbuffer *buf, int fd, int howmuch) fd 359 third_party/libevent/buffer.c if (ioctlsocket(fd, FIONREAD, &lng) == -1 || (n=lng) <= 0) { fd 361 third_party/libevent/buffer.c if (ioctl(fd, FIONREAD, &n) == -1 || n <= 0) { fd 389 third_party/libevent/buffer.c n = read(fd, p, howmuch); fd 391 third_party/libevent/buffer.c n = recv(fd, p, howmuch, 0); fd 408 third_party/libevent/buffer.c evbuffer_write(struct evbuffer *buffer, int fd) fd 413 third_party/libevent/buffer.c n = write(fd, buffer->buffer, buffer->off); fd 415 third_party/libevent/buffer.c n = send(fd, buffer->buffer, buffer->off, 0); fd 106 third_party/libevent/devpoll.c devpoll_queue(struct devpollop *devpollop, int fd, int events) { fd 119 third_party/libevent/devpoll.c pfd->fd = fd; fd 252 third_party/libevent/devpoll.c assert(events[i].fd < devpollop->nfds); fd 253 third_party/libevent/devpoll.c evdp = &devpollop->fds[events[i].fd]; fd 294 third_party/libevent/devpoll.c int fd, events; fd 299 third_party/libevent/devpoll.c fd = ev->ev_fd; fd 300 third_party/libevent/devpoll.c if (fd >= devpollop->nfds) { fd 302 third_party/libevent/devpoll.c if (devpoll_recalc(ev->ev_base, devpollop, fd) == -1) fd 305 third_party/libevent/devpoll.c evdp = &devpollop->fds[fd]; fd 331 third_party/libevent/devpoll.c if (devpoll_queue(devpollop, fd, events) != 0) fd 348 third_party/libevent/devpoll.c int fd, events; fd 354 third_party/libevent/devpoll.c fd = ev->ev_fd; fd 355 third_party/libevent/devpoll.c if (fd >= devpollop->nfds) fd 357 third_party/libevent/devpoll.c evdp = &devpollop->fds[fd]; fd 372 third_party/libevent/devpoll.c if (devpoll_queue(devpollop, fd, POLLREMOVE) != 0) fd 383 third_party/libevent/devpoll.c devpoll_queue(devpollop, fd, POLLOUT); fd 387 third_party/libevent/devpoll.c devpoll_queue(devpollop, fd, POLLIN); fd 217 third_party/libevent/epoll.c int fd = events[i].data.fd; fd 219 third_party/libevent/epoll.c if (fd < 0 || fd >= epollop->nfds) fd 221 third_party/libevent/epoll.c evep = &epollop->fds[fd]; fd 269 third_party/libevent/epoll.c int fd, op, events; fd 274 third_party/libevent/epoll.c fd = ev->ev_fd; fd 275 third_party/libevent/epoll.c if (fd >= epollop->nfds) { fd 277 third_party/libevent/epoll.c if (epoll_recalc(ev->ev_base, epollop, fd) == -1) fd 280 third_party/libevent/epoll.c evep = &epollop->fds[fd]; fd 297 third_party/libevent/epoll.c epev.data.fd = fd; fd 317 third_party/libevent/epoll.c int fd, events, op; fd 323 third_party/libevent/epoll.c fd = ev->ev_fd; fd 324 third_party/libevent/epoll.c if (fd >= epollop->nfds) fd 326 third_party/libevent/epoll.c evep = &epollop->fds[fd]; fd 349 third_party/libevent/epoll.c epev.data.fd = fd; fd 356 third_party/libevent/epoll.c if (epoll_ctl(epollop->epfd, op, fd, &epev) == -1) fd 42 third_party/libevent/epoll_sub.c epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) fd 45 third_party/libevent/epoll_sub.c return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); fd 93 third_party/libevent/evbuffer.c bufferevent_readcb(int fd, short event, void *arg) fd 122 third_party/libevent/evbuffer.c res = evbuffer_read(bufev->input, fd, howmuch); fd 164 third_party/libevent/evbuffer.c bufferevent_writecb(int fd, short event, void *arg) fd 176 third_party/libevent/evbuffer.c res = evbuffer_write(bufev->output, fd); fd 234 third_party/libevent/evbuffer.c bufferevent_new(int fd, evbuffercb readcb, evbuffercb writecb, fd 253 third_party/libevent/evbuffer.c event_set(&bufev->ev_read, fd, EV_READ, bufferevent_readcb, bufev); fd 254 third_party/libevent/evbuffer.c event_set(&bufev->ev_write, fd, EV_WRITE, bufferevent_writecb, bufev); fd 280 third_party/libevent/evbuffer.c bufferevent_setfd(struct bufferevent *bufev, int fd) fd 285 third_party/libevent/evbuffer.c event_set(&bufev->ev_read, fd, EV_READ, bufferevent_readcb, bufev); fd 286 third_party/libevent/evbuffer.c event_set(&bufev->ev_write, fd, EV_WRITE, bufferevent_writecb, bufev); fd 322 third_party/libevent/evdns.c static void nameserver_ready_callback(int fd, short events, void *arg); fd 337 third_party/libevent/evdns.c static void server_port_ready_callback(int fd, short events, void *arg); fd 449 third_party/libevent/evdns.c nameserver_prod_callback(int fd, short events, void *arg) { fd 451 third_party/libevent/evdns.c (void)fd; fd 1268 third_party/libevent/evdns.c nameserver_ready_callback(int fd, short events, void *arg) { fd 1270 third_party/libevent/evdns.c (void)fd; fd 1286 third_party/libevent/evdns.c server_port_ready_callback(int fd, short events, void *arg) { fd 1288 third_party/libevent/evdns.c (void) fd; fd 1883 third_party/libevent/evdns.c evdns_request_timeout_callback(int fd, short events, void *arg) { fd 1885 third_party/libevent/evdns.c (void) fd; fd 2746 third_party/libevent/evdns.c int fd, n, r; fd 2753 third_party/libevent/evdns.c fd = open(filename, O_RDONLY); fd 2754 third_party/libevent/evdns.c if (fd < 0) { fd 2759 third_party/libevent/evdns.c if (fstat(fd, &st)) { err = 2; goto out1; } fd 2771 third_party/libevent/evdns.c while ((r = read(fd, resolv+n, (size_t)st.st_size-n)) > 0) { fd 2805 third_party/libevent/evdns.c close(fd); fd 416 third_party/libevent/event.c event_loopexit_cb(int fd, short what, void *arg) fd 551 third_party/libevent/event.c event_once_cb(int fd, short events, void *arg) fd 555 third_party/libevent/event.c (*eonce->cb)(fd, events, eonce->arg); fd 561 third_party/libevent/event.c event_once(int fd, short events, fd 564 third_party/libevent/event.c return event_base_once(current_base, fd, events, callback, arg, tv); fd 569 third_party/libevent/event.c event_base_once(struct event_base *base, int fd, short events, fd 596 third_party/libevent/event.c event_set(&eonce->ev, fd, events, event_once_cb, eonce); fd 615 third_party/libevent/event.c event_set(struct event *ev, int fd, short events, fd 623 third_party/libevent/event.c ev->ev_fd = fd; fd 588 third_party/libevent/event.h int event_base_once(struct event_base *base, int fd, short events, fd 813 third_party/libevent/event.h struct bufferevent *bufferevent_new(int fd, fd 869 third_party/libevent/event.h void bufferevent_setfd(struct bufferevent *bufev, int fd); fd 105 third_party/libevent/evhttp.h int evhttp_accept_socket(struct evhttp *http, int fd); fd 263 third_party/libevent/evport.c reassociate(struct evport_data *epdp, struct fd_info *fdip, int fd) fd 269 third_party/libevent/evport.c fd, sysevents, NULL) == -1) { fd 325 third_party/libevent/evport.c int fd = FDI_HAS_READ(fdi) ? fdi->fdi_revt->ev_fd : fd 327 third_party/libevent/evport.c reassociate(epdp, fdi, fd); fd 354 third_party/libevent/evport.c int fd = (int) pevt->portev_object; fd 358 third_party/libevent/evport.c epdp->ed_pending[i] = fd; fd 370 third_party/libevent/evport.c assert(epdp->ed_nevents > fd); fd 371 third_party/libevent/evport.c fdi = &(epdp->ed_fds[fd]); fd 650 third_party/libevent/evrpc.c evrpc_request_timeout(int fd, short what, void *arg) fd 65 third_party/libevent/evutil.c evutil_socketpair(int family, int type, int protocol, int fd[2]) fd 68 third_party/libevent/evutil.c return socketpair(family, type, protocol, fd); fd 93 third_party/libevent/evutil.c if (!fd) { fd 140 third_party/libevent/evutil.c fd[0] = connector; fd 141 third_party/libevent/evutil.c fd[1] = acceptor; fd 163 third_party/libevent/evutil.c evutil_make_socket_nonblocking(int fd) fd 168 third_party/libevent/evutil.c ioctlsocket(fd, FIONBIO, (unsigned long*) &nonblocking); fd 171 third_party/libevent/evutil.c if (fcntl(fd, F_SETFL, O_NONBLOCK) == -1) { fd 57 third_party/libevent/http-internal.h int fd; fd 199 third_party/libevent/http.c static int socket_connect(int fd, const char *address, unsigned short port); fd 351 third_party/libevent/http.c event_set(&evcon->ev, evcon->fd, EV_WRITE, evhttp_write, evcon); fd 675 third_party/libevent/http.c evhttp_write(int fd, short what, void *arg) fd 685 third_party/libevent/http.c n = evbuffer_write(evcon->output_buffer, fd); fd 897 third_party/libevent/http.c event_set(&evcon->ev, evcon->fd, EV_READ, evhttp_read, evcon); fd 910 third_party/libevent/http.c evhttp_read(int fd, short what, void *arg) fd 921 third_party/libevent/http.c n = evbuffer_read(buf, fd, -1); fd 923 third_party/libevent/http.c event_debug(("%s: got %d on %d\n", __func__, n, fd)); fd 988 third_party/libevent/http.c if (evcon->fd != -1) { fd 1010 third_party/libevent/http.c if (evcon->fd != -1) fd 1011 third_party/libevent/http.c EVUTIL_CLOSESOCKET(evcon->fd); fd 1077 third_party/libevent/http.c if (evcon->fd != -1) { fd 1082 third_party/libevent/http.c EVUTIL_CLOSESOCKET(evcon->fd); fd 1083 third_party/libevent/http.c evcon->fd = -1; fd 1094 third_party/libevent/http.c evhttp_detect_close_cb(int fd, short what, void *arg) fd 1107 third_party/libevent/http.c event_set(&evcon->close_ev, evcon->fd, EV_READ, fd 1121 third_party/libevent/http.c evhttp_connection_retry(int fd, short what, void *arg) fd 1134 third_party/libevent/http.c evhttp_connectioncb(int fd, short what, void *arg) fd 1142 third_party/libevent/http.c __func__, evcon->address, evcon->port, evcon->fd)); fd 1147 third_party/libevent/http.c if (getsockopt(evcon->fd, SOL_SOCKET, SO_ERROR, (void*)&error, fd 1150 third_party/libevent/http.c __func__, evcon->address, evcon->port, evcon->fd)); fd 1156 third_party/libevent/http.c __func__, evcon->address, evcon->port, evcon->fd, fd 1163 third_party/libevent/http.c __func__, evcon->address, evcon->port, evcon->fd)); fd 1604 third_party/libevent/http.c __func__, evcon->fd)); fd 1622 third_party/libevent/http.c int fd = evcon->fd; fd 1627 third_party/libevent/http.c event_debug(("%s: bad header lines on %d\n", __func__, fd)); fd 1641 third_party/libevent/http.c __func__, fd)); fd 1654 third_party/libevent/http.c __func__, req->remote_host, fd)); fd 1660 third_party/libevent/http.c event_warnx("%s: bad header on %d", __func__, fd); fd 1688 third_party/libevent/http.c evcon->fd = -1; fd 1769 third_party/libevent/http.c evcon->fd = bind_socket( fd 1771 third_party/libevent/http.c if (evcon->fd == -1) { fd 1777 third_party/libevent/http.c if (socket_connect(evcon->fd, evcon->address, evcon->port) == -1) { fd 1778 third_party/libevent/http.c EVUTIL_CLOSESOCKET(evcon->fd); evcon->fd = -1; fd 1783 third_party/libevent/http.c event_set(&evcon->ev, evcon->fd, EV_WRITE, evhttp_connectioncb, evcon); fd 1849 third_party/libevent/http.c event_set(&evcon->ev, evcon->fd, EV_READ, evhttp_read, evcon); fd 2233 third_party/libevent/http.c accept_socket(int fd, short what, void *arg) fd 2240 third_party/libevent/http.c if ((nfd = accept(fd, (struct sockaddr *)&ss, &addrlen)) == -1) { fd 2254 third_party/libevent/http.c int fd; fd 2257 third_party/libevent/http.c if ((fd = bind_socket(address, port, 1 /*reuse*/)) == -1) fd 2260 third_party/libevent/http.c if (listen(fd, 128) == -1) { fd 2262 third_party/libevent/http.c EVUTIL_CLOSESOCKET(fd); fd 2266 third_party/libevent/http.c res = evhttp_accept_socket(http, fd); fd 2276 third_party/libevent/http.c evhttp_accept_socket(struct evhttp *http, int fd) fd 2289 third_party/libevent/http.c event_set(ev, fd, EV_READ | EV_PERSIST, accept_socket, http); fd 2356 third_party/libevent/http.c int fd; fd 2362 third_party/libevent/http.c fd = bound->bind_ev.ev_fd; fd 2364 third_party/libevent/http.c EVUTIL_CLOSESOCKET(fd); fd 2534 third_party/libevent/http.c int fd, struct sockaddr *sa, socklen_t salen) fd 2547 third_party/libevent/http.c __func__, hostname, portname, fd)); fd 2562 third_party/libevent/http.c evcon->fd = fd; fd 2592 third_party/libevent/http.c evhttp_get_request(struct evhttp *http, int fd, fd 2597 third_party/libevent/http.c evcon = evhttp_get_request_connection(http, fd, sa, salen); fd 2684 third_party/libevent/http.c int fd, on = 1, r; fd 2688 third_party/libevent/http.c fd = socket(AF_INET, SOCK_STREAM, 0); fd 2689 third_party/libevent/http.c if (fd == -1) { fd 2694 third_party/libevent/http.c if (evutil_make_socket_nonblocking(fd) < 0) fd 2698 third_party/libevent/http.c if (fcntl(fd, F_SETFD, 1) == -1) { fd 2704 third_party/libevent/http.c setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, sizeof(on)); fd 2706 third_party/libevent/http.c setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, fd 2711 third_party/libevent/http.c r = bind(fd, ai->ai_addr, ai->ai_addrlen); fd 2716 third_party/libevent/http.c return (fd); fd 2720 third_party/libevent/http.c EVUTIL_CLOSESOCKET(fd); fd 2766 third_party/libevent/http.c int fd; fd 2778 third_party/libevent/http.c fd = bind_socket_ai(aitop, reuse); fd 2786 third_party/libevent/http.c return (fd); fd 2790 third_party/libevent/http.c socket_connect(int fd, const char *address, unsigned short port) fd 2801 third_party/libevent/http.c if (connect(fd, ai->ai_addr, ai->ai_addrlen) == -1) { fd 112 third_party/libevent/poll.c assert(pop->event_set[idx].fd == i); fd 128 third_party/libevent/poll.c assert(pop->idxplus1_by_fd[pfd->fd] == i+1); fd 286 third_party/libevent/poll.c pfd->fd = ev->ev_fd; fd 355 third_party/libevent/poll.c pop->idxplus1_by_fd[pop->event_set[i].fd] = i + 1; fd 28 third_party/libevent/sample/event-test.c fifo_read(int fd, short event, void *arg) fd 41 third_party/libevent/sample/event-test.c fd, event, arg); fd 43 third_party/libevent/sample/event-test.c len = ReadFile((HANDLE)fd, buf, sizeof(buf) - 1, &dwBytesRead, NULL); fd 54 third_party/libevent/sample/event-test.c len = read(fd, buf, sizeof(buf) - 1); fd 33 third_party/libevent/sample/signal-test.c signal_cb(int fd, short event, void *arg) fd 33 third_party/libevent/sample/time-test.c timeout_cb(int fd, short event, void *arg) fd 72 third_party/libevent/signal.c evsignal_cb(int fd, short what, void *arg) fd 81 third_party/libevent/signal.c n = recv(fd, signals, sizeof(signals), 0); fd 67 third_party/libevent/test/bench.c read_cb(int fd, short which, void *arg) fd 72 third_party/libevent/test/bench.c count += read(fd, &ch, sizeof(ch)); fd 88 third_party/libevent/test/regress.c #define write(fd,buf,len) send((fd),(buf),(len),0) fd 89 third_party/libevent/test/regress.c #define read(fd,buf,len) recv((fd),(buf),(len),0) fd 93 third_party/libevent/test/regress.c simple_read_cb(int fd, short event, void *arg) fd 101 third_party/libevent/test/regress.c len = read(fd, buf, sizeof(buf)); fd 115 third_party/libevent/test/regress.c simple_write_cb(int fd, short event, void *arg) fd 122 third_party/libevent/test/regress.c len = write(fd, TEST1, strlen(TEST1) + 1); fd 130 third_party/libevent/test/regress.c multiple_write_cb(int fd, short event, void *arg) fd 139 third_party/libevent/test/regress.c len = write(fd, wbuf + woff, len); fd 150 third_party/libevent/test/regress.c shutdown(fd, SHUT_WR); fd 163 third_party/libevent/test/regress.c multiple_read_cb(int fd, short event, void *arg) fd 168 third_party/libevent/test/regress.c len = read(fd, rbuf + roff, sizeof(rbuf) - roff); fd 185 third_party/libevent/test/regress.c timeout_cb(int fd, short event, void *arg) fd 212 third_party/libevent/test/regress.c signal_cb(int fd, short event, void *arg) fd 227 third_party/libevent/test/regress.c combined_read_cb(int fd, short event, void *arg) fd 233 third_party/libevent/test/regress.c len = read(fd, buf, sizeof(buf)); fd 245 third_party/libevent/test/regress.c combined_write_cb(int fd, short event, void *arg) fd 255 third_party/libevent/test/regress.c len = write(fd, buf, len); fd 259 third_party/libevent/test/regress.c shutdown(fd, SHUT_WR); fd 516 third_party/libevent/test/regress.c child_signal_cb(int fd, short event, void *arg) fd 837 third_party/libevent/test/regress.c timeout_cb_swp(int fd, short event, void *arg) fd 970 third_party/libevent/test/regress.c break_cb(int fd, short events, void *arg) fd 977 third_party/libevent/test/regress.c fail_cb(int fd, short events, void *arg) fd 1208 third_party/libevent/test/regress.c test_priorities_cb(int fd, short what, void *arg) fd 1279 third_party/libevent/test/regress.c test_multiple_cb(int fd, short event, void *arg) fd 1315 third_party/libevent/test/regress.c read_once_cb(int fd, short event, void *arg) fd 1320 third_party/libevent/test/regress.c len = read(fd, buf, sizeof(buf)); fd 122 third_party/libevent/test/regress_http.c int fd; fd 146 third_party/libevent/test/regress_http.c fd = socket(AF_INET, SOCK_STREAM, 0); fd 147 third_party/libevent/test/regress_http.c if (fd == -1) fd 150 third_party/libevent/test/regress_http.c if (connect(fd, sa, slen) == -1) fd 157 third_party/libevent/test/regress_http.c return (fd); fd 257 third_party/libevent/test/regress_http.c http_chunked_trickle_cb(int fd, short events, void *arg) fd 295 third_party/libevent/test/regress_http.c http_complete_write(int fd, short what, void *arg) fd 309 third_party/libevent/test/regress_http.c int fd; fd 324 third_party/libevent/test/regress_http.c fd = http_connect("127.0.0.1", port); fd 327 third_party/libevent/test/regress_http.c bev = bufferevent_new(fd, http_readcb, http_writecb, fd 349 third_party/libevent/test/regress_http.c EVUTIL_CLOSESOCKET(fd); fd 351 third_party/libevent/test/regress_http.c fd = http_connect("127.0.0.1", port + 1); fd 354 third_party/libevent/test/regress_http.c bev = bufferevent_new(fd, http_readcb, http_writecb, fd 368 third_party/libevent/test/regress_http.c EVUTIL_CLOSESOCKET(fd); fd 383 third_party/libevent/test/regress_http.c http_delay_reply(int fd, short what, void *arg) fd 812 third_party/libevent/test/regress_http.c int fd; fd 821 third_party/libevent/test/regress_http.c fd = http_connect("127.0.0.1", port); fd 824 third_party/libevent/test/regress_http.c bev = bufferevent_new(fd, http_failure_readcb, http_writecb, fd 834 third_party/libevent/test/regress_http.c EVUTIL_CLOSESOCKET(fd); fd 865 third_party/libevent/test/regress_http.c close_detect_launch(int fd, short what, void *arg) fd 1079 third_party/libevent/test/regress_http.c int fd; fd 1096 third_party/libevent/test/regress_http.c fd = http_connect("127.0.0.1", port); fd 1099 third_party/libevent/test/regress_http.c bev = bufferevent_new(fd, http_readcb, http_writecb, fd 1114 third_party/libevent/test/regress_http.c EVUTIL_CLOSESOCKET(fd); fd 1270 third_party/libevent/test/regress_http.c int fd; fd 1283 third_party/libevent/test/regress_http.c fd = http_connect("127.0.0.1", port); fd 1286 third_party/libevent/test/regress_http.c bev = bufferevent_new(fd, fd 1356 third_party/libevent/test/regress_http.c int fd; fd 1365 third_party/libevent/test/regress_http.c fd = http_connect("127.0.0.1", port); fd 1368 third_party/libevent/test/regress_http.c bev = bufferevent_new(fd, http_readcb, http_writecb, fd 1386 third_party/libevent/test/regress_http.c EVUTIL_CLOSESOCKET(fd); fd 37 third_party/libevent/test/test-eof.c read_cb(int fd, short event, void *arg) fd 42 third_party/libevent/test/test-eof.c len = recv(fd, buf, sizeof(buf), 0); fd 46 third_party/libevent/test/test-time.c time_cb(int fd, short event, void *arg) fd 39 third_party/libevent/test/test-weof.c write_cb(int fd, short event, void *arg) fd 44 third_party/libevent/test/test-weof.c len = send(fd, test, strlen(test) + 1, 0); fd 1948 third_party/libusb/src/libusb/io.c int fd = pollfd->fd; fd 1950 third_party/libusb/src/libusb/io.c fds[i].fd = fd; fd 2422 third_party/libusb/src/libusb/io.c int usbi_add_pollfd(struct libusb_context *ctx, int fd, short events) fd 2428 third_party/libusb/src/libusb/io.c usbi_dbg("add fd %d events %d", fd, events); fd 2429 third_party/libusb/src/libusb/io.c ipollfd->pollfd.fd = fd; fd 2436 third_party/libusb/src/libusb/io.c ctx->fd_added_cb(fd, events, ctx->fd_cb_user_data); fd 2441 third_party/libusb/src/libusb/io.c void usbi_remove_pollfd(struct libusb_context *ctx, int fd) fd 2446 third_party/libusb/src/libusb/io.c usbi_dbg("remove fd %d", fd); fd 2449 third_party/libusb/src/libusb/io.c if (ipollfd->pollfd.fd == fd) { fd 2455 third_party/libusb/src/libusb/io.c usbi_dbg("couldn't find fd %d to remove", fd); fd 2464 third_party/libusb/src/libusb/io.c ctx->fd_removed_cb(fd, ctx->fd_cb_user_data); fd 1791 third_party/libusb/src/libusb/libusb.h int fd; fd 1810 third_party/libusb/src/libusb/libusb.h typedef void (LIBUSB_CALL *libusb_pollfd_added_cb)(int fd, short events, fd 1822 third_party/libusb/src/libusb/libusb.h typedef void (LIBUSB_CALL *libusb_pollfd_removed_cb)(int fd, void *user_data); fd 465 third_party/libusb/src/libusb/libusbi.h int usbi_add_pollfd(struct libusb_context *ctx, int fd, short events); fd 466 third_party/libusb/src/libusb/libusbi.h void usbi_remove_pollfd(struct libusb_context *ctx, int fd); fd 1817 third_party/libusb/src/libusb/os/darwin_usb.c usbi_dbg ("checking fd %i with revents = %x", pollfd->fd, pollfd->revents); fd 1830 third_party/libusb/src/libusb/os/darwin_usb.c ret = read (pollfd->fd, &message, sizeof (message)); fd 66 third_party/libusb/src/libusb/os/linux_netlink.c static int set_fd_cloexec_nb (int fd) fd 308 third_party/libusb/src/libusb/os/linux_netlink.c { .fd = netlink_control_pipe[0], fd 310 third_party/libusb/src/libusb/os/linux_netlink.c { .fd = linux_netlink_socket, fd 167 third_party/libusb/src/libusb/os/linux_udev.c {.fd = udev_control_pipe[0], fd 169 third_party/libusb/src/libusb/os/linux_udev.c {.fd = udev_monitor_fd, fd 147 third_party/libusb/src/libusb/os/linux_usbfs.c int fd; fd 186 third_party/libusb/src/libusb/os/linux_usbfs.c int fd; fd 195 third_party/libusb/src/libusb/os/linux_usbfs.c fd = open(path, mode); fd 196 third_party/libusb/src/libusb/os/linux_usbfs.c if (fd != -1) fd 197 third_party/libusb/src/libusb/os/linux_usbfs.c return fd; /* Success */ fd 503 third_party/libusb/src/libusb/os/linux_usbfs.c int fd; fd 507 third_party/libusb/src/libusb/os/linux_usbfs.c fd = open(filename, O_RDONLY); fd 508 third_party/libusb/src/libusb/os/linux_usbfs.c if (fd < 0) { fd 510 third_party/libusb/src/libusb/os/linux_usbfs.c "open %s failed ret=%d errno=%d", filename, fd, errno); fd 514 third_party/libusb/src/libusb/os/linux_usbfs.c return fd; fd 569 third_party/libusb/src/libusb/os/linux_usbfs.c int fd; fd 572 third_party/libusb/src/libusb/os/linux_usbfs.c fd = _open_sysfs_attr(dev, "bConfigurationValue"); fd 573 third_party/libusb/src/libusb/os/linux_usbfs.c if (fd < 0) fd 574 third_party/libusb/src/libusb/os/linux_usbfs.c return fd; fd 576 third_party/libusb/src/libusb/os/linux_usbfs.c r = read(fd, tmp, sizeof(tmp)); fd 577 third_party/libusb/src/libusb/os/linux_usbfs.c close(fd); fd 823 third_party/libusb/src/libusb/os/linux_usbfs.c static int usbfs_get_active_config(struct libusb_device *dev, int fd) fd 838 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_CONTROL, &ctrl); fd 858 third_party/libusb/src/libusb/os/linux_usbfs.c int fd, speed; fd 887 third_party/libusb/src/libusb/os/linux_usbfs.c fd = _open_sysfs_attr(dev, "descriptors"); fd 889 third_party/libusb/src/libusb/os/linux_usbfs.c fd = _get_usbfs_fd(dev, O_RDONLY, 0); fd 890 third_party/libusb/src/libusb/os/linux_usbfs.c if (fd < 0) fd 891 third_party/libusb/src/libusb/os/linux_usbfs.c return fd; fd 898 third_party/libusb/src/libusb/os/linux_usbfs.c close(fd); fd 906 third_party/libusb/src/libusb/os/linux_usbfs.c r = read(fd, priv->descriptors + priv->descriptors_len, fd 910 third_party/libusb/src/libusb/os/linux_usbfs.c fd, errno); fd 911 third_party/libusb/src/libusb/os/linux_usbfs.c close(fd); fd 917 third_party/libusb/src/libusb/os/linux_usbfs.c close(fd); fd 929 third_party/libusb/src/libusb/os/linux_usbfs.c fd = _get_usbfs_fd(dev, O_RDWR, 1); fd 930 third_party/libusb/src/libusb/os/linux_usbfs.c if (fd < 0) { fd 948 third_party/libusb/src/libusb/os/linux_usbfs.c r = usbfs_get_active_config(dev, fd); fd 970 third_party/libusb/src/libusb/os/linux_usbfs.c close(fd); fd 1267 third_party/libusb/src/libusb/os/linux_usbfs.c hpriv->fd = _get_usbfs_fd(handle->dev, O_RDWR, 0); fd 1268 third_party/libusb/src/libusb/os/linux_usbfs.c if (hpriv->fd < 0) { fd 1269 third_party/libusb/src/libusb/os/linux_usbfs.c if (hpriv->fd == LIBUSB_ERROR_NO_DEVICE) { fd 1280 third_party/libusb/src/libusb/os/linux_usbfs.c return hpriv->fd; fd 1283 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(hpriv->fd, IOCTL_USBFS_GET_CAPABILITIES, &hpriv->caps); fd 1296 third_party/libusb/src/libusb/os/linux_usbfs.c return usbi_add_pollfd(HANDLE_CTX(handle), hpriv->fd, POLLOUT); fd 1301 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(dev_handle)->fd; fd 1302 third_party/libusb/src/libusb/os/linux_usbfs.c usbi_remove_pollfd(HANDLE_CTX(dev_handle), fd); fd 1303 third_party/libusb/src/libusb/os/linux_usbfs.c close(fd); fd 1315 third_party/libusb/src/libusb/os/linux_usbfs.c _device_handle_priv(handle)->fd); fd 1331 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1332 third_party/libusb/src/libusb/os/linux_usbfs.c int r = ioctl(fd, IOCTL_USBFS_SETCONFIG, &config); fd 1353 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1354 third_party/libusb/src/libusb/os/linux_usbfs.c int r = ioctl(fd, IOCTL_USBFS_CLAIMINTF, &iface); fd 1372 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1373 third_party/libusb/src/libusb/os/linux_usbfs.c int r = ioctl(fd, IOCTL_USBFS_RELEASEINTF, &iface); fd 1388 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1394 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_SETINTF, &setintf); fd 1412 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1414 third_party/libusb/src/libusb/os/linux_usbfs.c int r = ioctl(fd, IOCTL_USBFS_CLEAR_HALT, &_endpoint); fd 1431 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1446 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_RESET, NULL); fd 1485 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1490 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_GETDRIVER, &getdrv); fd 1508 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1518 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_GETDRIVER, &getdrv); fd 1522 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_IOCTL, &command); fd 1542 third_party/libusb/src/libusb/os/linux_usbfs.c int fd = _device_handle_priv(handle)->fd; fd 1550 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_IOCTL, &command); fd 1575 third_party/libusb/src/libusb/os/linux_usbfs.c int r, fd = _device_handle_priv(handle)->fd; fd 1580 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(fd, IOCTL_USBFS_DISCONNECT_CLAIM, &dc); fd 1656 third_party/libusb/src/libusb/os/linux_usbfs.c if (0 == ioctl(dpriv->fd, IOCTL_USBFS_DISCARDURB, urb)) fd 1799 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urb); fd 1962 third_party/libusb/src/libusb/os/linux_usbfs.c int r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urbs[i]); fd 2038 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urb); fd 2457 third_party/libusb/src/libusb/os/linux_usbfs.c r = ioctl(hpriv->fd, IOCTL_USBFS_REAPURBNDELAY, &urb); fd 2508 third_party/libusb/src/libusb/os/linux_usbfs.c if (hpriv->fd == pollfd->fd) fd 2513 third_party/libusb/src/libusb/os/linux_usbfs.c usbi_remove_pollfd(HANDLE_CTX(handle), hpriv->fd); fd 36 third_party/libusb/src/libusb/os/openbsd_usb.c int fd; /* device file descriptor */ fd 153 third_party/libusb/src/libusb/os/openbsd_usb.c int fd, addr, i, j; fd 160 third_party/libusb/src/libusb/os/openbsd_usb.c if ((fd = open(busnode, O_RDWR)) < 0) { fd 172 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(fd, USB_DEVICEINFO, &di) < 0) fd 192 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 201 third_party/libusb/src/libusb/os/openbsd_usb.c dpriv->fd = -1; fd 207 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(fd, USB_DEVICE_GET_DDESC, &dd) < 0) { fd 224 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 232 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 252 third_party/libusb/src/libusb/os/openbsd_usb.c dpriv->fd = open(devnode, O_RDWR); fd 253 third_party/libusb/src/libusb/os/openbsd_usb.c if (dpriv->fd < 0) fd 256 third_party/libusb/src/libusb/os/openbsd_usb.c usbi_dbg("open %s: fd %d", devnode, dpriv->fd); fd 272 third_party/libusb/src/libusb/os/openbsd_usb.c usbi_dbg("close: fd %d", dpriv->fd); fd 274 third_party/libusb/src/libusb/os/openbsd_usb.c close(dpriv->fd); fd 275 third_party/libusb/src/libusb/os/openbsd_usb.c dpriv->fd = -1; fd 322 third_party/libusb/src/libusb/os/openbsd_usb.c int fd, err; fd 324 third_party/libusb/src/libusb/os/openbsd_usb.c if ((fd = _bus_open(dev->bus_number)) < 0) fd 335 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(fd, USB_DEVICE_GET_FDESC, &udf) < 0) { fd 337 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 340 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 370 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(dpriv->fd, USB_SET_CONFIG, &config) < 0) fd 418 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(dpriv->fd, USB_SET_ALTINTERFACE, &intf) < 0) fd 428 third_party/libusb/src/libusb/os/openbsd_usb.c int fd, err; fd 430 third_party/libusb/src/libusb/os/openbsd_usb.c if ((fd = _bus_open(handle->dev->bus_number)) < 0) fd 442 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(fd, USB_REQUEST, &req) < 0) { fd 444 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 447 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 556 third_party/libusb/src/libusb/os/openbsd_usb.c if (hpriv->pipe[0] == pollfd->fd) fd 563 third_party/libusb/src/libusb/os/openbsd_usb.c usbi_dbg("fd %d is not an event pipe!", pollfd->fd); fd 633 third_party/libusb/src/libusb/os/openbsd_usb.c int fd, len, err; fd 635 third_party/libusb/src/libusb/os/openbsd_usb.c if ((fd = _bus_open(dev->bus_number)) < 0) fd 638 third_party/libusb/src/libusb/os/openbsd_usb.c usbi_dbg("fd %d, addr %d", fd, dev->device_address); fd 643 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(fd, USB_DEVICE_GET_CDESC, &udc) < 0) { fd 645 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 664 third_party/libusb/src/libusb/os/openbsd_usb.c if (ioctl(fd, USB_DEVICE_GET_FDESC, &udf) < 0) { fd 666 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 670 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 715 third_party/libusb/src/libusb/os/openbsd_usb.c int fd, err; fd 717 third_party/libusb/src/libusb/os/openbsd_usb.c if ((fd = _bus_open(transfer->dev_handle->dev->bus_number)) < 0) fd 720 third_party/libusb/src/libusb/os/openbsd_usb.c if ((ioctl(fd, USB_REQUEST, &req)) < 0) { fd 722 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 725 third_party/libusb/src/libusb/os/openbsd_usb.c close(fd); fd 727 third_party/libusb/src/libusb/os/openbsd_usb.c if ((ioctl(dpriv->fd, USB_SET_TIMEOUT, &transfer->timeout)) < 0) fd 730 third_party/libusb/src/libusb/os/openbsd_usb.c if ((ioctl(dpriv->fd, USB_DO_REQUEST, &req)) < 0) fd 747 third_party/libusb/src/libusb/os/openbsd_usb.c int fd, endpt; fd 764 third_party/libusb/src/libusb/os/openbsd_usb.c if (((fd = open(devnode, O_RDWR)) < 0) && (errno == ENXIO)) fd 765 third_party/libusb/src/libusb/os/openbsd_usb.c if ((fd = open(devnode, mode)) < 0) fd 768 third_party/libusb/src/libusb/os/openbsd_usb.c hpriv->endpoints[endpt] = fd; fd 779 third_party/libusb/src/libusb/os/openbsd_usb.c int fd, nr = 1; fd 791 third_party/libusb/src/libusb/os/openbsd_usb.c if ((fd = _access_endpoint(transfer)) < 0) fd 794 third_party/libusb/src/libusb/os/openbsd_usb.c if ((ioctl(fd, USB_SET_TIMEOUT, &transfer->timeout)) < 0) fd 799 third_party/libusb/src/libusb/os/openbsd_usb.c if ((ioctl(fd, USB_SET_SHORT_XFER, &nr)) < 0) fd 802 third_party/libusb/src/libusb/os/openbsd_usb.c nr = read(fd, transfer->buffer, transfer->length); fd 804 third_party/libusb/src/libusb/os/openbsd_usb.c nr = write(fd, transfer->buffer, transfer->length); fd 109 third_party/libusb/src/libusb/os/poll_windows.c if ( (poll_fd[_index].fd < 0) || (poll_fd[_index].handle == INVALID_HANDLE_VALUE) fd 140 third_party/libusb/src/libusb/os/poll_windows.c if ( (poll_fd[_index].fd < 0) || (poll_fd[_index].handle == INVALID_HANDLE_VALUE) fd 174 third_party/libusb/src/libusb/os/poll_windows.c static int _fd_to_index_and_lock(int fd) fd 178 third_party/libusb/src/libusb/os/poll_windows.c if (fd < 0) fd 182 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd == fd) { fd 185 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd != fd) { fd 276 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd < 0) { fd 279 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd >= 0) { fd 285 third_party/libusb/src/libusb/os/poll_windows.c poll_fd[i].fd = i; fd 287 third_party/libusb/src/libusb/os/poll_windows.c filedes[0] = poll_fd[i].fd; fd 350 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd < 0) { fd 353 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd >= 0) { fd 358 third_party/libusb/src/libusb/os/poll_windows.c wfd.fd = i; fd 412 third_party/libusb/src/libusb/os/poll_windows.c _index = _fd_to_index_and_lock(wfd->fd); fd 424 third_party/libusb/src/libusb/os/poll_windows.c struct winfd fd_to_winfd(int fd) fd 431 third_party/libusb/src/libusb/os/poll_windows.c if (fd < 0) fd 435 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd == fd) { fd 438 third_party/libusb/src/libusb/os/poll_windows.c if (poll_fd[i].fd != fd) { fd 539 third_party/libusb/src/libusb/os/poll_windows.c _index = _fd_to_index_and_lock(fds[i].fd); fd 540 third_party/libusb/src/libusb/os/poll_windows.c poll_dbg("fd[%d]=%d: (overlapped=%p) got events %04X", i, poll_fd[_index].fd, poll_fd[_index].overlapped, fds[i].events); fd 601 third_party/libusb/src/libusb/os/poll_windows.c _index = _fd_to_index_and_lock(fds[i].fd); fd 629 third_party/libusb/src/libusb/os/poll_windows.c int usbi_close(int fd) fd 636 third_party/libusb/src/libusb/os/poll_windows.c _index = _fd_to_index_and_lock(fd); fd 651 third_party/libusb/src/libusb/os/poll_windows.c ssize_t usbi_write(int fd, const void *buf, size_t count) fd 663 third_party/libusb/src/libusb/os/poll_windows.c _index = _fd_to_index_and_lock(fd); fd 687 third_party/libusb/src/libusb/os/poll_windows.c ssize_t usbi_read(int fd, void *buf, size_t count) fd 700 third_party/libusb/src/libusb/os/poll_windows.c _index = _fd_to_index_and_lock(fd); fd 62 third_party/libusb/src/libusb/os/poll_windows.h int fd; /* file descriptor */ fd 78 third_party/libusb/src/libusb/os/poll_windows.h int fd; // what's exposed to libusb core fd 89 third_party/libusb/src/libusb/os/poll_windows.h ssize_t usbi_write(int fd, const void *buf, size_t count); fd 90 third_party/libusb/src/libusb/os/poll_windows.h ssize_t usbi_read(int fd, void *buf, size_t count); fd 91 third_party/libusb/src/libusb/os/poll_windows.h int usbi_close(int fd); fd 98 third_party/libusb/src/libusb/os/poll_windows.h struct winfd fd_to_winfd(int fd); fd 597 third_party/libusb/src/libusb/os/wince_usb.c struct winfd wfd = fd_to_winfd(transfer_priv->pollable_fd.fd); fd 647 third_party/libusb/src/libusb/os/wince_usb.c if (wfd.fd < 0) { fd 670 third_party/libusb/src/libusb/os/wince_usb.c usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, direction_in ? POLLIN : POLLOUT); fd 823 third_party/libusb/src/libusb/os/wince_usb.c usbi_dbg("checking fd %d with revents = %04x", fds[i].fd, fds[i].revents); fd 836 third_party/libusb/src/libusb/os/wince_usb.c if (transfer_priv->pollable_fd.fd == fds[i].fd) { fd 846 third_party/libusb/src/libusb/os/wince_usb.c usbi_remove_pollfd(ctx, transfer_priv->pollable_fd.fd); fd 1942 third_party/libusb/src/libusb/os/windows_usb.c usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, fd 1962 third_party/libusb/src/libusb/os/windows_usb.c usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, fd 1982 third_party/libusb/src/libusb/os/windows_usb.c usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, POLLIN); fd 2112 third_party/libusb/src/libusb/os/windows_usb.c usbi_dbg("checking fd %d with revents = %04x", fds[i].fd, fds[i].revents); fd 2125 third_party/libusb/src/libusb/os/windows_usb.c if (transfer_priv->pollable_fd.fd == fds[i].fd) { fd 2144 third_party/libusb/src/libusb/os/windows_usb.c usbi_remove_pollfd(ctx, transfer_priv->pollable_fd.fd); fd 2895 third_party/libusb/src/libusb/os/windows_usb.c if (wfd.fd < 0) { fd 2984 third_party/libusb/src/libusb/os/windows_usb.c if (wfd.fd < 0) { fd 3103 third_party/libusb/src/libusb/os/windows_usb.c for (wfd = handle_to_winfd(winusb_handle); wfd.fd > 0;) fd 3106 third_party/libusb/src/libusb/os/windows_usb.c usbi_remove_pollfd(ctx, wfd.fd); fd 3915 third_party/libusb/src/libusb/os/windows_usb.c if (wfd.fd < 0) { fd 4022 third_party/libusb/src/libusb/os/windows_usb.c if (wfd.fd < 0) { fd 53 third_party/libva/va/drm/va_drm.h vaGetDisplayDRM(int fd); fd 33 third_party/libva/va/drm/va_drm_auth.h va_drm_is_authenticated(int fd); fd 37 third_party/libva/va/drm/va_drm_auth.h va_drm_authenticate(int fd, uint32_t magic); fd 33 third_party/libva/va/drm/va_drm_auth_x11.h va_drm_authenticate_x11(int fd, uint32_t magic); fd 66 third_party/libva/va/va_drmcommon.h int fd; fd 6671 third_party/libxml/src/HTMLparser.c htmlReadFd(int fd, const char *URL, const char *encoding, int options) fd 6677 third_party/libxml/src/HTMLparser.c if (fd < 0) fd 6681 third_party/libxml/src/HTMLparser.c input = xmlParserInputBufferCreateFd(fd, XML_CHAR_ENCODING_NONE); fd 6867 third_party/libxml/src/HTMLparser.c htmlCtxtReadFd(htmlParserCtxtPtr ctxt, int fd, fd 6873 third_party/libxml/src/HTMLparser.c if (fd < 0) fd 6881 third_party/libxml/src/HTMLparser.c input = xmlParserInputBufferCreateFd(fd, XML_CHAR_ENCODING_NONE); fd 957 third_party/libxml/src/catalog.c int fd; fd 959 third_party/libxml/src/catalog.c FILE *fd; fd 978 third_party/libxml/src/catalog.c if ((fd = open(filename, O_RDONLY)) < 0) fd 980 third_party/libxml/src/catalog.c if ((fd = fopen(filename, "rb")) == NULL) fd 988 third_party/libxml/src/catalog.c if (fseek(fd, 0, SEEK_END) || (size = ftell(fd)) == EOF || fseek(fd, 0, SEEK_SET)) { /* File operations denied? ok, just close and return failure */ fd 989 third_party/libxml/src/catalog.c fclose(fd); fd 999 third_party/libxml/src/catalog.c len = read(fd, content, size); fd 1001 third_party/libxml/src/catalog.c len = fread(content, 1, size, fd); fd 1008 third_party/libxml/src/catalog.c close(fd); fd 1010 third_party/libxml/src/catalog.c fclose(fd); fd 210 third_party/libxml/src/include/libxml/HTMLparser.h htmlReadFd (int fd, fd 241 third_party/libxml/src/include/libxml/HTMLparser.h int fd, fd 1139 third_party/libxml/src/include/libxml/parser.h xmlReadFd (int fd, fd 1170 third_party/libxml/src/include/libxml/parser.h int fd, fd 176 third_party/libxml/src/include/libxml/xmlIO.h xmlParserInputBufferCreateFd (int fd, fd 239 third_party/libxml/src/include/libxml/xmlIO.h xmlOutputBufferCreateFd (int fd, fd 334 third_party/libxml/src/include/libxml/xmlreader.h xmlReaderForFd (int fd, fd 369 third_party/libxml/src/include/libxml/xmlreader.h int fd, fd 44 third_party/libxml/src/include/libxml/xmlsave.h xmlSaveToFd (int fd, fd 142 third_party/libxml/src/nanohttp.c SOCKET fd; /* the file descriptor for the socket */ fd 396 third_party/libxml/src/nanohttp.c ret->fd = -1; fd 433 third_party/libxml/src/nanohttp.c if (ctxt->fd >= 0) closesocket(ctxt->fd); fd 434 third_party/libxml/src/nanohttp.c ctxt->fd = -1; fd 459 third_party/libxml/src/nanohttp.c int nsent = send(ctxt->fd, xmt_ptr + total_sent, fd 482 third_party/libxml/src/nanohttp.c if (ctxt->fd > FD_SETSIZE) fd 493 third_party/libxml/src/nanohttp.c FD_SET(ctxt->fd, &wfd); fd 497 third_party/libxml/src/nanohttp.c (void) select(ctxt->fd + 1, NULL, &wfd, NULL, &tv); fd 499 third_party/libxml/src/nanohttp.c p.fd = ctxt->fd; fd 569 third_party/libxml/src/nanohttp.c ctxt->last = recv(ctxt->fd, ctxt->inptr, XML_NANO_HTTP_CHUNK, 0); fd 596 third_party/libxml/src/nanohttp.c p.fd = ctxt->fd; fd 606 third_party/libxml/src/nanohttp.c if (ctxt->fd > FD_SETSIZE) fd 619 third_party/libxml/src/nanohttp.c FD_SET(ctxt->fd, &rfd); fd 625 third_party/libxml/src/nanohttp.c if ((select(ctxt->fd + 1, &rfd, NULL, NULL, &tv) < 1) fd 965 third_party/libxml/src/nanohttp.c p.fd = s; fd 1394 third_party/libxml/src/nanohttp.c ctxt->fd = ret; fd 1617 third_party/libxml/src/nanohttp.c int fd; fd 1625 third_party/libxml/src/nanohttp.c fd = 0; fd 1627 third_party/libxml/src/nanohttp.c fd = open(filename, O_CREAT | O_WRONLY, 00644); fd 1628 third_party/libxml/src/nanohttp.c if (fd < 0) { fd 1640 third_party/libxml/src/nanohttp.c write(fd, buf, len); fd 1644 third_party/libxml/src/nanohttp.c close(fd); fd 1662 third_party/libxml/src/nanohttp.c int fd; fd 1668 third_party/libxml/src/nanohttp.c fd = 0; fd 1670 third_party/libxml/src/nanohttp.c fd = open(filename, O_CREAT | O_WRONLY, 0666); fd 1671 third_party/libxml/src/nanohttp.c if (fd < 0) { fd 1679 third_party/libxml/src/nanohttp.c write(fd, buf, len); fd 1683 third_party/libxml/src/nanohttp.c close(fd); fd 14745 third_party/libxml/src/parser.c xmlReadFd(int fd, const char *URL, const char *encoding, int options) fd 14751 third_party/libxml/src/parser.c if (fd < 0) fd 14754 third_party/libxml/src/parser.c input = xmlParserInputBufferCreateFd(fd, XML_CHAR_ENCODING_NONE); fd 14942 third_party/libxml/src/parser.c xmlCtxtReadFd(xmlParserCtxtPtr ctxt, int fd, fd 14948 third_party/libxml/src/parser.c if (fd < 0) fd 14956 third_party/libxml/src/parser.c input = xmlParserInputBufferCreateFd(fd, XML_CHAR_ENCODING_NONE); fd 648 third_party/libxml/src/runtest.c int fd; fd 657 third_party/libxml/src/runtest.c fd = open(filename, RD_FLAGS); fd 658 third_party/libxml/src/runtest.c if (fd < 0) fd 661 third_party/libxml/src/runtest.c res = read(fd, bytes, 4096); fd 672 third_party/libxml/src/runtest.c close(fd); fd 677 third_party/libxml/src/runtest.c close(fd); fd 682 third_party/libxml/src/runtest.c int fd, res; fd 691 third_party/libxml/src/runtest.c if ((fd = open(filename, RD_FLAGS)) < 0) { fd 695 third_party/libxml/src/runtest.c while ((res = read(fd, &base[siz], info.st_size - siz)) > 0) { fd 698 third_party/libxml/src/runtest.c close(fd); fd 89 third_party/libxml/src/testRelax.c int fd; fd 94 third_party/libxml/src/testRelax.c if ((fd = open(argv[i], O_RDONLY)) < 0) fd 97 third_party/libxml/src/testRelax.c MAP_SHARED, fd, 0) ; fd 85 third_party/libxml/src/testSchemas.c int fd; fd 90 third_party/libxml/src/testSchemas.c if ((fd = open(argv[i], O_RDONLY)) < 0) fd 93 third_party/libxml/src/testSchemas.c MAP_SHARED, fd, 0) ; fd 28246 third_party/libxml/src/testapi.c int fd; /* a file descriptor number */ fd 28254 third_party/libxml/src/testapi.c fd = gen_int(n_fd, 0); fd 28257 third_party/libxml/src/testapi.c ret_val = xmlOutputBufferCreateFd(fd, encoder); fd 28260 third_party/libxml/src/testapi.c des_int(n_fd, fd, 0); fd 28518 third_party/libxml/src/testapi.c int fd; /* a file descriptor number */ fd 28526 third_party/libxml/src/testapi.c fd = gen_int(n_fd, 0); fd 28528 third_party/libxml/src/testapi.c if (fd >= 0) fd = -1; fd 28530 third_party/libxml/src/testapi.c ret_val = xmlParserInputBufferCreateFd(fd, enc); fd 28533 third_party/libxml/src/testapi.c des_int(n_fd, fd, 0); fd 3481 third_party/libxml/src/trio.c int fd; fd 3486 third_party/libxml/src/trio.c fd = *((int *)self->location); fd 3489 third_party/libxml/src/trio.c if (write(fd, &ch, sizeof(char)) == -1) fd 3765 third_party/libxml/src/trio.c TRIO_VARGS3((fd, format, va_alist), fd 3766 third_party/libxml/src/trio.c int fd, fd 3776 third_party/libxml/src/trio.c status = TrioFormat(&fd, 0, TrioOutStreamFileDescriptor, format, &args, NULL); fd 3791 third_party/libxml/src/trio.c TRIO_ARGS3((fd, format, args), fd 3792 third_party/libxml/src/trio.c int fd, fd 3798 third_party/libxml/src/trio.c return TrioFormat(&fd, 0, TrioOutStreamFileDescriptor, format, &args, NULL); fd 3811 third_party/libxml/src/trio.c TRIO_ARGS3((fd, format, args), fd 3812 third_party/libxml/src/trio.c int fd, fd 3818 third_party/libxml/src/trio.c return TrioFormat(&fd, 0, TrioOutStreamFileDescriptor, format, NULL, args); fd 6450 third_party/libxml/src/trio.c int fd = *((int *)self->location); fd 6456 third_party/libxml/src/trio.c size = read(fd, &input, sizeof(char)); fd 6675 third_party/libxml/src/trio.c TRIO_VARGS3((fd, format, va_alist), fd 6676 third_party/libxml/src/trio.c int fd, fd 6686 third_party/libxml/src/trio.c status = TrioScan((trio_pointer_t)&fd, 0, fd 6695 third_party/libxml/src/trio.c TRIO_ARGS3((fd, format, args), fd 6696 third_party/libxml/src/trio.c int fd, fd 6702 third_party/libxml/src/trio.c return TrioScan((trio_pointer_t)&fd, 0, fd 6709 third_party/libxml/src/trio.c TRIO_ARGS3((fd, format, args), fd 6710 third_party/libxml/src/trio.c int fd, fd 6716 third_party/libxml/src/trio.c return TrioScan((trio_pointer_t)&fd, 0, fd 88 third_party/libxml/src/trio.h int trio_dprintf TRIO_PROTO((int fd, TRIO_CONST char *format, ...)); fd 89 third_party/libxml/src/trio.h int trio_vdprintf TRIO_PROTO((int fd, TRIO_CONST char *format, va_list args)); fd 90 third_party/libxml/src/trio.h int trio_dprintfv TRIO_PROTO((int fd, TRIO_CONST char *format, void **args)); fd 130 third_party/libxml/src/trio.h int trio_dscanf TRIO_PROTO((int fd, TRIO_CONST char *format, ...)); fd 131 third_party/libxml/src/trio.h int trio_vdscanf TRIO_PROTO((int fd, TRIO_CONST char *format, va_list args)); fd 132 third_party/libxml/src/trio.h int trio_dscanfv TRIO_PROTO((int fd, TRIO_CONST char *format, void **args)); fd 600 third_party/libxml/src/xmlIO.c FILE *fd = NULL; fd 606 third_party/libxml/src/xmlIO.c fd = _wfopen(wPath, mode ? L"wb" : L"rb"); fd 610 third_party/libxml/src/xmlIO.c if(fd == NULL) fd 611 third_party/libxml/src/xmlIO.c fd = fopen(path, mode ? "wb" : "rb"); fd 613 third_party/libxml/src/xmlIO.c return fd; fd 620 third_party/libxml/src/xmlIO.c gzFile fd; fd 623 third_party/libxml/src/xmlIO.c fd = gzopen (path, mode); fd 624 third_party/libxml/src/xmlIO.c if (fd) fd 625 third_party/libxml/src/xmlIO.c return fd; fd 636 third_party/libxml/src/xmlIO.c fd = gzdopen(d, mode); fd 640 third_party/libxml/src/xmlIO.c return fd; fd 877 third_party/libxml/src/xmlIO.c FILE *fd; fd 883 third_party/libxml/src/xmlIO.c fd = stdin; fd 884 third_party/libxml/src/xmlIO.c return((void *) fd); fd 915 third_party/libxml/src/xmlIO.c fd = xmlWrapOpen(path, 0); fd 917 third_party/libxml/src/xmlIO.c fd = fopen(path, "r"); fd 919 third_party/libxml/src/xmlIO.c if (fd == NULL) xmlIOErr(0, path); fd 920 third_party/libxml/src/xmlIO.c return((void *) fd); fd 962 third_party/libxml/src/xmlIO.c FILE *fd; fd 965 third_party/libxml/src/xmlIO.c fd = stdout; fd 966 third_party/libxml/src/xmlIO.c return((void *) fd); fd 988 third_party/libxml/src/xmlIO.c fd = xmlWrapOpen(path, 1); fd 990 third_party/libxml/src/xmlIO.c fd = fopen(path, "wb"); fd 993 third_party/libxml/src/xmlIO.c if (fd == NULL) xmlIOErr(0, path); fd 994 third_party/libxml/src/xmlIO.c return((void *) fd); fd 1145 third_party/libxml/src/xmlIO.c gzFile fd; fd 1148 third_party/libxml/src/xmlIO.c fd = gzdopen(dup(0), "rb"); fd 1149 third_party/libxml/src/xmlIO.c return((void *) fd); fd 1173 third_party/libxml/src/xmlIO.c fd = xmlWrapGzOpen(path, "rb"); fd 1175 third_party/libxml/src/xmlIO.c fd = gzopen(path, "rb"); fd 1177 third_party/libxml/src/xmlIO.c return((void *) fd); fd 1218 third_party/libxml/src/xmlIO.c gzFile fd; fd 1222 third_party/libxml/src/xmlIO.c fd = gzdopen(dup(1), mode); fd 1223 third_party/libxml/src/xmlIO.c return((void *) fd); fd 1245 third_party/libxml/src/xmlIO.c fd = xmlWrapGzOpen(path, mode); fd 1247 third_party/libxml/src/xmlIO.c fd = gzopen(path, mode); fd 1249 third_party/libxml/src/xmlIO.c return((void *) fd); fd 2812 third_party/libxml/src/xmlIO.c xmlParserInputBufferCreateFd(int fd, xmlCharEncoding enc) { fd 2815 third_party/libxml/src/xmlIO.c if (fd < 0) return(NULL); fd 2819 third_party/libxml/src/xmlIO.c ret->context = (void *) (long) fd; fd 2918 third_party/libxml/src/xmlIO.c xmlOutputBufferCreateFd(int fd, xmlCharEncodingHandlerPtr encoder) { fd 2921 third_party/libxml/src/xmlIO.c if (fd < 0) return(NULL); fd 2925 third_party/libxml/src/xmlIO.c ret->context = (void *) (long) fd; fd 1822 third_party/libxml/src/xmllint.c int fd = -1; fd 1830 third_party/libxml/src/xmllint.c if ((fd = open(filename, O_RDONLY)) < 0) fd 1832 third_party/libxml/src/xmllint.c base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ; fd 1976 third_party/libxml/src/xmllint.c close(fd); fd 2212 third_party/libxml/src/xmllint.c int fd; fd 2217 third_party/libxml/src/xmllint.c if ((fd = open(filename, O_RDONLY)) < 0) fd 2219 third_party/libxml/src/xmllint.c base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ; fd 2227 third_party/libxml/src/xmllint.c close(fd); fd 2327 third_party/libxml/src/xmllint.c int fd; fd 2332 third_party/libxml/src/xmllint.c if ((fd = open(filename, O_RDONLY)) < 0) fd 2334 third_party/libxml/src/xmllint.c base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ; fd 2346 third_party/libxml/src/xmllint.c close(fd); fd 5279 third_party/libxml/src/xmlreader.c xmlReaderForFd(int fd, const char *URL, const char *encoding, int options) fd 5284 third_party/libxml/src/xmlreader.c if (fd < 0) fd 5287 third_party/libxml/src/xmlreader.c input = xmlParserInputBufferCreateFd(fd, XML_CHAR_ENCODING_NONE); fd 5498 third_party/libxml/src/xmlreader.c xmlReaderNewFd(xmlTextReaderPtr reader, int fd, fd 5503 third_party/libxml/src/xmlreader.c if (fd < 0) fd 5508 third_party/libxml/src/xmlreader.c input = xmlParserInputBufferCreateFd(fd, XML_CHAR_ENCODING_NONE); fd 77 third_party/libxml/src/xmlsave.c int fd; fd 1632 third_party/libxml/src/xmlsave.c xmlSaveToFd(int fd, const char *encoding, int options) fd 1638 third_party/libxml/src/xmlsave.c ret->buf = xmlOutputBufferCreateFd(fd, ret->handler); fd 88 third_party/libxslt/libxslt/trio.h int trio_dprintf TRIO_PROTO((int fd, TRIO_CONST char *format, ...)); fd 89 third_party/libxslt/libxslt/trio.h int trio_vdprintf TRIO_PROTO((int fd, TRIO_CONST char *format, va_list args)); fd 90 third_party/libxslt/libxslt/trio.h int trio_dprintfv TRIO_PROTO((int fd, TRIO_CONST char *format, void **args)); fd 130 third_party/libxslt/libxslt/trio.h int trio_dscanf TRIO_PROTO((int fd, TRIO_CONST char *format, ...)); fd 131 third_party/libxslt/libxslt/trio.h int trio_vdscanf TRIO_PROTO((int fd, TRIO_CONST char *format, va_list args)); fd 132 third_party/libxslt/libxslt/trio.h int trio_dscanfv TRIO_PROTO((int fd, TRIO_CONST char *format, void **args)); fd 1688 third_party/libxslt/libxslt/xsltutils.c xsltSaveResultToFd(int fd, xmlDocPtr result, xsltStylesheetPtr style) { fd 1693 third_party/libxslt/libxslt/xsltutils.c if ((fd < 0) || (result == NULL) || (style == NULL)) fd 1707 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFd(fd, encoder); fd 1709 third_party/libxslt/libxslt/xsltutils.c buf = xmlOutputBufferCreateFd(fd, NULL); fd 230 third_party/libxslt/libxslt/xsltutils.h xsltSaveResultToFd (int fd, fd 93 third_party/npapi/npspy/extern/nspr/md/_beos.h #define _PR_FD_NEED_EMULATE_MSG_PEEK(fd) 1 fd 314 third_party/npapi/npspy/extern/nspr/md/_beos.h #define _MD_INIT_FILEDESC(fd) fd 519 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(void) _MD_make_nonblock(PRFileDesc *fd); fd 520 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(void) _MD_init_fd_inheritable(PRFileDesc *fd, PRBool imported); fd 521 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(void) _MD_query_fd_inheritable(PRFileDesc *fd); fd 524 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_read(PRFileDesc *fd, void *buf, PRInt32 amount); fd 525 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_write(PRFileDesc *fd, const void *buf, PRInt32 amount); fd 526 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_writev(PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, PRIntervalTime timeout); fd 527 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_lseek(PRFileDesc *fd, PRInt32 offset, int whence); fd 528 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt64) _MD_lseek64(PRFileDesc *fd, PRInt64 offset, int whence); fd 529 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_fsync(PRFileDesc *fd); fd 533 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_getopenfileinfo(const PRFileDesc *fd, PRFileInfo *info); fd 534 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_getopenfileinfo64(const PRFileDesc *fd, PRFileInfo64 *info); fd 544 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_connect(PRFileDesc *fd, const PRNetAddr *addr, PRUint32 addrlen, PRIntervalTime timeout); fd 545 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_accept(PRFileDesc *fd, PRNetAddr *addr, PRUint32 *addrlen, PRIntervalTime timeout); fd 546 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_bind(PRFileDesc *fd, const PRNetAddr *addr, PRUint32 addrlen); fd 547 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_listen(PRFileDesc *fd, PRIntn backlog); fd 548 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_shutdown(PRFileDesc *fd, PRIntn how); fd 549 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_recv(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout); fd 550 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_send(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout); fd 555 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRStatus) _MD_getsockname(PRFileDesc *fd, PRNetAddr *addr, PRUint32 *addrlen); fd 556 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRStatus) _MD_getpeername(PRFileDesc *fd, PRNetAddr *addr, PRUint32 *addrlen); fd 557 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRStatus) _MD_getsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen); fd 558 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRStatus) _MD_setsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen); fd 559 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_recvfrom(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRUint32 *addrlen, PRIntervalTime timeout); fd 560 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRUint32 addrlen, PRIntervalTime timeout); fd 563 third_party/npapi/npspy/extern/nspr/md/_beos.h NSPR_API(PRInt32) _MD_socketavailable(PRFileDesc *fd); fd 72 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _PR_FD_NEED_EMULATE_MSG_PEEK(fd) 1 fd 351 third_party/npapi/npspy/extern/nspr/md/_macos.h extern PRInt32 _PR_MD_WRITE_SYNC(PRFileDesc *fd, void *buf, PRInt32 amount); fd 377 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_READ(fd,buf,amount) ReadWriteProc(fd,buf,amount,READ_ASYNC) fd 378 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_WRITE(fd,buf,amount) ReadWriteProc(fd,buf,amount,WRITE_ASYNC) fd 379 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_WRITE_SYNC(fd,buf,amount) WriteSyncProc(fd,buf,amount) fd 386 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_GETOPENFILEINFO64(fd,info) -1 fd 387 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_GETFILEINFO64(fd,info) -1 fd 433 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_PIPEAVAILABLE(fd) -1 fd 457 third_party/npapi/npspy/extern/nspr/md/_macos.h extern PRStatus _MD_getsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen); fd 460 third_party/npapi/npspy/extern/nspr/md/_macos.h extern PRStatus _MD_setsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen); fd 499 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_SEND(fd,buf,amount,flags,timeout) macsock_send(fd->secret->md.osfd,buf,amount,flags) fd 500 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_SENDTO(fd,buf,amount,flags,addr,addrlen,timeout) macsock_sendto(fd->secret->md.osfd,buf,amount,flags,(struct sockaddr *)addr,addrlen) fd 501 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_RECV(fd,buf,amount,flags,timeout) macsock_recv(fd->secret->md.osfd,buf,amount,flags) fd 502 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_RECVFROM(fd,buf,amount,flags,addr,addrlen,timeout) macsock_recvfrom(fd->secret->md.osfd,buf,amount,flags,(struct sockaddr *)addr,addrlen) fd 506 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_ACCEPT(fd,addr,addrlen,timeout) macsock_accept(fd->secret->md.osfd,(struct sockaddr *)addr,addrlen) fd 507 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_CONNECT(fd,name,namelen,timeout) macsock_connect(fd->secret->md.osfd,(struct sockaddr *)name,namelen) fd 508 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_BIND(fd,name,namelen) macsock_bind(fd->secret->md.osfd,(struct sockaddr *)name,namelen) fd 509 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_GETSOCKNAME(fd,name,namelen) macsock_getsockname(fd->secret->md.osfd,(struct sockaddr *)name,namelen) fd 510 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_GETPEERNAME(fd,name,namelen) macsock_getpeername(fd->secret->md.osfd,(struct sockaddr *)name,namelen) fd 511 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_GETSOCKOPT(fd,level,optname,optval,optlen) macsock_getsockopt(fd->secret->md.osfd,level,optname,optval,optlen) fd 512 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_SETSOCKOPT(fd,level,optname,optval,optlen) macsock_setsockopt(fd->secret->md.osfd,level,optname,optval,optlen) fd 513 third_party/npapi/npspy/extern/nspr/md/_macos.h #define _MD_SOCKETAVAILABLE(fd,bytes) macsock_socketavailable(fd->secret->md.osfd,bytes) fd 660 third_party/npapi/npspy/extern/nspr/md/_macos.h extern int _MD_mac_get_nonblocking_connect_error(PRFileDesc* fd); fd 278 third_party/npapi/npspy/extern/nspr/md/_os2.h #define _MD_INIT_FILEDESC(fd) fd 310 third_party/npapi/npspy/extern/nspr/md/_os2.h extern PRInt32 _MD_SocketAvailable(PRFileDesc *fd); fd 314 third_party/npapi/npspy/extern/nspr/md/_os2.h extern PRInt32 _MD_Accept(PRFileDesc *fd, PRNetAddr *raddr, PRUint32 *rlen, fd 293 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_INIT_FILEDESC(fd) fd 295 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern void _MD_MakeNonblock(PRFileDesc *fd); fd 344 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_getopenfileinfo(const PRFileDesc *fd, PRFileInfo *info); fd 345 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_getopenfileinfo64(const PRFileDesc *fd, PRFileInfo64 *info); fd 364 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_read(PRFileDesc *fd, void *buf, PRInt32 amount); fd 365 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_READ(fd,buf,amount) _MD_read(fd,buf,amount) fd 366 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_write(PRFileDesc *fd, const void *buf, PRInt32 amount); fd 367 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_WRITE(fd,buf,amount) _MD_write(fd,buf,amount) fd 371 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_GETOPENFILEINFO(fd, info) _MD_getopenfileinfo(fd, info) fd 372 third_party/npapi/npspy/extern/nspr/md/_unixos.h #define _MD_GETOPENFILEINFO64(fd, info) _MD_getopenfileinfo64(fd, info) fd 387 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_connect(PRFileDesc *fd, const PRNetAddr *addr, fd 390 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_accept(PRFileDesc *fd, PRNetAddr *addr, PRUint32 *addrlen, fd 393 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_bind(PRFileDesc *fd, const PRNetAddr *addr, PRUint32 addrlen); fd 395 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_listen(PRFileDesc *fd, PRIntn backlog); fd 397 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_shutdown(PRFileDesc *fd, PRIntn how); fd 400 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_recv(PRFileDesc *fd, void *buf, PRInt32 amount, fd 403 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_send(PRFileDesc *fd, const void *buf, PRInt32 amount, fd 406 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_recvfrom(PRFileDesc *fd, void *buf, PRInt32 amount, fd 410 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_sendto(PRFileDesc *fd, const void *buf, PRInt32 amount, fd 414 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_writev(PRFileDesc *fd, const struct PRIOVec *iov, fd 418 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_socketavailable(PRFileDesc *fd); fd 420 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt64 _MD_socketavailable64(PRFileDesc *fd); fd 435 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRInt32 _MD_fsync(PRFileDesc *fd); fd 447 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRStatus _MD_getpeername(PRFileDesc *fd, PRNetAddr *addr, fd 450 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRStatus _MD_getsockname(PRFileDesc *fd, PRNetAddr *addr, fd 454 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRStatus _MD_getsockopt(PRFileDesc *fd, PRInt32 level, fd 457 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRStatus _MD_setsockopt(PRFileDesc *fd, PRInt32 level, fd 461 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern PRStatus _MD_set_fd_inheritable(PRFileDesc *fd, PRBool inheritable); fd 464 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern void _MD_init_fd_inheritable(PRFileDesc *fd, PRBool imported); fd 467 third_party/npapi/npspy/extern/nspr/md/_unixos.h extern void _MD_query_fd_inheritable(PRFileDesc *fd); fd 526 third_party/npapi/npspy/extern/nspr/md/_unixos.h int fd; fd 296 third_party/npapi/npspy/extern/nspr/md/_win16.h #define _MD_INIT_FILEDESC(fd) fd 282 third_party/npapi/npspy/extern/nspr/md/_win95.h #define _MD_INIT_FILEDESC(fd) fd 321 third_party/npapi/npspy/extern/nspr/md/_win95.h extern PRInt32 _MD_SocketAvailable(PRFileDesc *fd); fd 325 third_party/npapi/npspy/extern/nspr/md/_win95.h extern PRInt32 _MD_Accept(PRFileDesc *fd, PRNetAddr *raddr, PRUint32 *rlen, fd 94 third_party/npapi/npspy/extern/nspr/md/_winnt.h #define _PR_FD_NEED_EMULATE_MSG_PEEK(fd) \ fd 95 third_party/npapi/npspy/extern/nspr/md/_winnt.h (!(fd)->secret->nonblocking && (fd)->secret->inheritable != _PR_TRI_TRUE) fd 294 third_party/npapi/npspy/extern/nspr/md/_winnt.h #define _MD_INIT_FILEDESC(fd) fd 151 third_party/npapi/npspy/extern/nspr/obsolete/probslet.h NSPR_API(void) PR_FD_SET(PRFileDesc *fd, PR_fd_set *set); fd 152 third_party/npapi/npspy/extern/nspr/obsolete/probslet.h NSPR_API(void) PR_FD_CLR(PRFileDesc *fd, PR_fd_set *set); fd 153 third_party/npapi/npspy/extern/nspr/obsolete/probslet.h NSPR_API(PRInt32) PR_FD_ISSET(PRFileDesc *fd, PR_fd_set *set); fd 85 third_party/npapi/npspy/extern/nspr/prio.h void (PR_CALLBACK *dtor)(PRFileDesc *fd); fd 328 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRCloseFN)(PRFileDesc *fd); fd 329 third_party/npapi/npspy/extern/nspr/prio.h typedef PRInt32 (PR_CALLBACK *PRReadFN)(PRFileDesc *fd, void *buf, PRInt32 amount); fd 330 third_party/npapi/npspy/extern/nspr/prio.h typedef PRInt32 (PR_CALLBACK *PRWriteFN)(PRFileDesc *fd, const void *buf, PRInt32 amount); fd 331 third_party/npapi/npspy/extern/nspr/prio.h typedef PRInt32 (PR_CALLBACK *PRAvailableFN)(PRFileDesc *fd); fd 332 third_party/npapi/npspy/extern/nspr/prio.h typedef PRInt64 (PR_CALLBACK *PRAvailable64FN)(PRFileDesc *fd); fd 333 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRFsyncFN)(PRFileDesc *fd); fd 334 third_party/npapi/npspy/extern/nspr/prio.h typedef PROffset32 (PR_CALLBACK *PRSeekFN)(PRFileDesc *fd, PROffset32 offset, PRSeekWhence how); fd 335 third_party/npapi/npspy/extern/nspr/prio.h typedef PROffset64 (PR_CALLBACK *PRSeek64FN)(PRFileDesc *fd, PROffset64 offset, PRSeekWhence how); fd 336 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRFileInfoFN)(PRFileDesc *fd, PRFileInfo *info); fd 337 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRFileInfo64FN)(PRFileDesc *fd, PRFileInfo64 *info); fd 339 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, fd 342 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout); fd 344 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout); fd 345 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRBindFN)(PRFileDesc *fd, const PRNetAddr *addr); fd 346 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRListenFN)(PRFileDesc *fd, PRIntn backlog); fd 347 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRShutdownFN)(PRFileDesc *fd, PRIntn how); fd 349 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, void *buf, PRInt32 amount, fd 352 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const void *buf, PRInt32 amount, fd 355 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, void *buf, PRInt32 amount, fd 358 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const void *buf, PRInt32 amount, fd 361 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags); fd 366 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *sd, PRFileDesc *fd, const void *headers, fd 368 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRGetsocknameFN)(PRFileDesc *fd, PRNetAddr *addr); fd 369 third_party/npapi/npspy/extern/nspr/prio.h typedef PRStatus (PR_CALLBACK *PRGetpeernameFN)(PRFileDesc *fd, PRNetAddr *addr); fd 371 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, PRSocketOptionData *data); fd 373 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const PRSocketOptionData *data); fd 378 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, PRInt16 out_flags); fd 379 third_party/npapi/npspy/extern/nspr/prio.h typedef PRIntn (PR_CALLBACK *PRReservedFN)(PRFileDesc *fd); fd 491 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRDescIdentity) PR_GetLayersIdentity(PRFileDesc* fd); fd 530 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRFileDesc*) PR_CreateIOLayer(PRFileDesc* fd); fd 694 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_Close(PRFileDesc *fd); fd 729 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Read(PRFileDesc *fd, void *buf, PRInt32 amount); fd 753 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Write(PRFileDesc *fd,const void *buf,PRInt32 amount); fd 788 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, fd 878 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_GetOpenFileInfo(PRFileDesc *fd, PRFileInfo *info); fd 879 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_GetOpenFileInfo64(PRFileDesc *fd, PRFileInfo64 *info); fd 964 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PROffset32) PR_Seek(PRFileDesc *fd, PROffset32 offset, PRSeekWhence whence); fd 965 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PROffset64) PR_Seek64(PRFileDesc *fd, PROffset64 offset, PRSeekWhence whence); fd 987 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Available(PRFileDesc *fd); fd 988 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt64) PR_Available64(PRFileDesc *fd); fd 1007 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_Sync(PRFileDesc *fd); fd 1276 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout); fd 1310 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_ConnectContinue(PRFileDesc *fd, PRInt16 out_flags); fd 1365 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout); fd 1386 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_Bind(PRFileDesc *fd, const PRNetAddr *addr); fd 1408 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_Listen(PRFileDesc *fd, PRIntn backlog); fd 1439 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_Shutdown(PRFileDesc *fd, PRShutdownHow how); fd 1472 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Recv(PRFileDesc *fd, void *buf, PRInt32 amount, fd 1503 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRInt32) PR_Send(PRFileDesc *fd, const void *buf, PRInt32 amount, fd 1539 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, fd 1572 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, fd 1651 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd; /* file to send */ fd 1761 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_GetSockName(PRFileDesc *fd, PRNetAddr *addr); fd 1783 third_party/npapi/npspy/extern/nspr/prio.h NSPR_API(PRStatus) PR_GetPeerName(PRFileDesc *fd, PRNetAddr *addr); fd 1786 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, PRSocketOptionData *data); fd 1789 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, const PRSocketOptionData *data); fd 1819 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, fd 1860 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc *fd, fd 1902 third_party/npapi/npspy/extern/nspr/prio.h PRFileDesc* fd; fd 66 third_party/npapi/npspy/extern/nspr/private/pprio.h NSPR_API(void) PR_FreeFileDesc(PRFileDesc *fd); fd 112 third_party/npapi/npspy/extern/nspr/private/pprio.h NSPR_API(PRStatus) PR_DestroySocketPollFd(PRFileDesc *fd); fd 145 third_party/npapi/npspy/extern/nspr/private/pprio.h NSPR_API(PRStatus) PR_LockFile(PRFileDesc *fd); fd 155 third_party/npapi/npspy/extern/nspr/private/pprio.h NSPR_API(PRStatus) PR_TLockFile(PRFileDesc *fd); fd 165 third_party/npapi/npspy/extern/nspr/private/pprio.h NSPR_API(PRStatus) PR_UnlockFile(PRFileDesc *fd); fd 227 third_party/npapi/npspy/extern/nspr/private/pprio.h NSPR_API(PRFileDesc*) PR_NTFast_Accept(PRFileDesc *fd, PRNetAddr *addr, fd 246 third_party/npapi/npspy/extern/nspr/private/pprio.h NSPR_API(PRStatus) PR_NT_CancelIo(PRFileDesc *fd); fd 98 third_party/npapi/npspy/extern/nspr/private/pprthred.h typedef void (*PRThreadDumpProc)(PRFileDesc *fd, PRThread *t, void *arg); fd 141 third_party/npapi/npspy/extern/nspr/prmwait.h PRFileDesc *fd; /* file descriptor associated w/ object */ fd 103 third_party/npapi/npspy/extern/nspr/prprf.h NSPR_API(PRUint32) PR_fprintf(struct PRFileDesc* fd, const char *fmt, ...); fd 112 third_party/npapi/npspy/extern/nspr/prprf.h NSPR_API(PRUint32) PR_vfprintf(struct PRFileDesc* fd, const char *fmt, va_list ap); fd 78 third_party/npapi/npspy/extern/nspr/prproces.h PRFileDesc *fd, fd 120 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc void SetFdToTextMode(int fd) { fd 122 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc if (_setmode(fd, _O_TEXT) == -1) { fd 124 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc GOOGLE_LOG(WARNING) << "_setmode(" << fd << ", _O_TEXT): " << strerror(errno); fd 130 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc void SetFdToBinaryMode(int fd) { fd 132 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc if (_setmode(fd, _O_BINARY) == -1) { fd 134 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc GOOGLE_LOG(WARNING) << "_setmode(" << fd << ", _O_BINARY): " << strerror(errno); fd 1386 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc int fd; fd 1388 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc fd = open(descriptor_set_name_.c_str(), fd 1390 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc } while (fd < 0 && errno == EINTR); fd 1392 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc if (fd < 0) { fd 1397 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc io::FileOutputStream out(fd); fd 1420 third_party/protobuf/src/google/protobuf/compiler/command_line_interface_unittest.cc int fd = open(filename.c_str(), O_RDONLY); fd 1421 third_party/protobuf/src/google/protobuf/compiler/command_line_interface_unittest.cc if (fd < 0) return false; fd 1422 third_party/protobuf/src/google/protobuf/compiler/command_line_interface_unittest.cc dup2(fd, STDIN_FILENO); fd 1423 third_party/protobuf/src/google/protobuf/compiler/command_line_interface_unittest.cc close(fd); fd 59 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc #define lseek(fd, offset, origin) ((off_t)-1) fd 65 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc int close_no_eintr(int fd) { fd 68 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc result = close(fd); fd 158 third_party/protobuf/src/google/protobuf/testing/googletest.cc int fd = open(stdout_capture_filename_.c_str(), fd 160 third_party/protobuf/src/google/protobuf/testing/googletest.cc GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); fd 164 third_party/protobuf/src/google/protobuf/testing/googletest.cc dup2(fd, 1); fd 165 third_party/protobuf/src/google/protobuf/testing/googletest.cc close(fd); fd 173 third_party/protobuf/src/google/protobuf/testing/googletest.cc int fd = open(stderr_capture_filename_.c_str(), fd 175 third_party/protobuf/src/google/protobuf/testing/googletest.cc GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); fd 179 third_party/protobuf/src/google/protobuf/testing/googletest.cc dup2(fd, 2); fd 180 third_party/protobuf/src/google/protobuf/testing/googletest.cc close(fd); fd 4502 third_party/re2/util/valgrind.h #define VALGRIND_LOAD_PDB_DEBUGINFO(fd, ptr, total_size, delta) \ fd 4506 third_party/re2/util/valgrind.h fd, ptr, total_size, delta, 0); \ fd 22893 third_party/sqlite/amalgamation/sqlite3.c static int os2OpenSharedMemory( os2File *fd, int szRegion ) { fd 22903 third_party/sqlite/amalgamation/sqlite3.c cbShmName = sprintf(shmName, "\\SHAREMEM\\%s", fd->zFullPathCp ); fd 22933 third_party/sqlite/amalgamation/sqlite3.c if( DosDupHandle(fd->h, &pNode->hLockFile) != 0 ) { fd 22935 third_party/sqlite/amalgamation/sqlite3.c sprintf(shmName, "%s-lck", fd->zFullPathCp); fd 22976 third_party/sqlite/amalgamation/sqlite3.c fd->pShmLink = pLink; fd 22987 third_party/sqlite/amalgamation/sqlite3.c ERR_TRACE(rc, ("os2OpenSharedMemory: %d %s\n", rc, fd->zFullPathCp)) fd 24129 third_party/sqlite/amalgamation/sqlite3.c int fd; /* File descriptor to close */ fd 24678 third_party/sqlite/amalgamation/sqlite3.c static int lockTrace(int fd, int op, struct flock *p){ fd 24687 third_party/sqlite/amalgamation/sqlite3.c s = osFcntl(fd, op, p); fd 24688 third_party/sqlite/amalgamation/sqlite3.c sqlite3DebugPrintf("fcntl unknown %d %d %d\n", fd, op, s); fd 24701 third_party/sqlite/amalgamation/sqlite3.c s = osFcntl(fd, op, p); fd 24704 third_party/sqlite/amalgamation/sqlite3.c threadid, fd, zOpName, zType, (int)p->l_start, (int)p->l_len, fd 24709 third_party/sqlite/amalgamation/sqlite3.c osFcntl(fd, F_GETLK, &l2); fd 25199 third_party/sqlite/amalgamation/sqlite3.c robust_close(pFile, p->fd, __LINE__); fd 25250 third_party/sqlite/amalgamation/sqlite3.c int fd; /* The file descriptor for pFile */ fd 25260 third_party/sqlite/amalgamation/sqlite3.c fd = pFile->h; fd 25261 third_party/sqlite/amalgamation/sqlite3.c rc = osFstat(fd, &statbuf); fd 25282 third_party/sqlite/amalgamation/sqlite3.c do{ rc = osWrite(fd, "S", 1); }while( rc<0 && errno==EINTR ); fd 25287 third_party/sqlite/amalgamation/sqlite3.c rc = osFstat(fd, &statbuf); fd 26066 third_party/sqlite/amalgamation/sqlite3.c int fd; fd 26084 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(zLockFile,O_RDONLY|O_CREAT|O_EXCL,0600); fd 26085 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 26098 third_party/sqlite/amalgamation/sqlite3.c robust_close(pFile, fd, __LINE__); fd 26190 third_party/sqlite/amalgamation/sqlite3.c static int robust_flock(int fd, int op){ fd 26192 third_party/sqlite/amalgamation/sqlite3.c do{ rc = flock(fd,op); }while( rc<0 && errno==EINTR ); fd 26466 third_party/sqlite/amalgamation/sqlite3.c int fd; fd 26583 third_party/sqlite/amalgamation/sqlite3.c int fd; /* file desc to assoc this lock with */ fd 26608 third_party/sqlite/amalgamation/sqlite3.c pb.fd = pFile->h; fd 26611 third_party/sqlite/amalgamation/sqlite3.c (setLockFlag?"ON":"OFF"), pFile->h, (pb.fd==-1?"[testval-1]":""), fd 27306 third_party/sqlite/amalgamation/sqlite3.c static int full_fsync(int fd, int fullSync, int dataOnly){ fd 27314 third_party/sqlite/amalgamation/sqlite3.c UNUSED_PARAMETER(fd); fd 27340 third_party/sqlite/amalgamation/sqlite3.c rc = osFcntl(fd, F_FULLFSYNC, 0); fd 27352 third_party/sqlite/amalgamation/sqlite3.c if( rc ) rc = fsync(fd); fd 27358 third_party/sqlite/amalgamation/sqlite3.c rc = fsync(fd); fd 27360 third_party/sqlite/amalgamation/sqlite3.c rc = fdatasync(fd); fd 27363 third_party/sqlite/amalgamation/sqlite3.c rc = fsync(fd); fd 27399 third_party/sqlite/amalgamation/sqlite3.c int fd = -1; fd 27406 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(zDirname, O_RDONLY|O_BINARY, 0); fd 27407 third_party/sqlite/amalgamation/sqlite3.c if( fd>=0 ){ fd 27409 third_party/sqlite/amalgamation/sqlite3.c osFcntl(fd, F_SETFD, osFcntl(fd, F_GETFD, 0) | FD_CLOEXEC); fd 27411 third_party/sqlite/amalgamation/sqlite3.c OSTRACE(("OPENDIR %-3d %s\n", fd, zDirname)); fd 27414 third_party/sqlite/amalgamation/sqlite3.c *pFd = fd; fd 27415 third_party/sqlite/amalgamation/sqlite3.c return (fd>=0?SQLITE_OK:unixLogError(SQLITE_CANTOPEN_BKPT, "open", zDirname)); fd 28029 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd, /* Handle open on database file */ fd 28035 third_party/sqlite/amalgamation/sqlite3.c unixFile *pDbFd = (unixFile*)fd; fd 28138 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd, /* Database file holding the shared memory */ fd 28143 third_party/sqlite/amalgamation/sqlite3.c unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */ fd 28250 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd /* Database file holding the shared memory */ fd 28252 third_party/sqlite/amalgamation/sqlite3.c UNUSED_PARAMETER(fd); fd 28265 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd, /* The underlying database file */ fd 28273 third_party/sqlite/amalgamation/sqlite3.c pDbFd = (unixFile*)fd; fd 29006 third_party/sqlite/amalgamation/sqlite3.c int fd, fd 29012 third_party/sqlite/amalgamation/sqlite3.c return fillInUnixFile(vfs, fd, dirfd, file, fileName, noLock, isDelete, 0); fd 29026 third_party/sqlite/amalgamation/sqlite3.c int* fd) { fd 29032 third_party/sqlite/amalgamation/sqlite3.c *fd = unusedFd->fd; fd 29048 third_party/sqlite/amalgamation/sqlite3.c int fd, fd 29052 third_party/sqlite/amalgamation/sqlite3.c unixSQLite3File->pUnused->fd = fd; fd 29095 third_party/sqlite/amalgamation/sqlite3.c int fd = -1; /* File descriptor returned by open() */ fd 29155 third_party/sqlite/amalgamation/sqlite3.c rc = chromium_sqlite3_get_reusable_file_handle(pFile, zName, flags, &fd); fd 29179 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 29187 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(zName, openFlags, openMode); fd 29188 third_party/sqlite/amalgamation/sqlite3.c OSTRACE(("OPENX %-3d %s 0%o\n", fd, zName, openFlags)); fd 29189 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 && errno!=EISDIR && isReadWrite && !isExclusive ){ fd 29196 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(zName, openFlags, openMode); fd 29198 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 29203 third_party/sqlite/amalgamation/sqlite3.c assert( fd>=0 ); fd 29208 third_party/sqlite/amalgamation/sqlite3.c chromium_sqlite3_update_reusable_file_handle(pFile, fd, flags); fd 29224 third_party/sqlite/amalgamation/sqlite3.c osFcntl(fd, F_SETFD, osFcntl(fd, F_GETFD, 0) | FD_CLOEXEC); fd 29232 third_party/sqlite/amalgamation/sqlite3.c if( fstatfs(fd, &fsInfo) == -1 ){ fd 29234 third_party/sqlite/amalgamation/sqlite3.c robust_close(p, fd, __LINE__); fd 29265 third_party/sqlite/amalgamation/sqlite3.c robust_close(p, fd, __LINE__); fd 29272 third_party/sqlite/amalgamation/sqlite3.c rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock, fd 29290 third_party/sqlite/amalgamation/sqlite3.c rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock, fd 29317 third_party/sqlite/amalgamation/sqlite3.c int fd; fd 29318 third_party/sqlite/amalgamation/sqlite3.c rc = osOpenDirectory(zPath, &fd); fd 29321 third_party/sqlite/amalgamation/sqlite3.c if( fsync(fd)==-1 ) fd 29323 third_party/sqlite/amalgamation/sqlite3.c if( fsync(fd) ) fd 29328 third_party/sqlite/amalgamation/sqlite3.c robust_close(0, fd, __LINE__); fd 29506 third_party/sqlite/amalgamation/sqlite3.c int pid, fd; fd 29507 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open("/dev/urandom", O_RDONLY, 0); fd 29508 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 29517 third_party/sqlite/amalgamation/sqlite3.c do{ nBuf = osRead(fd, zBuf, nBuf); }while( nBuf<0 && errno==EINTR ); fd 29518 third_party/sqlite/amalgamation/sqlite3.c robust_close(0, fd, __LINE__); fd 29891 third_party/sqlite/amalgamation/sqlite3.c int fd = -1; fd 29907 third_party/sqlite/amalgamation/sqlite3.c fd = pUnused->fd; fd 29914 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 29915 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(path, openFlags, SQLITE_DEFAULT_FILE_PERMISSIONS); fd 29917 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 && errno==ENOENT && islockfile ){ fd 29919 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(path, openFlags, SQLITE_DEFAULT_FILE_PERMISSIONS); fd 29923 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 29925 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(path, openFlags, SQLITE_DEFAULT_FILE_PERMISSIONS); fd 29928 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 29952 third_party/sqlite/amalgamation/sqlite3.c pUnused->fd = fd; fd 29956 third_party/sqlite/amalgamation/sqlite3.c rc = fillInUnixFile(&dummyVfs, fd, 0, (sqlite3_file*)pNew, path, 0, 0, 0); fd 29962 third_party/sqlite/amalgamation/sqlite3.c robust_close(pNew, fd, __LINE__); fd 30029 third_party/sqlite/amalgamation/sqlite3.c int fd = -1; fd 30047 third_party/sqlite/amalgamation/sqlite3.c fd = robust_open(tPath, (O_RDWR|O_CREAT|O_EXCL), fd 30049 third_party/sqlite/amalgamation/sqlite3.c if( fd<0 ){ fd 30053 third_party/sqlite/amalgamation/sqlite3.c if( osPwrite(fd, buf, readLen, 0) != (ssize_t)readLen ){ fd 30064 third_party/sqlite/amalgamation/sqlite3.c conchFile->h = fd; fd 30069 third_party/sqlite/amalgamation/sqlite3.c if( fd>=0 ){ fd 30071 third_party/sqlite/amalgamation/sqlite3.c robust_close(pFile, fd, __LINE__); fd 30323 third_party/sqlite/amalgamation/sqlite3.c int fd = robust_open(pCtx->dbPath, pFile->openFlags, fd 30325 third_party/sqlite/amalgamation/sqlite3.c OSTRACE(("TRANSPROXY: OPEN %d\n", fd)); fd 30326 third_party/sqlite/amalgamation/sqlite3.c if( fd>=0 ){ fd 30327 third_party/sqlite/amalgamation/sqlite3.c pFile->h = fd; fd 32669 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd, /* Database holding shared memory */ fd 32677 third_party/sqlite/amalgamation/sqlite3.c pDbFd = (winFile*)fd; fd 32710 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd, /* Database file holding the shared memory */ fd 32715 third_party/sqlite/amalgamation/sqlite3.c winFile *pDbFd = (winFile*)fd; /* Connection holding shared memory */ fd 32819 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd /* Database holding the shared memory */ fd 32821 third_party/sqlite/amalgamation/sqlite3.c UNUSED_PARAMETER(fd); fd 32847 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd, /* Handle open on database file */ fd 32853 third_party/sqlite/amalgamation/sqlite3.c winFile *pDbFd = (winFile*)fd; fd 36561 third_party/sqlite/amalgamation/sqlite3.c #define PAGERID(p) ((int)(p->fd)) fd 36562 third_party/sqlite/amalgamation/sqlite3.c #define FILEHANDLEID(fd) ((int)fd) fd 37079 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd; /* File descriptor for database */ fd 37449 third_party/sqlite/amalgamation/sqlite3.c static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){ fd 37451 third_party/sqlite/amalgamation/sqlite3.c int rc = sqlite3OsRead(fd, ac, sizeof(ac), offset); fd 37468 third_party/sqlite/amalgamation/sqlite3.c static int write32bits(sqlite3_file *fd, i64 offset, u32 val){ fd 37471 third_party/sqlite/amalgamation/sqlite3.c return sqlite3OsWrite(fd, ac, 4, offset); fd 37489 third_party/sqlite/amalgamation/sqlite3.c if( isOpen(pPager->fd) ){ fd 37491 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsUnlock(pPager->fd, eLock); fd 37515 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsLock(pPager->fd, eLock); fd 37549 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) ); fd 37550 third_party/sqlite/amalgamation/sqlite3.c dc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 37813 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) || pPager->noSync ); fd 37815 third_party/sqlite/amalgamation/sqlite3.c || (sqlite3OsDeviceCharacteristics(pPager->fd)&SQLITE_IOCAP_SAFE_APPEND) fd 38172 third_party/sqlite/amalgamation/sqlite3.c int iDc = isOpen(pPager->fd)?sqlite3OsDeviceCharacteristics(pPager->fd):0; fd 38656 third_party/sqlite/amalgamation/sqlite3.c if( isOpen(pPager->fd) fd 38663 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsWrite(pPager->fd, (u8*)aData, pPager->pageSize, ofst); fd 38906 third_party/sqlite/amalgamation/sqlite3.c if( isOpen(pPager->fd) fd 38913 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsFileSize(pPager->fd, ¤tSize); fd 38917 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsTruncate(pPager->fd, newSize); fd 38924 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsWrite(pPager->fd, pTmp, szPage, newSize-szPage); fd 38949 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 38956 third_party/sqlite/amalgamation/sqlite3.c pPager->sectorSize = sqlite3OsSectorSize(pPager->fd); fd 39168 third_party/sqlite/amalgamation/sqlite3.c pPager->fd->pMethods==0 || fd 39169 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsFileControl(pPager->fd,SQLITE_FCNTL_DB_UNCHANGED,0)>=SQLITE_OK fd 39233 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) ); fd 39235 third_party/sqlite/amalgamation/sqlite3.c if( NEVER(!isOpen(pPager->fd)) ){ fd 39247 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsRead(pPager->fd, pPg->pData, pgsz, iOffset); fd 39500 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 39501 third_party/sqlite/amalgamation/sqlite3.c if( isOpen(pPager->fd) ){ fd 39502 third_party/sqlite/amalgamation/sqlite3.c int rc = sqlite3OsFileSize(pPager->fd, &n); fd 39920 third_party/sqlite/amalgamation/sqlite3.c if( pPager->eState>PAGER_OPEN && isOpen(pPager->fd) ){ fd 39921 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsFileSize(pPager->fd, &nByte); fd 40017 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 40025 third_party/sqlite/amalgamation/sqlite3.c if( isOpen(pPager->fd) ){ fd 40027 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsRead(pPager->fd, pDest, N, 0); fd 40205 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsClose(pPager->fd); fd 40286 third_party/sqlite/amalgamation/sqlite3.c const int iDc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 40426 third_party/sqlite/amalgamation/sqlite3.c if( !isOpen(pPager->fd) ){ fd 40428 third_party/sqlite/amalgamation/sqlite3.c rc = pagerOpentemp(pPager, pPager->fd, pPager->vfsFlags); fd 40434 third_party/sqlite/amalgamation/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->fd) ); fd 40437 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SIZE_HINT, &szFile); fd 40463 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsWrite(pPager->fd, pData, pPager->pageSize, offset); fd 40815 third_party/sqlite/amalgamation/sqlite3.c pPager->fd = (sqlite3_file*)(pPtr += ROUND8(pcacheSize)); fd 40842 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout); fd 40866 third_party/sqlite/amalgamation/sqlite3.c int iDc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 40908 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsClose(pPager->fd); fd 40919 third_party/sqlite/amalgamation/sqlite3.c PAGERTRACE(("OPEN %d %s\n", FILEHANDLEID(pPager->fd), pPager->zFilename)); fd 40954 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) || tempFile ); fd 41010 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) ); fd 41032 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsCheckReservedLock(pPager->fd, &locked); fd 41281 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsRead(pPager->fd, &dbFileVers, sizeof(dbFileVers), 24); fd 41443 third_party/sqlite/amalgamation/sqlite3.c if( MEMDB || pPager->dbSize<pgno || noContent || !isOpen(pPager->fd) ){ fd 42058 third_party/sqlite/amalgamation/sqlite3.c assert( !pPager->tempFile && isOpen(pPager->fd) ); fd 42083 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0); fd 42110 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsSync(pPager->fd, pPager->syncFlags); fd 42111 third_party/sqlite/amalgamation/sqlite3.c }else if( isOpen(pPager->fd) ){ fd 42113 third_party/sqlite/amalgamation/sqlite3.c sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SYNC_OMITTED, (void *)&rc); fd 42697 third_party/sqlite/amalgamation/sqlite3.c return pPager->fd; fd 43002 third_party/sqlite/amalgamation/sqlite3.c assert( isOpen(pPager->fd) || pPager->exclusiveMode ); fd 43115 third_party/sqlite/amalgamation/sqlite3.c const sqlite3_io_methods *pMethods = pPager->fd->pMethods; fd 43163 third_party/sqlite/amalgamation/sqlite3.c pPager->fd, pPager->zWal, pPager->exclusiveMode, &pPager->pWal fd 109673 third_party/sqlite/amalgamation/sqlite3.c sqlite3_file *fd; fd 109677 third_party/sqlite/amalgamation/sqlite3.c fd = sqlite3PagerFile(pPager); fd 109678 third_party/sqlite/amalgamation/sqlite3.c assert( fd!=0 ); fd 109680 third_party/sqlite/amalgamation/sqlite3.c *(sqlite3_file**)pArg = fd; fd 109682 third_party/sqlite/amalgamation/sqlite3.c }else if( fd->pMethods ){ fd 109683 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3OsFileControl(fd, op, pArg); fd 2428 third_party/sqlite/src/src/main.c sqlite3_file *fd; fd 2432 third_party/sqlite/src/src/main.c fd = sqlite3PagerFile(pPager); fd 2433 third_party/sqlite/src/src/main.c assert( fd!=0 ); fd 2435 third_party/sqlite/src/src/main.c *(sqlite3_file**)pArg = fd; fd 2437 third_party/sqlite/src/src/main.c }else if( fd->pMethods ){ fd 2438 third_party/sqlite/src/src/main.c rc = sqlite3OsFileControl(fd, op, pArg); fd 881 third_party/sqlite/src/src/os_os2.c static int os2OpenSharedMemory( os2File *fd, int szRegion ) { fd 891 third_party/sqlite/src/src/os_os2.c cbShmName = sprintf(shmName, "\\SHAREMEM\\%s", fd->zFullPathCp ); fd 921 third_party/sqlite/src/src/os_os2.c if( DosDupHandle(fd->h, &pNode->hLockFile) != 0 ) { fd 923 third_party/sqlite/src/src/os_os2.c sprintf(shmName, "%s-lck", fd->zFullPathCp); fd 964 third_party/sqlite/src/src/os_os2.c fd->pShmLink = pLink; fd 975 third_party/sqlite/src/src/os_os2.c ERR_TRACE(rc, ("os2OpenSharedMemory: %d %s\n", rc, fd->zFullPathCp)) fd 193 third_party/sqlite/src/src/os_unix.c int fd; /* File descriptor to close */ fd 537 third_party/sqlite/src/src/os_unix.c static int lockTrace(int fd, int op, struct flock *p){ fd 546 third_party/sqlite/src/src/os_unix.c s = osFcntl(fd, op, p); fd 547 third_party/sqlite/src/src/os_unix.c sqlite3DebugPrintf("fcntl unknown %d %d %d\n", fd, op, s); fd 560 third_party/sqlite/src/src/os_unix.c s = osFcntl(fd, op, p); fd 563 third_party/sqlite/src/src/os_unix.c threadid, fd, zOpName, zType, (int)p->l_start, (int)p->l_len, fd 568 third_party/sqlite/src/src/os_unix.c osFcntl(fd, F_GETLK, &l2); fd 1058 third_party/sqlite/src/src/os_unix.c robust_close(pFile, p->fd, __LINE__); fd 1109 third_party/sqlite/src/src/os_unix.c int fd; /* The file descriptor for pFile */ fd 1119 third_party/sqlite/src/src/os_unix.c fd = pFile->h; fd 1120 third_party/sqlite/src/src/os_unix.c rc = osFstat(fd, &statbuf); fd 1141 third_party/sqlite/src/src/os_unix.c do{ rc = osWrite(fd, "S", 1); }while( rc<0 && errno==EINTR ); fd 1146 third_party/sqlite/src/src/os_unix.c rc = osFstat(fd, &statbuf); fd 1925 third_party/sqlite/src/src/os_unix.c int fd; fd 1943 third_party/sqlite/src/src/os_unix.c fd = robust_open(zLockFile,O_RDONLY|O_CREAT|O_EXCL,0600); fd 1944 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 1957 third_party/sqlite/src/src/os_unix.c robust_close(pFile, fd, __LINE__); fd 2049 third_party/sqlite/src/src/os_unix.c static int robust_flock(int fd, int op){ fd 2051 third_party/sqlite/src/src/os_unix.c do{ rc = flock(fd,op); }while( rc<0 && errno==EINTR ); fd 2325 third_party/sqlite/src/src/os_unix.c int fd; fd 2442 third_party/sqlite/src/src/os_unix.c int fd; /* file desc to assoc this lock with */ fd 2467 third_party/sqlite/src/src/os_unix.c pb.fd = pFile->h; fd 2470 third_party/sqlite/src/src/os_unix.c (setLockFlag?"ON":"OFF"), pFile->h, (pb.fd==-1?"[testval-1]":""), fd 3165 third_party/sqlite/src/src/os_unix.c static int full_fsync(int fd, int fullSync, int dataOnly){ fd 3173 third_party/sqlite/src/src/os_unix.c UNUSED_PARAMETER(fd); fd 3199 third_party/sqlite/src/src/os_unix.c rc = osFcntl(fd, F_FULLFSYNC, 0); fd 3211 third_party/sqlite/src/src/os_unix.c if( rc ) rc = fsync(fd); fd 3217 third_party/sqlite/src/src/os_unix.c rc = fsync(fd); fd 3219 third_party/sqlite/src/src/os_unix.c rc = fdatasync(fd); fd 3222 third_party/sqlite/src/src/os_unix.c rc = fsync(fd); fd 3258 third_party/sqlite/src/src/os_unix.c int fd = -1; fd 3265 third_party/sqlite/src/src/os_unix.c fd = robust_open(zDirname, O_RDONLY|O_BINARY, 0); fd 3266 third_party/sqlite/src/src/os_unix.c if( fd>=0 ){ fd 3268 third_party/sqlite/src/src/os_unix.c osFcntl(fd, F_SETFD, osFcntl(fd, F_GETFD, 0) | FD_CLOEXEC); fd 3270 third_party/sqlite/src/src/os_unix.c OSTRACE(("OPENDIR %-3d %s\n", fd, zDirname)); fd 3273 third_party/sqlite/src/src/os_unix.c *pFd = fd; fd 3274 third_party/sqlite/src/src/os_unix.c return (fd>=0?SQLITE_OK:unixLogError(SQLITE_CANTOPEN_BKPT, "open", zDirname)); fd 3888 third_party/sqlite/src/src/os_unix.c sqlite3_file *fd, /* Handle open on database file */ fd 3894 third_party/sqlite/src/src/os_unix.c unixFile *pDbFd = (unixFile*)fd; fd 3997 third_party/sqlite/src/src/os_unix.c sqlite3_file *fd, /* Database file holding the shared memory */ fd 4002 third_party/sqlite/src/src/os_unix.c unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */ fd 4109 third_party/sqlite/src/src/os_unix.c sqlite3_file *fd /* Database file holding the shared memory */ fd 4111 third_party/sqlite/src/src/os_unix.c UNUSED_PARAMETER(fd); fd 4124 third_party/sqlite/src/src/os_unix.c sqlite3_file *fd, /* The underlying database file */ fd 4132 third_party/sqlite/src/src/os_unix.c pDbFd = (unixFile*)fd; fd 4865 third_party/sqlite/src/src/os_unix.c int fd, fd 4871 third_party/sqlite/src/src/os_unix.c return fillInUnixFile(vfs, fd, dirfd, file, fileName, noLock, isDelete, 0); fd 4885 third_party/sqlite/src/src/os_unix.c int* fd) { fd 4891 third_party/sqlite/src/src/os_unix.c *fd = unusedFd->fd; fd 4907 third_party/sqlite/src/src/os_unix.c int fd, fd 4911 third_party/sqlite/src/src/os_unix.c unixSQLite3File->pUnused->fd = fd; fd 4954 third_party/sqlite/src/src/os_unix.c int fd = -1; /* File descriptor returned by open() */ fd 5014 third_party/sqlite/src/src/os_unix.c rc = chromium_sqlite3_get_reusable_file_handle(pFile, zName, flags, &fd); fd 5038 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 5046 third_party/sqlite/src/src/os_unix.c fd = robust_open(zName, openFlags, openMode); fd 5047 third_party/sqlite/src/src/os_unix.c OSTRACE(("OPENX %-3d %s 0%o\n", fd, zName, openFlags)); fd 5048 third_party/sqlite/src/src/os_unix.c if( fd<0 && errno!=EISDIR && isReadWrite && !isExclusive ){ fd 5055 third_party/sqlite/src/src/os_unix.c fd = robust_open(zName, openFlags, openMode); fd 5057 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 5062 third_party/sqlite/src/src/os_unix.c assert( fd>=0 ); fd 5067 third_party/sqlite/src/src/os_unix.c chromium_sqlite3_update_reusable_file_handle(pFile, fd, flags); fd 5083 third_party/sqlite/src/src/os_unix.c osFcntl(fd, F_SETFD, osFcntl(fd, F_GETFD, 0) | FD_CLOEXEC); fd 5091 third_party/sqlite/src/src/os_unix.c if( fstatfs(fd, &fsInfo) == -1 ){ fd 5093 third_party/sqlite/src/src/os_unix.c robust_close(p, fd, __LINE__); fd 5124 third_party/sqlite/src/src/os_unix.c robust_close(p, fd, __LINE__); fd 5131 third_party/sqlite/src/src/os_unix.c rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock, fd 5149 third_party/sqlite/src/src/os_unix.c rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock, fd 5176 third_party/sqlite/src/src/os_unix.c int fd; fd 5177 third_party/sqlite/src/src/os_unix.c rc = osOpenDirectory(zPath, &fd); fd 5180 third_party/sqlite/src/src/os_unix.c if( fsync(fd)==-1 ) fd 5182 third_party/sqlite/src/src/os_unix.c if( fsync(fd) ) fd 5187 third_party/sqlite/src/src/os_unix.c robust_close(0, fd, __LINE__); fd 5365 third_party/sqlite/src/src/os_unix.c int pid, fd; fd 5366 third_party/sqlite/src/src/os_unix.c fd = robust_open("/dev/urandom", O_RDONLY, 0); fd 5367 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 5376 third_party/sqlite/src/src/os_unix.c do{ nBuf = osRead(fd, zBuf, nBuf); }while( nBuf<0 && errno==EINTR ); fd 5377 third_party/sqlite/src/src/os_unix.c robust_close(0, fd, __LINE__); fd 5750 third_party/sqlite/src/src/os_unix.c int fd = -1; fd 5766 third_party/sqlite/src/src/os_unix.c fd = pUnused->fd; fd 5773 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 5774 third_party/sqlite/src/src/os_unix.c fd = robust_open(path, openFlags, SQLITE_DEFAULT_FILE_PERMISSIONS); fd 5776 third_party/sqlite/src/src/os_unix.c if( fd<0 && errno==ENOENT && islockfile ){ fd 5778 third_party/sqlite/src/src/os_unix.c fd = robust_open(path, openFlags, SQLITE_DEFAULT_FILE_PERMISSIONS); fd 5782 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 5784 third_party/sqlite/src/src/os_unix.c fd = robust_open(path, openFlags, SQLITE_DEFAULT_FILE_PERMISSIONS); fd 5787 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 5811 third_party/sqlite/src/src/os_unix.c pUnused->fd = fd; fd 5815 third_party/sqlite/src/src/os_unix.c rc = fillInUnixFile(&dummyVfs, fd, 0, (sqlite3_file*)pNew, path, 0, 0, 0); fd 5821 third_party/sqlite/src/src/os_unix.c robust_close(pNew, fd, __LINE__); fd 5888 third_party/sqlite/src/src/os_unix.c int fd = -1; fd 5906 third_party/sqlite/src/src/os_unix.c fd = robust_open(tPath, (O_RDWR|O_CREAT|O_EXCL), fd 5908 third_party/sqlite/src/src/os_unix.c if( fd<0 ){ fd 5912 third_party/sqlite/src/src/os_unix.c if( osPwrite(fd, buf, readLen, 0) != (ssize_t)readLen ){ fd 5923 third_party/sqlite/src/src/os_unix.c conchFile->h = fd; fd 5928 third_party/sqlite/src/src/os_unix.c if( fd>=0 ){ fd 5930 third_party/sqlite/src/src/os_unix.c robust_close(pFile, fd, __LINE__); fd 6182 third_party/sqlite/src/src/os_unix.c int fd = robust_open(pCtx->dbPath, pFile->openFlags, fd 6184 third_party/sqlite/src/src/os_unix.c OSTRACE(("TRANSPROXY: OPEN %d\n", fd)); fd 6185 third_party/sqlite/src/src/os_unix.c if( fd>=0 ){ fd 6186 third_party/sqlite/src/src/os_unix.c pFile->h = fd; fd 1550 third_party/sqlite/src/src/os_win.c sqlite3_file *fd, /* Database holding shared memory */ fd 1558 third_party/sqlite/src/src/os_win.c pDbFd = (winFile*)fd; fd 1591 third_party/sqlite/src/src/os_win.c sqlite3_file *fd, /* Database file holding the shared memory */ fd 1596 third_party/sqlite/src/src/os_win.c winFile *pDbFd = (winFile*)fd; /* Connection holding shared memory */ fd 1700 third_party/sqlite/src/src/os_win.c sqlite3_file *fd /* Database holding the shared memory */ fd 1702 third_party/sqlite/src/src/os_win.c UNUSED_PARAMETER(fd); fd 1728 third_party/sqlite/src/src/os_win.c sqlite3_file *fd, /* Handle open on database file */ fd 1734 third_party/sqlite/src/src/os_win.c winFile *pDbFd = (winFile*)fd; fd 131 third_party/sqlite/src/src/pager.c #define PAGERID(p) ((int)(p->fd)) fd 132 third_party/sqlite/src/src/pager.c #define FILEHANDLEID(fd) ((int)fd) fd 649 third_party/sqlite/src/src/pager.c sqlite3_file *fd; /* File descriptor for database */ fd 1019 third_party/sqlite/src/src/pager.c static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){ fd 1021 third_party/sqlite/src/src/pager.c int rc = sqlite3OsRead(fd, ac, sizeof(ac), offset); fd 1038 third_party/sqlite/src/src/pager.c static int write32bits(sqlite3_file *fd, i64 offset, u32 val){ fd 1041 third_party/sqlite/src/src/pager.c return sqlite3OsWrite(fd, ac, 4, offset); fd 1059 third_party/sqlite/src/src/pager.c if( isOpen(pPager->fd) ){ fd 1061 third_party/sqlite/src/src/pager.c rc = sqlite3OsUnlock(pPager->fd, eLock); fd 1085 third_party/sqlite/src/src/pager.c rc = sqlite3OsLock(pPager->fd, eLock); fd 1119 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) ); fd 1120 third_party/sqlite/src/src/pager.c dc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 1383 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) || pPager->noSync ); fd 1385 third_party/sqlite/src/src/pager.c || (sqlite3OsDeviceCharacteristics(pPager->fd)&SQLITE_IOCAP_SAFE_APPEND) fd 1742 third_party/sqlite/src/src/pager.c int iDc = isOpen(pPager->fd)?sqlite3OsDeviceCharacteristics(pPager->fd):0; fd 2226 third_party/sqlite/src/src/pager.c if( isOpen(pPager->fd) fd 2233 third_party/sqlite/src/src/pager.c rc = sqlite3OsWrite(pPager->fd, (u8*)aData, pPager->pageSize, ofst); fd 2476 third_party/sqlite/src/src/pager.c if( isOpen(pPager->fd) fd 2483 third_party/sqlite/src/src/pager.c rc = sqlite3OsFileSize(pPager->fd, ¤tSize); fd 2487 third_party/sqlite/src/src/pager.c rc = sqlite3OsTruncate(pPager->fd, newSize); fd 2494 third_party/sqlite/src/src/pager.c rc = sqlite3OsWrite(pPager->fd, pTmp, szPage, newSize-szPage); fd 2519 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 2526 third_party/sqlite/src/src/pager.c pPager->sectorSize = sqlite3OsSectorSize(pPager->fd); fd 2738 third_party/sqlite/src/src/pager.c pPager->fd->pMethods==0 || fd 2739 third_party/sqlite/src/src/pager.c sqlite3OsFileControl(pPager->fd,SQLITE_FCNTL_DB_UNCHANGED,0)>=SQLITE_OK fd 2803 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) ); fd 2805 third_party/sqlite/src/src/pager.c if( NEVER(!isOpen(pPager->fd)) ){ fd 2817 third_party/sqlite/src/src/pager.c rc = sqlite3OsRead(pPager->fd, pPg->pData, pgsz, iOffset); fd 3070 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 3071 third_party/sqlite/src/src/pager.c if( isOpen(pPager->fd) ){ fd 3072 third_party/sqlite/src/src/pager.c int rc = sqlite3OsFileSize(pPager->fd, &n); fd 3490 third_party/sqlite/src/src/pager.c if( pPager->eState>PAGER_OPEN && isOpen(pPager->fd) ){ fd 3491 third_party/sqlite/src/src/pager.c rc = sqlite3OsFileSize(pPager->fd, &nByte); fd 3587 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 3595 third_party/sqlite/src/src/pager.c if( isOpen(pPager->fd) ){ fd 3597 third_party/sqlite/src/src/pager.c rc = sqlite3OsRead(pPager->fd, pDest, N, 0); fd 3775 third_party/sqlite/src/src/pager.c sqlite3OsClose(pPager->fd); fd 3856 third_party/sqlite/src/src/pager.c const int iDc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 3996 third_party/sqlite/src/src/pager.c if( !isOpen(pPager->fd) ){ fd 3998 third_party/sqlite/src/src/pager.c rc = pagerOpentemp(pPager, pPager->fd, pPager->vfsFlags); fd 4004 third_party/sqlite/src/src/pager.c assert( rc!=SQLITE_OK || isOpen(pPager->fd) ); fd 4007 third_party/sqlite/src/src/pager.c sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SIZE_HINT, &szFile); fd 4033 third_party/sqlite/src/src/pager.c rc = sqlite3OsWrite(pPager->fd, pData, pPager->pageSize, offset); fd 4385 third_party/sqlite/src/src/pager.c pPager->fd = (sqlite3_file*)(pPtr += ROUND8(pcacheSize)); fd 4412 third_party/sqlite/src/src/pager.c rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout); fd 4436 third_party/sqlite/src/src/pager.c int iDc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 4478 third_party/sqlite/src/src/pager.c sqlite3OsClose(pPager->fd); fd 4489 third_party/sqlite/src/src/pager.c PAGERTRACE(("OPEN %d %s\n", FILEHANDLEID(pPager->fd), pPager->zFilename)); fd 4524 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) || tempFile ); fd 4580 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) ); fd 4602 third_party/sqlite/src/src/pager.c rc = sqlite3OsCheckReservedLock(pPager->fd, &locked); fd 4851 third_party/sqlite/src/src/pager.c rc = sqlite3OsRead(pPager->fd, &dbFileVers, sizeof(dbFileVers), 24); fd 5013 third_party/sqlite/src/src/pager.c if( MEMDB || pPager->dbSize<pgno || noContent || !isOpen(pPager->fd) ){ fd 5628 third_party/sqlite/src/src/pager.c assert( !pPager->tempFile && isOpen(pPager->fd) ); fd 5653 third_party/sqlite/src/src/pager.c rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0); fd 5680 third_party/sqlite/src/src/pager.c rc = sqlite3OsSync(pPager->fd, pPager->syncFlags); fd 5681 third_party/sqlite/src/src/pager.c }else if( isOpen(pPager->fd) ){ fd 5683 third_party/sqlite/src/src/pager.c sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SYNC_OMITTED, (void *)&rc); fd 6267 third_party/sqlite/src/src/pager.c return pPager->fd; fd 6572 third_party/sqlite/src/src/pager.c assert( isOpen(pPager->fd) || pPager->exclusiveMode ); fd 6685 third_party/sqlite/src/src/pager.c const sqlite3_io_methods *pMethods = pPager->fd->pMethods; fd 6733 third_party/sqlite/src/src/pager.c pPager->fd, pPager->zWal, pPager->exclusiveMode, &pPager->pWal fd 536 third_party/sqlite/src/src/test2.c sqlite3_file *fd = 0; fd 548 third_party/sqlite/src/src/test2.c rc = sqlite3OsOpenMalloc(pVfs, argv[2], &fd, fd 557 third_party/sqlite/src/src/test2.c rc = sqlite3OsWrite(fd, "Hello, World!", 14, offset); fd 558 third_party/sqlite/src/src/test2.c sqlite3OsCloseFree(fd); fd 151 third_party/sqlite/src/src/test_demovfs.c int fd; /* File descriptor */ fd 171 third_party/sqlite/src/src/test_demovfs.c ofst = lseek(p->fd, iOfst, SEEK_SET); fd 176 third_party/sqlite/src/src/test_demovfs.c nWrite = write(p->fd, zBuf, iAmt); fd 206 third_party/sqlite/src/src/test_demovfs.c close(p->fd); fd 235 third_party/sqlite/src/src/test_demovfs.c ofst = lseek(p->fd, iOfst, SEEK_SET); fd 239 third_party/sqlite/src/src/test_demovfs.c nRead = read(p->fd, zBuf, iAmt); fd 307 third_party/sqlite/src/src/test_demovfs.c if( ftruncate(((DemoFile *)pFile)->fd, size) ) return SQLITE_IOERR_TRUNCATE; fd 324 third_party/sqlite/src/src/test_demovfs.c rc = fsync(p->fd); fd 346 third_party/sqlite/src/src/test_demovfs.c rc = fstat(p->fd, &sStat); fd 435 third_party/sqlite/src/src/test_demovfs.c p->fd = open(zName, oflags, 0600); fd 436 third_party/sqlite/src/src/test_demovfs.c if( p->fd<0 ){ fd 92 third_party/sqlite/src/src/test_superlock.c sqlite3_file *fd, /* Database file handle */ fd 98 third_party/sqlite/src/src/test_superlock.c int (*xShmLock)(sqlite3_file*, int, int, int) = fd->pMethods->xShmLock; fd 100 third_party/sqlite/src/src/test_superlock.c rc = xShmLock(fd, idx, nByte, SQLITE_SHM_LOCK|SQLITE_SHM_EXCLUSIVE); fd 114 third_party/sqlite/src/src/test_superlock.c sqlite3_file *fd = 0; /* Main database file handle */ fd 118 third_party/sqlite/src/src/test_superlock.c rc = sqlite3_file_control(db, "main", SQLITE_FCNTL_FILE_POINTER, (void *)&fd); fd 124 third_party/sqlite/src/src/test_superlock.c rc = superlockShmLock(fd, 2, 1, pBusy); fd 134 third_party/sqlite/src/src/test_superlock.c rc = fd->pMethods->xShmMap(fd, 0, 32*1024, 1, &p); fd 142 third_party/sqlite/src/src/test_superlock.c rc = superlockShmLock(fd, 3, SQLITE_SHM_NLOCK-3, pBusy); fd 156 third_party/sqlite/src/src/test_superlock.c sqlite3_file *fd = 0; fd 157 third_party/sqlite/src/src/test_superlock.c rc = sqlite3_file_control(p->db, "main", SQLITE_FCNTL_FILE_POINTER, (void *)&fd); fd 159 third_party/sqlite/src/src/test_superlock.c fd->pMethods->xShmLock(fd, 2, 1, flags); fd 160 third_party/sqlite/src/src/test_superlock.c fd->pMethods->xShmLock(fd, 3, SQLITE_SHM_NLOCK-3, flags); fd 94 third_party/sqlite/src/src/test_syscall.c static int ts_close(int fd); fd 98 third_party/sqlite/src/src/test_syscall.c static int ts_fstat(int fd, struct stat *p); fd 99 third_party/sqlite/src/src/test_syscall.c static int ts_ftruncate(int fd, off_t n); fd 100 third_party/sqlite/src/src/test_syscall.c static int ts_fcntl(int fd, int cmd, ... ); fd 101 third_party/sqlite/src/src/test_syscall.c static int ts_read(int fd, void *aBuf, size_t nBuf); fd 102 third_party/sqlite/src/src/test_syscall.c static int ts_pread(int fd, void *aBuf, size_t nBuf, off_t off); fd 103 third_party/sqlite/src/src/test_syscall.c static int ts_pread64(int fd, void *aBuf, size_t nBuf, off_t off); fd 104 third_party/sqlite/src/src/test_syscall.c static int ts_write(int fd, const void *aBuf, size_t nBuf); fd 105 third_party/sqlite/src/src/test_syscall.c static int ts_pwrite(int fd, const void *aBuf, size_t nBuf, off_t off); fd 106 third_party/sqlite/src/src/test_syscall.c static int ts_pwrite64(int fd, const void *aBuf, size_t nBuf, off_t off); fd 107 third_party/sqlite/src/src/test_syscall.c static int ts_fchmod(int fd, mode_t mode); fd 108 third_party/sqlite/src/src/test_syscall.c static int ts_fallocate(int fd, off_t off, off_t len); fd 216 third_party/sqlite/src/src/test_syscall.c static int ts_close(int fd){ fd 223 third_party/sqlite/src/src/test_syscall.c orig_close(fd); fd 226 third_party/sqlite/src/src/test_syscall.c return orig_close(fd); fd 262 third_party/sqlite/src/src/test_syscall.c static int ts_fstat(int fd, struct stat *p){ fd 266 third_party/sqlite/src/src/test_syscall.c return orig_fstat(fd, p); fd 272 third_party/sqlite/src/src/test_syscall.c static int ts_ftruncate(int fd, off_t n){ fd 276 third_party/sqlite/src/src/test_syscall.c return orig_ftruncate(fd, n); fd 282 third_party/sqlite/src/src/test_syscall.c static int ts_fcntl(int fd, int cmd, ... ){ fd 290 third_party/sqlite/src/src/test_syscall.c return orig_fcntl(fd, cmd, pArg); fd 296 third_party/sqlite/src/src/test_syscall.c static int ts_read(int fd, void *aBuf, size_t nBuf){ fd 300 third_party/sqlite/src/src/test_syscall.c return orig_read(fd, aBuf, nBuf); fd 306 third_party/sqlite/src/src/test_syscall.c static int ts_pread(int fd, void *aBuf, size_t nBuf, off_t off){ fd 310 third_party/sqlite/src/src/test_syscall.c return orig_pread(fd, aBuf, nBuf, off); fd 316 third_party/sqlite/src/src/test_syscall.c static int ts_pread64(int fd, void *aBuf, size_t nBuf, off_t off){ fd 320 third_party/sqlite/src/src/test_syscall.c return orig_pread64(fd, aBuf, nBuf, off); fd 326 third_party/sqlite/src/src/test_syscall.c static int ts_write(int fd, const void *aBuf, size_t nBuf){ fd 330 third_party/sqlite/src/src/test_syscall.c return orig_write(fd, aBuf, nBuf); fd 336 third_party/sqlite/src/src/test_syscall.c static int ts_pwrite(int fd, const void *aBuf, size_t nBuf, off_t off){ fd 340 third_party/sqlite/src/src/test_syscall.c return orig_pwrite(fd, aBuf, nBuf, off); fd 346 third_party/sqlite/src/src/test_syscall.c static int ts_pwrite64(int fd, const void *aBuf, size_t nBuf, off_t off){ fd 350 third_party/sqlite/src/src/test_syscall.c return orig_pwrite64(fd, aBuf, nBuf, off); fd 356 third_party/sqlite/src/src/test_syscall.c static int ts_fchmod(int fd, mode_t mode){ fd 360 third_party/sqlite/src/src/test_syscall.c return orig_fchmod(fd, mode); fd 372 third_party/sqlite/src/src/test_syscall.c static int ts_fallocate(int fd, off_t off, off_t len){ fd 376 third_party/sqlite/src/src/test_syscall.c return orig_fallocate(fd, off, len); fd 15 third_party/sqlite/src/tool/showwal.c static int fd = -1; /* File descriptor for reading the WAL file */ fd 55 third_party/sqlite/src/tool/showwal.c lseek(fd, ofst, SEEK_SET); fd 56 third_party/sqlite/src/tool/showwal.c read(fd, aData, nByte); fd 280 third_party/sqlite/src/tool/showwal.c fd = open(argv[1], O_RDONLY); fd 281 third_party/sqlite/src/tool/showwal.c if( fd<0 ){ fd 287 third_party/sqlite/src/tool/showwal.c lseek(fd, 10, SEEK_SET); fd 288 third_party/sqlite/src/tool/showwal.c read(fd, zPgSz, 2); fd 292 third_party/sqlite/src/tool/showwal.c fstat(fd, &sbuf); fd 353 third_party/sqlite/src/tool/showwal.c close(fd); fd 85 third_party/talloc/libreplace/getifaddrs.c int fd, i, n; fd 92 third_party/talloc/libreplace/getifaddrs.c if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { fd 99 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFCONF, &ifc) != 0) { fd 100 third_party/talloc/libreplace/getifaddrs.c close(fd); fd 110 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFFLAGS, &ifr[i]) == -1) { fd 123 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFADDR, &ifr[i]) != -1) { fd 128 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFNETMASK, &ifr[i]) != -1) { fd 140 third_party/talloc/libreplace/getifaddrs.c close(fd); fd 162 third_party/talloc/libreplace/getifaddrs.c int fd, i, n; fd 169 third_party/talloc/libreplace/getifaddrs.c if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { fd 176 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, I_STR, &strioctl) < 0) { fd 177 third_party/talloc/libreplace/getifaddrs.c close(fd); fd 209 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, I_STR, &strioctl) != 0) { fd 219 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, I_STR, &strioctl) != 0) { fd 234 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, I_STR, &strioctl) != 0) { fd 244 third_party/talloc/libreplace/getifaddrs.c close(fd); fd 259 third_party/talloc/libreplace/getifaddrs.c int fd, i; fd 267 third_party/talloc/libreplace/getifaddrs.c if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { fd 274 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFCONF, &ifc) != 0) { fd 275 third_party/talloc/libreplace/getifaddrs.c close(fd); fd 289 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFADDR, ifr) != 0) { fd 308 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFFLAGS, ifr) != 0) { fd 315 third_party/talloc/libreplace/getifaddrs.c if (ioctl(fd, SIOCGIFNETMASK, ifr) != 0) { fd 340 third_party/talloc/libreplace/getifaddrs.c close(fd); fd 59 third_party/talloc/libreplace/getpass.c static int tcgetattr(int fd, struct termio *_t) fd 61 third_party/talloc/libreplace/getpass.c return ioctl(fd, TCGETA, _t); fd 64 third_party/talloc/libreplace/getpass.c static int tcsetattr(int fd, int flags, struct termio *_t) fd 67 third_party/talloc/libreplace/getpass.c ioctl(fd, TCFLSH, TCIOFLUSH); fd 68 third_party/talloc/libreplace/getpass.c return ioctl(fd, TCSETS, _t); fd 84 third_party/talloc/libreplace/getpass.c static int tcgetattr(int fd, struct sgttyb *_t) fd 86 third_party/talloc/libreplace/getpass.c return ioctl(fd, TIOCGETP, (char *)_t); fd 89 third_party/talloc/libreplace/getpass.c static int tcsetattr(int fd, int flags, struct sgttyb *_t) fd 91 third_party/talloc/libreplace/getpass.c return ioctl(fd, TIOCSETP, (char *)_t); fd 61 third_party/talloc/libreplace/repdir_getdents.c int fd; fd 76 third_party/talloc/libreplace/repdir_getdents.c d->fd = open(dname, O_RDONLY); fd 77 third_party/talloc/libreplace/repdir_getdents.c if (d->fd == -1) { fd 81 third_party/talloc/libreplace/repdir_getdents.c if (fstat(d->fd, &sb) < 0) { fd 82 third_party/talloc/libreplace/repdir_getdents.c close(d->fd); fd 87 third_party/talloc/libreplace/repdir_getdents.c close(d->fd); fd 104 third_party/talloc/libreplace/repdir_getdents.c d->seekpos = lseek(d->fd, 0, SEEK_CUR); fd 105 third_party/talloc/libreplace/repdir_getdents.c d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE); fd 120 third_party/talloc/libreplace/repdir_getdents.c d->seekpos = lseek(d->fd, 0, SEEK_CUR); fd 135 third_party/talloc/libreplace/repdir_getdents.c d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET); fd 136 third_party/talloc/libreplace/repdir_getdents.c d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE); fd 151 third_party/talloc/libreplace/repdir_getdents.c int r = close(d->fd); fd 164 third_party/talloc/libreplace/repdir_getdents.c return d->fd; fd 63 third_party/talloc/libreplace/repdir_getdirentries.c int fd; fd 78 third_party/talloc/libreplace/repdir_getdirentries.c d->fd = open(dname, O_RDONLY); fd 79 third_party/talloc/libreplace/repdir_getdirentries.c if (d->fd == -1) { fd 83 third_party/talloc/libreplace/repdir_getdirentries.c if (fstat(d->fd, &sb) < 0) { fd 84 third_party/talloc/libreplace/repdir_getdirentries.c close(d->fd); fd 89 third_party/talloc/libreplace/repdir_getdirentries.c close(d->fd); fd 107 third_party/talloc/libreplace/repdir_getdirentries.c d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos); fd 127 third_party/talloc/libreplace/repdir_getdirentries.c d->seekpos = lseek(d->fd, 0, SEEK_CUR); fd 147 third_party/talloc/libreplace/repdir_getdirentries.c d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET); fd 148 third_party/talloc/libreplace/repdir_getdirentries.c d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos); fd 166 third_party/talloc/libreplace/repdir_getdirentries.c int r = close(d->fd); fd 179 third_party/talloc/libreplace/repdir_getdirentries.c return d->fd; fd 48 third_party/talloc/libreplace/test/os2_delete.c int fd; fd 50 third_party/talloc/libreplace/test/os2_delete.c fd = open(fname, O_CREAT|O_RDWR, 0600); fd 51 third_party/talloc/libreplace/test/os2_delete.c if (fd < 0) { fd 54 third_party/talloc/libreplace/test/os2_delete.c if (close(fd) != 0) { fd 22 third_party/talloc/libreplace/test/shared_mmap.c int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC,0666); fd 25 third_party/talloc/libreplace/test/shared_mmap.c if (fd == -1) exit(1); fd 28 third_party/talloc/libreplace/test/shared_mmap.c write(fd,&i,sizeof(i)); fd 31 third_party/talloc/libreplace/test/shared_mmap.c close(fd); fd 34 third_party/talloc/libreplace/test/shared_mmap.c fd = open(DATA,O_RDWR); fd 35 third_party/talloc/libreplace/test/shared_mmap.c if (fd == -1) exit(1); fd 40 third_party/talloc/libreplace/test/shared_mmap.c fd, 0); fd 50 third_party/talloc/libreplace/test/shared_mmap.c fd = open(DATA,O_RDWR); fd 51 third_party/talloc/libreplace/test/shared_mmap.c if (fd == -1) exit(1); fd 56 third_party/talloc/libreplace/test/shared_mmap.c fd, 0); fd 57 third_party/talloc/libreplace/test/testsuite.c int fd; fd 61 third_party/talloc/libreplace/test/testsuite.c fd = open(TESTFILE, O_RDWR|O_CREAT, 0600); fd 62 third_party/talloc/libreplace/test/testsuite.c if (fd == -1) { fd 67 third_party/talloc/libreplace/test/testsuite.c if (ftruncate(fd, size) != 0) { fd 71 third_party/talloc/libreplace/test/testsuite.c if (fstat(fd, &st) != 0) { fd 879 third_party/talloc/libreplace/test/testsuite.c int fd; fd 884 third_party/talloc/libreplace/test/testsuite.c fd = open(TESTFILE, O_RDWR|O_CREAT, 0600); fd 885 third_party/talloc/libreplace/test/testsuite.c if (fd == -1) { fd 892 third_party/talloc/libreplace/test/testsuite.c if (fstat(fd, &st1) != 0) { fd 908 third_party/talloc/libreplace/test/testsuite.c if (fstat(fd, &st2) != 0) { fd 922 third_party/talloc/libreplace/test/testsuite.c if (fstat(fd, &st3) != 0) { fd 961 third_party/talloc/libreplace/test/testsuite.c int fd; fd 966 third_party/talloc/libreplace/test/testsuite.c fd = open(TESTFILE, O_RDWR|O_CREAT, 0600); fd 967 third_party/talloc/libreplace/test/testsuite.c if (fd == -1) { fd 974 third_party/talloc/libreplace/test/testsuite.c if (fstat(fd, &st1) != 0) { fd 991 third_party/talloc/libreplace/test/testsuite.c if (fstat(fd, &st2) != 0) { fd 2019 third_party/tcmalloc/chromium/src/base/linux_syscall_support.h LSS_INLINE _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, fd 52 third_party/tcmalloc/chromium/src/base/logging.cc RawFD fd = CreateFileA(filename, GENERIC_WRITE, 0, NULL, fd 54 third_party/tcmalloc/chromium/src/base/logging.cc if (fd != kIllegalRawFD && GetLastError() == ERROR_ALREADY_EXISTS) fd 55 third_party/tcmalloc/chromium/src/base/logging.cc SetEndOfFile(fd); // truncate the existing file fd 56 third_party/tcmalloc/chromium/src/base/logging.cc return fd; fd 93 third_party/tcmalloc/chromium/src/base/logging.cc void RawWrite(RawFD fd, const char* buf, size_t len) { fd 96 third_party/tcmalloc/chromium/src/base/logging.cc NO_INTR(r = write(fd, buf, len)); fd 103 third_party/tcmalloc/chromium/src/base/logging.cc void RawClose(RawFD fd) { fd 104 third_party/tcmalloc/chromium/src/base/logging.cc NO_INTR(close(fd)); fd 289 third_party/tcmalloc/chromium/src/base/logging.h void RawWrite(RawFD fd, const char* buf, size_t len); fd 290 third_party/tcmalloc/chromium/src/base/logging.h void RawClose(RawFD fd); fd 101 third_party/tcmalloc/chromium/src/base/sysinfo.cc # define saferead(fd, buffer, size) syscall(SYS_read, fd, buffer, size) fd 103 third_party/tcmalloc/chromium/src/base/sysinfo.cc # define saferead(fd, buffer, size) read(fd, buffer, size) fd 106 third_party/tcmalloc/chromium/src/base/sysinfo.cc # define safeclose(fd) syscall(SYS_close, fd) fd 108 third_party/tcmalloc/chromium/src/base/sysinfo.cc # define safeclose(fd) close(fd) fd 148 third_party/tcmalloc/chromium/src/base/sysinfo.cc int fd = safeopen("/proc/self/environ", O_RDONLY); fd 150 third_party/tcmalloc/chromium/src/base/sysinfo.cc if (fd == -1 || // unable to open the file, fall back onto libc fd 151 third_party/tcmalloc/chromium/src/base/sysinfo.cc saferead(fd, envbuf, sizeof(envbuf) - 2) < 0) { // error reading file fd 154 third_party/tcmalloc/chromium/src/base/sysinfo.cc if (fd != -1) safeclose(fd); fd 157 third_party/tcmalloc/chromium/src/base/sysinfo.cc safeclose(fd); fd 263 third_party/tcmalloc/chromium/src/base/sysinfo.cc int fd = open(file, O_RDONLY); fd 264 third_party/tcmalloc/chromium/src/base/sysinfo.cc if (fd != -1) { fd 268 third_party/tcmalloc/chromium/src/base/sysinfo.cc read(fd, line, sizeof(line) - 1); fd 274 third_party/tcmalloc/chromium/src/base/sysinfo.cc close(fd); fd 334 third_party/tcmalloc/chromium/src/base/sysinfo.cc int fd = open(pname, O_RDONLY); fd 335 third_party/tcmalloc/chromium/src/base/sysinfo.cc if (fd == -1) { fd 361 third_party/tcmalloc/chromium/src/base/sysinfo.cc chars_read = read(fd, line + linelen, bytes_to_read); fd 389 third_party/tcmalloc/chromium/src/base/sysinfo.cc close(fd); fd 1128 third_party/tcmalloc/chromium/src/base/sysinfo.cc void DumpProcSelfMaps(RawFD fd) { fd 1140 third_party/tcmalloc/chromium/src/base/sysinfo.cc RawWrite(fd, linebuf.buf_, written); fd 232 third_party/tcmalloc/chromium/src/base/sysinfo.h void DumpProcSelfMaps(RawFD fd); fd 87 third_party/tcmalloc/chromium/src/base/vdso_support.cc int fd = open("/proc/self/auxv", O_RDONLY); fd 88 third_party/tcmalloc/chromium/src/base/vdso_support.cc if (fd == -1) { fd 95 third_party/tcmalloc/chromium/src/base/vdso_support.cc while (read(fd, &aux, sizeof(aux)) == sizeof(aux)) { fd 103 third_party/tcmalloc/chromium/src/base/vdso_support.cc close(fd); fd 134 third_party/tcmalloc/chromium/src/debugallocation.cc static void TracePrintf(int fd, const char *fmt, ...) fd 859 third_party/tcmalloc/chromium/src/debugallocation.cc static void TracePrintf(int fd, const char *fmt, ...) { fd 921 third_party/tcmalloc/chromium/src/debugallocation.cc write(fd, buf, i); fd 928 third_party/tcmalloc/chromium/src/debugallocation.cc write(fd, buf, i); fd 70 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawFD fd; fd 75 third_party/tcmalloc/chromium/src/deep-heap-profile.cc fd = open(filename, O_RDONLY); fd 76 third_party/tcmalloc/chromium/src/deep-heap-profile.cc if (fd == kIllegalRawFD) { fd 81 third_party/tcmalloc/chromium/src/deep-heap-profile.cc size_t length = read(fd, cmdline, sizeof(cmdline) - 1); fd 82 third_party/tcmalloc/chromium/src/deep-heap-profile.cc close(fd); fd 333 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawFD fd) { fd 334 third_party/tcmalloc/chromium/src/deep-heap-profile.cc TextBuffer buffer(raw_buffer, buffer_size, fd); fd 697 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawFD fd = RawOpenForWriting(filename); fd 698 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RAW_DCHECK(fd != kIllegalRawFD, ""); fd 700 third_party/tcmalloc/chromium/src/deep-heap-profile.cc TextBuffer buffer(raw_buffer, buffer_size, fd); fd 721 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawClose(fd); fd 1133 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawFD fd = RawOpenForWriting(filename); fd 1134 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RAW_DCHECK(fd != kIllegalRawFD, ""); fd 1141 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawWrite(fd, raw_buffer, length); fd 1142 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawClose(fd); fd 1158 third_party/tcmalloc/chromium/src/deep-heap-profile.cc RawFD fd) { fd 75 third_party/tcmalloc/chromium/src/deep-heap-profile.h RawFD fd); fd 114 third_party/tcmalloc/chromium/src/deep-heap-profile.h TextBuffer(char *raw_buffer, int size, RawFD fd) fd 118 third_party/tcmalloc/chromium/src/deep-heap-profile.h fd_(fd) { fd 136 third_party/tcmalloc/chromium/src/gperftools/malloc_hook.h int fd, fd 160 third_party/tcmalloc/chromium/src/gperftools/malloc_hook.h int fd, fd 179 third_party/tcmalloc/chromium/src/gperftools/malloc_hook.h int fd, fd 270 third_party/tcmalloc/chromium/src/gperftools/malloc_hook.h int fd, off_t offset); fd 323 third_party/tcmalloc/chromium/src/gperftools/malloc_hook.h int fd, fd 330 third_party/tcmalloc/chromium/src/gperftools/malloc_hook.h int fd, fd 336 third_party/tcmalloc/chromium/src/gperftools/malloc_hook.h int fd, fd 86 third_party/tcmalloc/chromium/src/gperftools/malloc_hook_c.h int fd, fd 98 third_party/tcmalloc/chromium/src/gperftools/malloc_hook_c.h int fd, fd 109 third_party/tcmalloc/chromium/src/gperftools/malloc_hook_c.h int fd, fd 113 third_party/tcmalloc/chromium/src/heap-checker.cc int fd = open("/proc/self/status", O_RDONLY); fd 114 third_party/tcmalloc/chromium/src/heap-checker.cc if (fd == -1) { fd 117 third_party/tcmalloc/chromium/src/heap-checker.cc const int len = read(fd, buf, sizeof(buf)); fd 127 third_party/tcmalloc/chromium/src/heap-checker.cc close(fd); fd 354 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawFD fd = RawOpenForWriting(file_name); fd 355 third_party/tcmalloc/chromium/src/heap-profile-table.cc if (fd == kIllegalRawFD) { fd 359 third_party/tcmalloc/chromium/src/heap-profile-table.cc const DumpMarkedArgs args(fd, mark); fd 361 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawClose(fd); fd 366 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawFD fd = RawOpenForWriting(file_name); fd 367 third_party/tcmalloc/chromium/src/heap-profile-table.cc if (fd == kIllegalRawFD) { fd 377 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(fd, kTypeProfileStatsHeader, strlen(kTypeProfileStatsHeader)); fd 378 third_party/tcmalloc/chromium/src/heap-profile-table.cc const DumpArgs args(fd, NULL); fd 380 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawClose(fd); fd 485 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(args.fd, buf, len); fd 507 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(args.fd, buf, len); fd 525 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(args.fd, buf, len); fd 563 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawFD fd = RawOpenForWriting(file_name); fd 564 third_party/tcmalloc/chromium/src/heap-profile-table.cc if (fd == kIllegalRawFD) { fd 568 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(fd, kProfileHeader, strlen(kProfileHeader)); fd 572 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(fd, buf, len); fd 573 third_party/tcmalloc/chromium/src/heap-profile-table.cc const DumpArgs args(fd, NULL); fd 575 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawWrite(fd, kProcSelfMapsHeader, strlen(kProcSelfMapsHeader)); fd 576 third_party/tcmalloc/chromium/src/heap-profile-table.cc DumpProcSelfMaps(fd); fd 577 third_party/tcmalloc/chromium/src/heap-profile-table.cc RawClose(fd); fd 300 third_party/tcmalloc/chromium/src/heap-profile-table.h : fd(fd_arg), fd 304 third_party/tcmalloc/chromium/src/heap-profile-table.h RawFD fd; // file to write to fd 311 third_party/tcmalloc/chromium/src/heap-profile-table.h : fd(fd_arg), fd 315 third_party/tcmalloc/chromium/src/heap-profile-table.h RawFD fd; // file to write to. fd 290 third_party/tcmalloc/chromium/src/heap-profiler.cc RawFD fd = RawOpenForWriting(file_name); fd 291 third_party/tcmalloc/chromium/src/heap-profiler.cc if (fd == kIllegalRawFD) { fd 306 third_party/tcmalloc/chromium/src/heap-profiler.cc kProfileBufferSize, fd); fd 310 third_party/tcmalloc/chromium/src/heap-profiler.cc RawWrite(fd, profile, strlen(profile)); fd 312 third_party/tcmalloc/chromium/src/heap-profiler.cc RawClose(fd); fd 422 third_party/tcmalloc/chromium/src/heap-profiler.cc int prot, int flags, int fd, off_t offset) { fd 430 third_party/tcmalloc/chromium/src/heap-profiler.cc (uintptr_t) start, size, prot, flags, fd, (unsigned int) offset, fd 193 third_party/tcmalloc/chromium/src/malloc_hook-inl.h int fd, fd 196 third_party/tcmalloc/chromium/src/malloc_hook-inl.h InvokePreMmapHookSlow(start, size, protection, flags, fd, offset); fd 202 third_party/tcmalloc/chromium/src/malloc_hook-inl.h fd, offset); fd 216 third_party/tcmalloc/chromium/src/malloc_hook-inl.h int fd, fd 219 third_party/tcmalloc/chromium/src/malloc_hook-inl.h InvokeMmapHookSlow(result, start, size, protection, flags, fd, offset); fd 226 third_party/tcmalloc/chromium/src/malloc_hook-inl.h fd, offset); fd 234 third_party/tcmalloc/chromium/src/malloc_hook-inl.h int fd, fd 240 third_party/tcmalloc/chromium/src/malloc_hook-inl.h fd, offset, fd 124 third_party/tcmalloc/chromium/src/malloc_hook.cc int fd, fd 127 third_party/tcmalloc/chromium/src/malloc_hook.cc MallocHook::InvokePreMmapHook(start, size, protection, flags, fd, offset); fd 536 third_party/tcmalloc/chromium/src/malloc_hook.cc int fd, fd 538 third_party/tcmalloc/chromium/src/malloc_hook.cc INVOKE_HOOKS(PreMmapHook, premmap_hooks_, (start, size, protection, flags, fd, fd 547 third_party/tcmalloc/chromium/src/malloc_hook.cc int fd, fd 550 third_party/tcmalloc/chromium/src/malloc_hook.cc fd, offset)); fd 557 third_party/tcmalloc/chromium/src/malloc_hook.cc int fd, fd 561 third_party/tcmalloc/chromium/src/malloc_hook.cc (start, size, protection, flags, fd, offset, result)); fd 706 third_party/tcmalloc/chromium/src/malloc_hook.cc int flags, int fd, off_t offset) { fd 709 third_party/tcmalloc/chromium/src/malloc_hook.cc start, length, prot, flags, fd, offset, &result)) { fd 710 third_party/tcmalloc/chromium/src/malloc_hook.cc result = mmap(start, length, prot, flags, fd, offset); fd 60 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h int fd, off_t offset) __THROW fd 70 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h int fd, off_t offset) __THROW { fd 72 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h start, length, prot, flags, fd, offset); fd 117 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h int fd, off_t offset) __THROW { fd 118 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset); fd 121 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h start, length, prot, flags, fd, offset, &result)) { fd 122 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h result = do_mmap(start, length, prot, flags, fd, fd 125 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset); fd 147 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h int flags, int fd, off_t offset) { fd 150 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h start, length, prot, flags, fd, offset, &result)) { fd 151 third_party/tcmalloc/chromium/src/malloc_hook_mmap_freebsd.h result = do_mmap(start, length, prot, flags, fd, offset); fd 80 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int fd, __off64_t offset) __THROW { fd 83 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h return (void *)syscall(SYS_mmap, start, length, prot, flags, fd, offset); fd 93 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int fd, __off64_t offset) __THROW { fd 110 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, fd 130 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int32 args[6] = { (int32) start, (int32) length, prot, flags, fd, fd 164 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int fd, __off64_t offset ) __THROW fd 167 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int fd, off_t offset) __THROW fd 181 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int fd, __off64_t offset) __THROW { fd 182 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset); fd 185 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, offset, &result)) { fd 186 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h result = do_mmap64(start, length, prot, flags, fd, offset); fd 188 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset); fd 195 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int fd, off_t offset) __THROW { fd 196 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset); fd 199 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, offset, &result)) { fd 200 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h result = do_mmap64(start, length, prot, flags, fd, fd 203 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset); fd 249 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h int flags, int fd, off_t offset) { fd 252 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, offset, &result)) { fd 253 third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h result = do_mmap64(start, length, prot, flags, fd, offset); fd 749 third_party/tcmalloc/chromium/src/memory_region_map.cc int fd, off_t offset) { fd 755 third_party/tcmalloc/chromium/src/memory_region_map.cc reinterpret_cast<uint64>(start), prot, flags, fd, fd 389 third_party/tcmalloc/chromium/src/memory_region_map.h int fd, off_t offset); fd 98 third_party/tcmalloc/chromium/src/profiledata.cc int fd = open(fname, O_CREAT | O_WRONLY | O_TRUNC, 0666); fd 99 third_party/tcmalloc/chromium/src/profiledata.cc if (fd < 0) { fd 126 third_party/tcmalloc/chromium/src/profiledata.cc out_ = fd; fd 138 third_party/tcmalloc/chromium/src/profiledata.cc static void FDWrite(int fd, const char* buf, size_t len) { fd 141 third_party/tcmalloc/chromium/src/profiledata.cc NO_INTR(r = write(fd, buf, len)); fd 148 third_party/tcmalloc/chromium/src/profiledata.cc static void DumpProcSelfMaps(int fd) { fd 160 third_party/tcmalloc/chromium/src/profiledata.cc FDWrite(fd, linebuf.buf_, written); fd 307 third_party/tcmalloc/chromium/src/tests/malloc_hook_test.cc int fd, fd 311 third_party/tcmalloc/chromium/src/tests/malloc_hook_test.cc if (fd == kMmapMagicFd) { fd 74 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) { fd 75 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc CHECK_GE(fd, 0); fd 80 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc NO_INTR(len = read(fd, buf0 + num_bytes, count - num_bytes)); fd 97 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc explicit FileDescriptor(int fd) : fd_(fd) {} fd 165 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); fd 166 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc if (fd.get() < 0) fd 171 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc ssize_t bytes_read = ReadPersistent(fd.get(), filedata.get(), expected_bytes); fd 188 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); fd 189 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc if (fd.get() < 0) fd 193 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc if (fstat(fd.get(), &statbuf) != 0) fd 200 third_party/tcmalloc/chromium/src/tests/profiledata_unittest.cc if (ReadPersistent(fd.get(), filedata.get(), filesize) != filesize) fd 1175 third_party/tcmalloc/chromium/src/tests/tcmalloc_unittest.cc int fd = open("/dev/zero", O_RDONLY); fd 1176 third_party/tcmalloc/chromium/src/tests/tcmalloc_unittest.cc CHECK_GE(fd, 0); // make sure the open succeeded fd 1177 third_party/tcmalloc/chromium/src/tests/tcmalloc_unittest.cc p1 = mmap(NULL, 8192, PROT_READ, MAP_SHARED, fd, 0); fd 1182 third_party/tcmalloc/chromium/src/tests/tcmalloc_unittest.cc close(fd); fd 277 third_party/tcmalloc/chromium/src/windows/port.h int fd, off_t offset) { fd 278 third_party/tcmalloc/chromium/src/windows/port.h if (addr == NULL && fd == -1 && offset == 0 && fd 365 third_party/tcmalloc/chromium/src/windows/port.h inline int close(int fd) { fd 366 third_party/tcmalloc/chromium/src/windows/port.h return _close(fd); fd 368 third_party/tcmalloc/chromium/src/windows/port.h inline ssize_t read(int fd, void *buf, size_t count) { fd 369 third_party/tcmalloc/chromium/src/windows/port.h return _read(fd, buf, count); fd 371 third_party/tcmalloc/chromium/src/windows/port.h inline ssize_t write(int fd, const void *buf, size_t count) { fd 372 third_party/tcmalloc/chromium/src/windows/port.h return _write(fd, buf, count); fd 374 third_party/tcmalloc/chromium/src/windows/port.h inline off_t lseek(int fd, off_t offset, int whence) { fd 375 third_party/tcmalloc/chromium/src/windows/port.h return _lseek(fd, offset, whence); fd 1923 third_party/tcmalloc/vendor/src/base/linux_syscall_support.h LSS_INLINE _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, fd 52 third_party/tcmalloc/vendor/src/base/logging.cc RawFD fd = CreateFileA(filename, GENERIC_WRITE, 0, NULL, fd 54 third_party/tcmalloc/vendor/src/base/logging.cc if (fd != kIllegalRawFD && GetLastError() == ERROR_ALREADY_EXISTS) fd 55 third_party/tcmalloc/vendor/src/base/logging.cc SetEndOfFile(fd); // truncate the existing file fd 56 third_party/tcmalloc/vendor/src/base/logging.cc return fd; fd 93 third_party/tcmalloc/vendor/src/base/logging.cc void RawWrite(RawFD fd, const char* buf, size_t len) { fd 96 third_party/tcmalloc/vendor/src/base/logging.cc NO_INTR(r = write(fd, buf, len)); fd 103 third_party/tcmalloc/vendor/src/base/logging.cc void RawClose(RawFD fd) { fd 104 third_party/tcmalloc/vendor/src/base/logging.cc NO_INTR(close(fd)); fd 255 third_party/tcmalloc/vendor/src/base/logging.h void RawWrite(RawFD fd, const char* buf, size_t len); fd 256 third_party/tcmalloc/vendor/src/base/logging.h void RawClose(RawFD fd); fd 96 third_party/tcmalloc/vendor/src/base/sysinfo.cc # define saferead(fd, buffer, size) syscall(SYS_read, fd, buffer, size) fd 98 third_party/tcmalloc/vendor/src/base/sysinfo.cc # define saferead(fd, buffer, size) read(fd, buffer, size) fd 101 third_party/tcmalloc/vendor/src/base/sysinfo.cc # define safeclose(fd) syscall(SYS_close, fd) fd 103 third_party/tcmalloc/vendor/src/base/sysinfo.cc # define safeclose(fd) close(fd) fd 143 third_party/tcmalloc/vendor/src/base/sysinfo.cc int fd = safeopen("/proc/self/environ", O_RDONLY); fd 145 third_party/tcmalloc/vendor/src/base/sysinfo.cc if (fd == -1 || // unable to open the file, fall back onto libc fd 146 third_party/tcmalloc/vendor/src/base/sysinfo.cc saferead(fd, envbuf, sizeof(envbuf) - 2) < 0) { // error reading file fd 149 third_party/tcmalloc/vendor/src/base/sysinfo.cc if (fd != -1) safeclose(fd); fd 152 third_party/tcmalloc/vendor/src/base/sysinfo.cc safeclose(fd); fd 248 third_party/tcmalloc/vendor/src/base/sysinfo.cc int fd = open(file, O_RDONLY); fd 249 third_party/tcmalloc/vendor/src/base/sysinfo.cc if (fd != -1) { fd 253 third_party/tcmalloc/vendor/src/base/sysinfo.cc read(fd, line, sizeof(line) - 1); fd 259 third_party/tcmalloc/vendor/src/base/sysinfo.cc close(fd); fd 319 third_party/tcmalloc/vendor/src/base/sysinfo.cc int fd = open(pname, O_RDONLY); fd 320 third_party/tcmalloc/vendor/src/base/sysinfo.cc if (fd == -1) { fd 346 third_party/tcmalloc/vendor/src/base/sysinfo.cc chars_read = read(fd, line + linelen, bytes_to_read); fd 374 third_party/tcmalloc/vendor/src/base/sysinfo.cc close(fd); fd 969 third_party/tcmalloc/vendor/src/base/sysinfo.cc void DumpProcSelfMaps(RawFD fd) { fd 981 third_party/tcmalloc/vendor/src/base/sysinfo.cc RawWrite(fd, linebuf.buf_, written); fd 232 third_party/tcmalloc/vendor/src/base/sysinfo.h void DumpProcSelfMaps(RawFD fd); fd 87 third_party/tcmalloc/vendor/src/base/vdso_support.cc int fd = open("/proc/self/auxv", O_RDONLY); fd 88 third_party/tcmalloc/vendor/src/base/vdso_support.cc if (fd == -1) { fd 95 third_party/tcmalloc/vendor/src/base/vdso_support.cc while (read(fd, &aux, sizeof(aux)) == sizeof(aux)) { fd 103 third_party/tcmalloc/vendor/src/base/vdso_support.cc close(fd); fd 140 third_party/tcmalloc/vendor/src/debugallocation.cc static void TracePrintf(int fd, const char *fmt, ...) fd 852 third_party/tcmalloc/vendor/src/debugallocation.cc static void TracePrintf(int fd, const char *fmt, ...) { fd 914 third_party/tcmalloc/vendor/src/debugallocation.cc write(fd, buf, i); fd 921 third_party/tcmalloc/vendor/src/debugallocation.cc write(fd, buf, i); fd 136 third_party/tcmalloc/vendor/src/gperftools/malloc_hook.h int fd, fd 160 third_party/tcmalloc/vendor/src/gperftools/malloc_hook.h int fd, fd 179 third_party/tcmalloc/vendor/src/gperftools/malloc_hook.h int fd, fd 270 third_party/tcmalloc/vendor/src/gperftools/malloc_hook.h int fd, off_t offset); fd 323 third_party/tcmalloc/vendor/src/gperftools/malloc_hook.h int fd, fd 330 third_party/tcmalloc/vendor/src/gperftools/malloc_hook.h int fd, fd 336 third_party/tcmalloc/vendor/src/gperftools/malloc_hook.h int fd, fd 86 third_party/tcmalloc/vendor/src/gperftools/malloc_hook_c.h int fd, fd 98 third_party/tcmalloc/vendor/src/gperftools/malloc_hook_c.h int fd, fd 109 third_party/tcmalloc/vendor/src/gperftools/malloc_hook_c.h int fd, fd 113 third_party/tcmalloc/vendor/src/heap-checker.cc int fd = open("/proc/self/status", O_RDONLY); fd 114 third_party/tcmalloc/vendor/src/heap-checker.cc if (fd == -1) { fd 117 third_party/tcmalloc/vendor/src/heap-checker.cc const int len = read(fd, buf, sizeof(buf)); fd 127 third_party/tcmalloc/vendor/src/heap-checker.cc close(fd); fd 474 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawWrite(args.fd, buf, len); fd 507 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawFD fd = RawOpenForWriting(file_name); fd 508 third_party/tcmalloc/vendor/src/heap-profile-table.cc if (fd != kIllegalRawFD) { fd 509 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawWrite(fd, kProfileHeader, strlen(kProfileHeader)); fd 513 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawWrite(fd, buf, len); fd 514 third_party/tcmalloc/vendor/src/heap-profile-table.cc const DumpArgs args(fd, NULL); fd 516 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawWrite(fd, kProcSelfMapsHeader, strlen(kProcSelfMapsHeader)); fd 517 third_party/tcmalloc/vendor/src/heap-profile-table.cc DumpProcSelfMaps(fd); fd 518 third_party/tcmalloc/vendor/src/heap-profile-table.cc RawClose(fd); fd 252 third_party/tcmalloc/vendor/src/heap-profile-table.h RawFD fd; // file to write to fd 256 third_party/tcmalloc/vendor/src/heap-profile-table.h : fd(a), profile_stats(d) { } fd 233 third_party/tcmalloc/vendor/src/heap-profiler.cc RawFD fd = RawOpenForWriting(file_name); fd 234 third_party/tcmalloc/vendor/src/heap-profiler.cc if (fd == kIllegalRawFD) { fd 249 third_party/tcmalloc/vendor/src/heap-profiler.cc RawWrite(fd, profile, strlen(profile)); fd 250 third_party/tcmalloc/vendor/src/heap-profiler.cc RawClose(fd); fd 343 third_party/tcmalloc/vendor/src/heap-profiler.cc int prot, int flags, int fd, off_t offset) { fd 351 third_party/tcmalloc/vendor/src/heap-profiler.cc (uintptr_t) start, size, prot, flags, fd, (unsigned int) offset, fd 193 third_party/tcmalloc/vendor/src/malloc_hook-inl.h int fd, fd 196 third_party/tcmalloc/vendor/src/malloc_hook-inl.h InvokePreMmapHookSlow(start, size, protection, flags, fd, offset); fd 202 third_party/tcmalloc/vendor/src/malloc_hook-inl.h fd, offset); fd 216 third_party/tcmalloc/vendor/src/malloc_hook-inl.h int fd, fd 219 third_party/tcmalloc/vendor/src/malloc_hook-inl.h InvokeMmapHookSlow(result, start, size, protection, flags, fd, offset); fd 226 third_party/tcmalloc/vendor/src/malloc_hook-inl.h fd, offset); fd 234 third_party/tcmalloc/vendor/src/malloc_hook-inl.h int fd, fd 240 third_party/tcmalloc/vendor/src/malloc_hook-inl.h fd, offset, fd 124 third_party/tcmalloc/vendor/src/malloc_hook.cc int fd, fd 127 third_party/tcmalloc/vendor/src/malloc_hook.cc MallocHook::InvokePreMmapHook(start, size, protection, flags, fd, offset); fd 536 third_party/tcmalloc/vendor/src/malloc_hook.cc int fd, fd 538 third_party/tcmalloc/vendor/src/malloc_hook.cc INVOKE_HOOKS(PreMmapHook, premmap_hooks_, (start, size, protection, flags, fd, fd 547 third_party/tcmalloc/vendor/src/malloc_hook.cc int fd, fd 550 third_party/tcmalloc/vendor/src/malloc_hook.cc fd, offset)); fd 557 third_party/tcmalloc/vendor/src/malloc_hook.cc int fd, fd 561 third_party/tcmalloc/vendor/src/malloc_hook.cc (start, size, protection, flags, fd, offset, result)); fd 706 third_party/tcmalloc/vendor/src/malloc_hook.cc int flags, int fd, off_t offset) { fd 709 third_party/tcmalloc/vendor/src/malloc_hook.cc start, length, prot, flags, fd, offset, &result)) { fd 710 third_party/tcmalloc/vendor/src/malloc_hook.cc result = mmap(start, length, prot, flags, fd, offset); fd 60 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h int fd, off_t offset) __THROW fd 70 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h int fd, off_t offset) __THROW { fd 72 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h start, length, prot, flags, fd, offset); fd 117 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h int fd, off_t offset) __THROW { fd 118 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset); fd 121 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h start, length, prot, flags, fd, offset, &result)) { fd 122 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h result = do_mmap(start, length, prot, flags, fd, fd 125 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset); fd 147 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h int flags, int fd, off_t offset) { fd 150 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h start, length, prot, flags, fd, offset, &result)) { fd 151 third_party/tcmalloc/vendor/src/malloc_hook_mmap_freebsd.h result = do_mmap(start, length, prot, flags, fd, offset); fd 58 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int fd, __off64_t offset) __THROW { fd 59 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h return sys_mmap(start, length, prot, flags, fd, offset); fd 69 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int fd, __off64_t offset) __THROW { fd 86 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, fd 106 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int32 args[6] = { (int32) start, (int32) length, prot, flags, fd, fd 140 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int fd, __off64_t offset ) __THROW fd 143 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int fd, off_t offset) __THROW fd 155 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int fd, __off64_t offset) __THROW { fd 156 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset); fd 159 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, offset, &result)) { fd 160 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h result = do_mmap64(start, length, prot, flags, fd, offset); fd 162 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset); fd 169 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int fd, off_t offset) __THROW { fd 170 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset); fd 173 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, offset, &result)) { fd 174 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h result = do_mmap64(start, length, prot, flags, fd, fd 177 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset); fd 215 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h int flags, int fd, off_t offset) { fd 218 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h start, length, prot, flags, fd, offset, &result)) { fd 219 third_party/tcmalloc/vendor/src/malloc_hook_mmap_linux.h result = do_mmap64(start, length, prot, flags, fd, offset); fd 586 third_party/tcmalloc/vendor/src/memory_region_map.cc int fd, off_t offset) { fd 592 third_party/tcmalloc/vendor/src/memory_region_map.cc reinterpret_cast<uint64>(start), prot, flags, fd, fd 326 third_party/tcmalloc/vendor/src/memory_region_map.h int fd, off_t offset); fd 98 third_party/tcmalloc/vendor/src/profiledata.cc int fd = open(fname, O_CREAT | O_WRONLY | O_TRUNC, 0666); fd 99 third_party/tcmalloc/vendor/src/profiledata.cc if (fd < 0) { fd 126 third_party/tcmalloc/vendor/src/profiledata.cc out_ = fd; fd 138 third_party/tcmalloc/vendor/src/profiledata.cc static void FDWrite(int fd, const char* buf, size_t len) { fd 141 third_party/tcmalloc/vendor/src/profiledata.cc NO_INTR(r = write(fd, buf, len)); fd 148 third_party/tcmalloc/vendor/src/profiledata.cc static void DumpProcSelfMaps(int fd) { fd 160 third_party/tcmalloc/vendor/src/profiledata.cc FDWrite(fd, linebuf.buf_, written); fd 307 third_party/tcmalloc/vendor/src/tests/malloc_hook_test.cc int fd, fd 311 third_party/tcmalloc/vendor/src/tests/malloc_hook_test.cc if (fd == kMmapMagicFd) { fd 74 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) { fd 75 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc CHECK_GE(fd, 0); fd 80 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc NO_INTR(len = read(fd, buf0 + num_bytes, count - num_bytes)); fd 97 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc explicit FileDescriptor(int fd) : fd_(fd) {} fd 165 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); fd 166 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc if (fd.get() < 0) fd 171 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc ssize_t bytes_read = ReadPersistent(fd.get(), filedata.get(), expected_bytes); fd 188 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc FileDescriptor fd(open(filename_.c_str(), O_RDONLY)); fd 189 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc if (fd.get() < 0) fd 193 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc if (fstat(fd.get(), &statbuf) != 0) fd 200 third_party/tcmalloc/vendor/src/tests/profiledata_unittest.cc if (ReadPersistent(fd.get(), filedata.get(), filesize) != filesize) fd 1175 third_party/tcmalloc/vendor/src/tests/tcmalloc_unittest.cc int fd = open("/dev/zero", O_RDONLY); fd 1176 third_party/tcmalloc/vendor/src/tests/tcmalloc_unittest.cc CHECK_GE(fd, 0); // make sure the open succeeded fd 1177 third_party/tcmalloc/vendor/src/tests/tcmalloc_unittest.cc p1 = mmap(NULL, 8192, PROT_READ, MAP_SHARED, fd, 0); fd 1182 third_party/tcmalloc/vendor/src/tests/tcmalloc_unittest.cc close(fd); fd 274 third_party/tcmalloc/vendor/src/windows/port.h int fd, off_t offset) { fd 275 third_party/tcmalloc/vendor/src/windows/port.h if (addr == NULL && fd == -1 && offset == 0 && fd 362 third_party/tcmalloc/vendor/src/windows/port.h inline int close(int fd) { fd 363 third_party/tcmalloc/vendor/src/windows/port.h return _close(fd); fd 365 third_party/tcmalloc/vendor/src/windows/port.h inline ssize_t read(int fd, void *buf, size_t count) { fd 366 third_party/tcmalloc/vendor/src/windows/port.h return _read(fd, buf, count); fd 368 third_party/tcmalloc/vendor/src/windows/port.h inline ssize_t write(int fd, const void *buf, size_t count) { fd 369 third_party/tcmalloc/vendor/src/windows/port.h return _write(fd, buf, count); fd 371 third_party/tcmalloc/vendor/src/windows/port.h inline off_t lseek(int fd, off_t offset, int whence) { fd 372 third_party/tcmalloc/vendor/src/windows/port.h return _lseek(fd, offset, whence); fd 107 third_party/tlslite/tlslite/utils/entropy.c int fd; fd 121 third_party/tlslite/tlslite/utils/entropy.c if ((fd = open("/dev/urandom", O_RDONLY, 0)) == -1) { fd 129 third_party/tlslite/tlslite/utils/entropy.c if (read(fd, bytes, howMany) < howMany) { fd 133 third_party/tlslite/tlslite/utils/entropy.c close(fd); fd 142 third_party/tlslite/tlslite/utils/entropy.c close(fd); fd 31 third_party/v4l2capture/v4l2capture.c #define ASSERT_OPEN if(self->fd < 0) \ fd 45 third_party/v4l2capture/v4l2capture.c int fd; fd 74 third_party/v4l2capture/v4l2capture.c static int my_ioctl(int fd, int request, void *arg) fd 80 third_party/v4l2capture/v4l2capture.c int result = v4l2_ioctl(fd, request, arg); fd 109 third_party/v4l2capture/v4l2capture.c if(self->fd >= 0) fd 116 third_party/v4l2capture/v4l2capture.c v4l2_close(self->fd); fd 132 third_party/v4l2capture/v4l2capture.c int fd = v4l2_open(device_path, O_RDWR | O_NONBLOCK); fd 134 third_party/v4l2capture/v4l2capture.c if(fd < 0) fd 140 third_party/v4l2capture/v4l2capture.c self->fd = fd; fd 148 third_party/v4l2capture/v4l2capture.c if(self->fd >= 0) fd 155 third_party/v4l2capture/v4l2capture.c v4l2_close(self->fd); fd 156 third_party/v4l2capture/v4l2capture.c self->fd = -1; fd 165 third_party/v4l2capture/v4l2capture.c return PyInt_FromLong(self->fd); fd 173 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_QUERYCAP, &caps)) fd 225 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_S_FMT, &format)) fd 245 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_S_PARM, &setfps)){ fd 257 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_STREAMON, &type)) fd 271 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_STREAMOFF, &type)) fd 301 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_REQBUFS, &reqbuf)) fd 329 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_QUERYBUF, &buffer)) fd 336 third_party/v4l2capture/v4l2capture.c PROT_READ | PROT_WRITE, MAP_SHARED, self->fd, buffer.m.offset); fd 369 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_QBUF, &buffer)) fd 391 third_party/v4l2capture/v4l2capture.c if(my_ioctl(self->fd, VIDIOC_DQBUF, &buffer)) fd 404 third_party/v4l2capture/v4l2capture.c if(queue && my_ioctl(self->fd, VIDIOC_QBUF, &buffer)) fd 110 third_party/zlib/google/zip_internal.cc void FillFdOpenFileFunc(zlib_filefunc_def* pzlib_filefunc_def, int fd) { fd 114 third_party/zlib/google/zip_internal.cc int* ptr_fd = static_cast<int*>(malloc(sizeof(fd))); fd 115 third_party/zlib/google/zip_internal.cc *ptr_fd = fd; fd 308 third_party/zlib/google/zip_reader.cc bool ZipReader::ExtractCurrentEntryToFd(const int fd) { fd 335 third_party/zlib/google/zip_reader.cc base::WriteFileDescriptor(fd, buf, num_bytes_read)) { fd 180 third_party/zlib/google/zip_reader.h bool ExtractCurrentEntryToFd(int fd); fd 89 third_party/zlib/gzguts.h int fd; /* file descriptor */ fd 89 third_party/zlib/gzlib.c local gzFile gz_open(path, fd, mode) fd 91 third_party/zlib/gzlib.c int fd; fd 161 third_party/zlib/gzlib.c state->fd = fd != -1 ? fd : fd 176 third_party/zlib/gzlib.c if (state->fd == -1) { fd 186 third_party/zlib/gzlib.c state->start = LSEEK(state->fd, 0, SEEK_CUR); fd 214 third_party/zlib/gzlib.c gzFile ZEXPORT gzdopen(fd, mode) fd 215 third_party/zlib/gzlib.c int fd; fd 221 third_party/zlib/gzlib.c if (fd == -1 || (path = malloc(7 + 3 * sizeof(int))) == NULL) fd 223 third_party/zlib/gzlib.c sprintf(path, "<fd:%d>", fd); /* for debugging */ fd 224 third_party/zlib/gzlib.c gz = gz_open(path, fd, mode); fd 270 third_party/zlib/gzlib.c if (LSEEK(state->fd, state->start, SEEK_SET) == -1) fd 311 third_party/zlib/gzlib.c ret = LSEEK(state->fd, offset - state->have, SEEK_CUR); fd 406 third_party/zlib/gzlib.c offset = LSEEK(state->fd, 0, SEEK_CUR); fd 31 third_party/zlib/gzread.c ret = read(state->fd, buf + *have, len - *have); fd 650 third_party/zlib/gzread.c ret = close(state->fd); fd 79 third_party/zlib/gzwrite.c if (have && ((got = write(state->fd, state->next, have)) < 0 || fd 528 third_party/zlib/gzwrite.c ret += close(state->fd); fd 1195 third_party/zlib/zlib.h ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode)); fd 136 third_party/zlib/zutil.h # define fdopen(fd,mode) NULL /* No fdopen() */ fd 156 third_party/zlib/zutil.h # define fdopen(fd,mode) NULL /* No fdopen() */ fd 161 third_party/zlib/zutil.h # define fdopen(fd,mode) NULL /* No fdopen() */ fd 167 third_party/zlib/zutil.h # define fdopen(fd,type) _fdopen(fd,type) fd 22 tools/android/common/adb_connection.cc void CloseSocket(int fd) { fd 23 tools/android/common/adb_connection.cc if (fd >= 0) { fd 25 tools/android/common/adb_connection.cc close(fd); fd 26 tools/android/common/daemon.cc void CloseFileDescriptor(int fd) { fd 28 tools/android/common/daemon.cc close(fd); fd 34 tools/android/file_poller/file_poller.cc void safe_write(int fd, const char* buffer, int size) { fd 38 tools/android/file_poller/file_poller.cc int written = write(fd, index, to_write); fd 70 tools/android/file_poller/file_poller.cc int fd = open(path, O_RDONLY); fd 71 tools/android/file_poller/file_poller.cc if (fd < 0) fd 73 tools/android/file_poller/file_poller.cc return fd; fd 86 tools/android/file_poller/file_poller.cc void acquire_sample(int fd, const Context& context) { fd 91 tools/android/file_poller/file_poller.cc safe_write(fd, buffer, n); fd 94 tools/android/file_poller/file_poller.cc transfer_measurement(context.file_fds[i], fd, i == (context.nb_files - 1)); fd 139 tools/android/file_poller/file_poller.cc int fd; fd 141 tools/android/file_poller/file_poller.cc fd = mkstemp(filename); fd 148 tools/android/file_poller/file_poller.cc acquire_sample(fd, context); fd 156 tools/android/file_poller/file_poller.cc acquire_sample(fd, context); fd 163 tools/android/file_poller/file_poller.cc if (lseek(fd, 0, SEEK_SET) < 0) fd 165 tools/android/file_poller/file_poller.cc transfer_to_fd(fd, rfd); fd 31 tools/android/forwarder/forwarder.cc void CloseSocket(int fd) { fd 32 tools/android/forwarder/forwarder.cc if (fd >= 0) { fd 34 tools/android/forwarder/forwarder.cc close(fd); fd 54 tools/android/forwarder/forwarder.cc int Read(int fd) { fd 57 tools/android/forwarder/forwarder.cc ret = HANDLE_EINTR(read(fd, buffer_, kBufferSize)); fd 64 tools/android/forwarder/forwarder.cc int Write(int fd) { fd 67 tools/android/forwarder/forwarder.cc ret = HANDLE_EINTR(write(fd, buffer_ + write_offset_, fd 20 tools/android/forwarder2/common.cc void CloseFD(int fd) { fd 22 tools/android/forwarder2/common.cc if (IGNORE_EINTR(close(fd)) < 0) { fd 45 tools/android/forwarder2/common.h void CloseFD(int fd); fd 102 tools/android/forwarder2/daemon.cc bool GetFileLockOwnerPid(int fd, pid_t* lock_owner_pid) { fd 106 tools/android/forwarder2/daemon.cc const int ret = HANDLE_EINTR(fcntl(fd, F_GETLK, &lock_info)); fd 106 tools/android/forwarder2/forwarder.cc int fd; fd 111 tools/android/forwarder2/forwarder.cc fd = socket_from_->fd(); fd 112 tools/android/forwarder2/forwarder.cc if (fd < 0) { fd 116 tools/android/forwarder2/forwarder.cc FD_SET(fd, read_fds); fd 123 tools/android/forwarder2/forwarder.cc fd = socket_to_->fd(); fd 124 tools/android/forwarder2/forwarder.cc if (fd < 0) { fd 128 tools/android/forwarder2/forwarder.cc FD_SET(fd, write_fds); fd 134 tools/android/forwarder2/forwarder.cc *max_fd = std::max(*max_fd, fd); fd 139 tools/android/forwarder2/forwarder.cc int fd, ret; fd 142 tools/android/forwarder2/forwarder.cc fd = socket_from_->fd(); fd 143 tools/android/forwarder2/forwarder.cc if (fd < 0) { fd 147 tools/android/forwarder2/forwarder.cc if (!FD_ISSET(fd, &read_fds)) fd 162 tools/android/forwarder2/forwarder.cc fd = socket_to_->fd(); fd 163 tools/android/forwarder2/forwarder.cc if (fd < 0) { fd 167 tools/android/forwarder2/forwarder.cc if (!FD_ISSET(fd, &write_fds)) fd 363 tools/android/forwarder2/socket.cc event.fd = event_fd; fd 368 tools/android/forwarder2/socket.cc bool Socket::DidReceiveEventOnFd(int fd) const { fd 370 tools/android/forwarder2/socket.cc if (events_[i].fd == fd) fd 407 tools/android/forwarder2/socket.cc FD_SET(events_[i].fd, &read_fds); fd 417 tools/android/forwarder2/socket.cc if (events_[i].fd > max_fd) fd 418 tools/android/forwarder2/socket.cc max_fd = events_[i].fd; fd 426 tools/android/forwarder2/socket.cc if (FD_ISSET(events_[i].fd, &read_fds)) { fd 40 tools/android/forwarder2/socket.h int fd() const { return socket_; } fd 87 tools/android/forwarder2/socket.h bool DidReceiveEventOnFd(int fd) const; fd 109 tools/android/forwarder2/socket.h int fd; fd 165 tools/android/memdump/memdump.cc bool ReadFromFileAtOffset(int fd, off_t offset, T* value) { fd 166 tools/android/memdump/memdump.cc if (lseek64(fd, offset * sizeof(*value), SEEK_SET) < 0) { fd 170 tools/android/memdump/memdump.cc ssize_t bytes = read(fd, value, sizeof(*value)); fd 312 tools/cygprofile/cygprofile.cc static void WriteLogLine(int fd, const char* fmt, ...) { fd 317 tools/cygprofile/cygprofile.cc int rc = write(fd, msg, (len > sizeof(msg))? sizeof(msg): len); fd 441 tools/ipc_fuzzer/mutate/generate.cc p->fd = -1; fd 408 tools/ipc_fuzzer/mutate/mutate.cc FuzzParam(&p->fd, fuzzer); fd 148 ui/events/ozone/evdev/device_manager_udev.cc virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { fd 151 ui/events/ozone/evdev/device_manager_udev.cc TRACE_EVENT1("ozone", "UdevDeviceChange", "socket", fd); fd 168 ui/events/ozone/evdev/device_manager_udev.cc virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE { NOTREACHED(); } fd 178 ui/events/ozone/evdev/device_manager_udev.cc int fd = udev_monitor_get_fd(udev_monitor_.get()); fd 179 ui/events/ozone/evdev/device_manager_udev.cc if (fd < 0) fd 188 ui/events/ozone/evdev/device_manager_udev.cc fd, true, base::MessagePumpOzone::WATCH_READ, &controller_, this); fd 16 ui/events/ozone/evdev/event_device_info.cc bool GetEventBits(int fd, unsigned int type, void* buf, unsigned int size) { fd 17 ui/events/ozone/evdev/event_device_info.cc if (ioctl(fd, EVIOCGBIT(type, size), buf) < 0) { fd 19 ui/events/ozone/evdev/event_device_info.cc << fd; fd 26 ui/events/ozone/evdev/event_device_info.cc bool GetPropBits(int fd, void* buf, unsigned int size) { fd 27 ui/events/ozone/evdev/event_device_info.cc if (ioctl(fd, EVIOCGPROP(size), buf) < 0) { fd 28 ui/events/ozone/evdev/event_device_info.cc DLOG(ERROR) << "failed EVIOCGPROP(" << size << ") on fd " << fd; fd 39 ui/events/ozone/evdev/event_device_info.cc bool GetAbsInfo(int fd, int code, struct input_absinfo* absinfo) { fd 40 ui/events/ozone/evdev/event_device_info.cc if (ioctl(fd, EVIOCGABS(code), absinfo)) { fd 41 ui/events/ozone/evdev/event_device_info.cc DLOG(ERROR) << "failed EVIOCGABS(" << code << ") on fd " << fd; fd 63 ui/events/ozone/evdev/event_device_info.cc bool EventDeviceInfo::Initialize(int fd) { fd 64 ui/events/ozone/evdev/event_device_info.cc if (!GetEventBits(fd, 0, ev_bits_, sizeof(ev_bits_))) fd 67 ui/events/ozone/evdev/event_device_info.cc if (!GetEventBits(fd, EV_KEY, key_bits_, sizeof(key_bits_))) fd 70 ui/events/ozone/evdev/event_device_info.cc if (!GetEventBits(fd, EV_REL, rel_bits_, sizeof(rel_bits_))) fd 73 ui/events/ozone/evdev/event_device_info.cc if (!GetEventBits(fd, EV_ABS, abs_bits_, sizeof(abs_bits_))) fd 76 ui/events/ozone/evdev/event_device_info.cc if (!GetEventBits(fd, EV_MSC, msc_bits_, sizeof(msc_bits_))) fd 79 ui/events/ozone/evdev/event_device_info.cc if (!GetEventBits(fd, EV_SW, sw_bits_, sizeof(sw_bits_))) fd 82 ui/events/ozone/evdev/event_device_info.cc if (!GetEventBits(fd, EV_LED, led_bits_, sizeof(led_bits_))) fd 85 ui/events/ozone/evdev/event_device_info.cc if (!GetPropBits(fd, prop_bits_, sizeof(prop_bits_))) fd 90 ui/events/ozone/evdev/event_device_info.cc if (!GetAbsInfo(fd, i, &abs_info_[i])) fd 29 ui/events/ozone/evdev/event_device_info.h bool Initialize(int fd); fd 57 ui/events/ozone/evdev/event_factory_evdev.cc int fd = open(path.value().c_str(), O_RDONLY | O_NONBLOCK); fd 58 ui/events/ozone/evdev/event_factory_evdev.cc if (fd < 0) { fd 67 ui/events/ozone/evdev/event_factory_evdev.cc if (ioctl(fd, EVIOCSCLOCKID, &clk)) fd 71 ui/events/ozone/evdev/event_factory_evdev.cc if (!devinfo.Initialize(fd)) { fd 73 ui/events/ozone/evdev/event_factory_evdev.cc close(fd); fd 79 ui/events/ozone/evdev/event_factory_evdev.cc close(fd); fd 86 ui/events/ozone/evdev/event_factory_evdev.cc converter.reset(new TouchEventConverterEvdev(fd, path, devinfo)); fd 88 ui/events/ozone/evdev/event_factory_evdev.cc converter.reset(new KeyEventConverterEvdev(fd, path, modifiers)); fd 95 ui/events/ozone/evdev/event_factory_evdev.cc close(fd); fd 190 ui/events/ozone/evdev/key_event_converter_evdev.cc KeyEventConverterEvdev::KeyEventConverterEvdev(int fd, fd 193 ui/events/ozone/evdev/key_event_converter_evdev.cc : fd_(fd), path_(path), modifiers_(modifiers) { fd 211 ui/events/ozone/evdev/key_event_converter_evdev.cc void KeyEventConverterEvdev::OnFileCanReadWithoutBlocking(int fd) { fd 213 ui/events/ozone/evdev/key_event_converter_evdev.cc ssize_t read_size = read(fd, inputs, sizeof(inputs)); fd 227 ui/events/ozone/evdev/key_event_converter_evdev.cc void KeyEventConverterEvdev::OnFileCanWriteWithoutBlocking(int fd) { fd 23 ui/events/ozone/evdev/key_event_converter_evdev.h KeyEventConverterEvdev(int fd, fd 33 ui/events/ozone/evdev/key_event_converter_evdev.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 34 ui/events/ozone/evdev/key_event_converter_evdev.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 21 ui/events/ozone/evdev/key_event_converter_evdev_unittest.cc MockKeyEventConverterEvdev(int fd, EventModifiersEvdev* modifiers) fd 22 ui/events/ozone/evdev/key_event_converter_evdev_unittest.cc : KeyEventConverterEvdev(fd, base::FilePath(kTestDevicePath), modifiers) { fd 37 ui/events/ozone/evdev/touch_event_converter_evdev.cc TouchEventConverterEvdev::TouchEventConverterEvdev(int fd, fd 49 ui/events/ozone/evdev/touch_event_converter_evdev.cc fd_(fd), fd 85 ui/events/ozone/evdev/touch_event_converter_evdev.cc void TouchEventConverterEvdev::OnFileCanReadWithoutBlocking(int fd) { fd 87 ui/events/ozone/evdev/touch_event_converter_evdev.cc ssize_t read_size = read(fd, inputs, sizeof(inputs)); fd 29 ui/events/ozone/evdev/touch_event_converter_evdev.h TouchEventConverterEvdev(int fd, fd 45 ui/events/ozone/evdev/touch_event_converter_evdev.h virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; fd 46 ui/events/ozone/evdev/touch_event_converter_evdev.h virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; fd 25 ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc static int SetNonBlocking(int fd) { fd 26 ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc int flags = fcntl(fd, F_GETFL, 0); fd 29 ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc return fcntl(fd, F_SETFL, flags | O_NONBLOCK); fd 40 ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc MockTouchEventConverterEvdev(int fd, base::FilePath path); fd 70 ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc MockTouchEventConverterEvdev::MockTouchEventConverterEvdev(int fd, fd 72 ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc : TouchEventConverterEvdev(fd, path, EventDeviceInfo()) { fd 173 ui/events/platform/x11/x11_event_source.cc x_poll_->fd = ConnectionNumber(display_); fd 20 ui/gfx/ozone/dri/dri_skbitmap.cc void DestroyDumbBuffer(int fd, uint32_t handle) { fd 23 ui/gfx/ozone/dri/dri_skbitmap.cc drmIoctl(fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_request); fd 85 ui/gfx/ozone/dri/dri_skbitmap.cc DriSkBitmap::DriSkBitmap(int fd) fd 86 ui/gfx/ozone/dri/dri_skbitmap.cc : fd_(fd), fd 18 ui/gfx/ozone/dri/dri_skbitmap.h DriSkBitmap(int fd); fd 44 ui/gfx/ozone/dri/dri_surface_factory.cc void HandlePageFlipEvent(int fd, fd 53 ui/gfx/ozone/dri/dri_surface_factory.cc uint32_t GetDriProperty(int fd, drmModeConnector* connector, const char* name) { fd 55 ui/gfx/ozone/dri/dri_surface_factory.cc drmModePropertyPtr property = drmModeGetProperty(fd, connector->props[i]); fd 70 ui/gfx/ozone/dri/dri_surface_factory.cc uint32_t GetCrtc(int fd, drmModeRes* resources, drmModeConnector* connector) { fd 73 ui/gfx/ozone/dri/dri_surface_factory.cc drmModeEncoder* encoder = drmModeGetEncoder(fd, connector->encoder_id); fd 86 ui/gfx/ozone/dri/dri_surface_factory.cc drmModeEncoder* encoder = drmModeGetEncoder(fd, connector->encoders[i]); fd 394 ui/gfx/ozone/dri/dri_surface_factory.cc void DriSurfaceFactory::WaitForPageFlipEvent(int fd) { fd 401 ui/gfx/ozone/dri/dri_surface_factory.cc drmHandleEvent(fd, &drm_event); fd 68 ui/gfx/ozone/dri/dri_surface_factory.h virtual void WaitForPageFlipEvent(int fd); fd 39 ui/gfx/ozone/dri/dri_surface_factory_unittest.cc MockDriWrapper(int fd) : DriWrapper(""), fd 42 ui/gfx/ozone/dri/dri_surface_factory_unittest.cc fd_ = fd; fd 210 ui/gfx/ozone/dri/dri_surface_factory_unittest.cc virtual void WaitForPageFlipEvent(int fd) OVERRIDE {} fd 71 ui/gfx/ozone/dri/dri_surface_unittest.cc MockDriSkBitmap(int fd, fd 73 ui/gfx/ozone/dri/dri_surface_unittest.cc : DriSkBitmap(fd), fd 33 ui/gfx/ozone/dri/hardware_display_controller_unittest.cc MockDriWrapper(int fd) : DriWrapper(""), fd 42 ui/gfx/ozone/dri/hardware_display_controller_unittest.cc fd_ = fd; fd 151 ui/gfx/ozone/dri/hardware_display_controller_unittest.cc MockDriSkBitmap(int fd) : DriSkBitmap(fd) {} fd 57 ui/surface/transport_dib_posix.cc return dib.fd >= 0; fd 89 ui/surface/transport_dib_posix.cc if ((fstat(shared_memory_.handle().fd, &st) != 0) ||