/external/bluetooth/bluedroid/hci/src/ |
H A D | btsnoop_net.c | 34 static void safe_close_(int *fd); 131 static void safe_close_(int *fd) { argument 132 assert(fd != NULL); 133 if (*fd != -1) { 134 close(*fd); 135 *fd = -1;
|
/external/bluetooth/bluedroid/osi/src/ |
H A D | reactor.c | 131 int fd = object->fd; local 134 FD_SET(fd, &read_set); 136 FD_SET(fd, &write_set); 137 if (fd > max_fd) 138 max_fd = fd; 162 int fd = object->fd; local 163 if (FD_ISSET(fd, &read_set)) { 167 if (FD_ISSET(fd, [all...] |
/external/chromium_org/android_webview/browser/renderer_host/ |
H A D | print_manager.cc | 24 int fd, 28 fd_(fd), 63 temp_file_fd->fd = fd_; 22 PrintManager(content::WebContents* contents, PrintSettings* settings, int fd, PrintManagerDelegate* delegate) argument
|
/external/chromium_org/android_webview/native/ |
H A D | aw_pdf_exporter.cc | 47 int fd, 52 new PrintManager(web_contents_, print_settings_.get(), fd, this)); 45 ExportToPdf(JNIEnv* env, jobject obj, int fd, jobject cancel_signal) argument
|
/external/chromium_org/android_webview/renderer/ |
H A D | print_web_view_helper_linux.cc | 105 base::FileDescriptor fd; local 109 &fd, 111 if (!metafile.SaveToFD(fd)) 146 printed_page_params.metafile_data_handle.fd = -1;
|
/external/chromium_org/base/files/ |
H A D | dir_reader_linux.h | 80 int fd() const { function in class:base::DirReaderLinux
|
/external/chromium_org/base/ |
H A D | os_compat_android.cc | 24 int futimes(int fd, const struct timeval tv[2]) { argument 26 return syscall(__NR_utimensat, fd, NULL, NULL, 0); 40 return syscall(__NR_utimensat, fd, NULL, ts, 0);
|
/external/chromium_org/base/posix/ |
H A D | file_descriptor_shuffle.cc | 32 DCHECK(i->dest != j->dest) << "Both fd " << i->source 86 bool FileDescriptorTableInjection::Duplicate(int* result, int fd) { argument 87 *result = HANDLE_EINTR(dup(fd)); 95 void FileDescriptorTableInjection::Close(int fd) { argument 96 int ret = IGNORE_EINTR(close(fd));
|
/external/chromium_org/chrome/common/ |
H A D | service_process_util_posix.cc | 47 void ServiceProcessTerminateMonitor::OnFileCanReadWithoutBlocking(int fd) { argument 50 int length = read(fd, &buffer, sizeof(buffer)); 57 DLOG(ERROR) << "Unexpected fd close"; 64 void ServiceProcessTerminateMonitor::OnFileCanWriteWithoutBlocking(int fd) { argument
|
/external/chromium_org/chrome/renderer/printing/ |
H A D | print_web_view_helper_linux.cc | 101 base::FileDescriptor fd; local 105 &fd, 107 if (!metafile.SaveToFD(fd)) 142 printed_page_params.metafile_data_handle.fd = -1;
|
/external/chromium_org/components/crash/app/ |
H A D | breakpad_linux_impl.h | 40 // The minidump information can either be contained in a file descriptor (fd) or 43 int fd; // File descriptor to the Breakpad dump data. member in struct:breakpad::BreakpadInfo
|
/external/chromium_org/components/nacl/loader/ |
H A D | nacl_validation_query.cc | 36 int32* fd, 38 return db_->ResolveFileToken(file_token, fd, path); 140 int32* fd, char** file_path, 146 ResolveFileToken(file_token, fd, &path); 34 ResolveFileToken( struct NaClFileToken* file_token, int32* fd, std::string* path) argument 139 ResolveFileToken(void* handle, struct NaClFileToken* file_token, int32* fd, char** file_path, uint32* file_path_length) argument
|
/external/chromium_org/components/nacl/loader/nonsfi/ |
H A D | irt_fdio.cc | 22 int IrtClose(int fd) { argument 23 return CheckError(close(fd)); 26 int IrtDup(int fd, int* newfd) { argument 27 return CheckErrorWithResult(dup(fd), newfd); 30 int IrtDup2(int fd, int newfd) { argument 31 return CheckError(dup2(fd, newfd)); 34 int IrtRead(int fd, void* buf, size_t count, size_t* nread) { argument 35 return CheckErrorWithResult(read(fd, buf, count), nread); 38 int IrtWrite(int fd, const void* buf, size_t count, size_t* nwrote) { argument 39 return CheckErrorWithResult(write(fd, bu 42 IrtSeek(int fd, nacl_abi_off_t offset, int whence, nacl_abi_off_t* new_offset) argument 47 IrtFstat(int fd, struct nacl_abi_stat* st) argument 56 IrtGetDents(int fd, struct nacl_abi_dirent* buf, size_t count, size_t* nread) argument [all...] |
H A D | nonsfi_sandbox_unittest.cc | 283 const int fd = fds[0].get(); local 284 BPF_ASSERT_EQ(0, fcntl(fd, F_GETFL)); 285 BPF_ASSERT_EQ(0, fcntl(fd, F_SETFL, O_RDWR | O_NONBLOCK)); 286 BPF_ASSERT_EQ(O_NONBLOCK, fcntl(fd, F_GETFL));
|
/external/chromium_org/content/common/ |
H A D | font_config_ipc_linux.cc | 27 SkStream* StreamFromFD(int fd) { argument 28 skia::RefPtr<SkData> data = skia::AdoptRef(SkData::NewFromFD(fd)); 35 void CloseFD(int fd) { argument 36 int err = IGNORE_EINTR(close(fd)); 40 FontConfigIPC::FontConfigIPC(int fd) argument 41 : fd_(fd) {
|
/external/chromium_org/device/hid/ |
H A D | device_monitor_linux.cc | 126 void DeviceMonitorLinux::OnFileCanReadWithoutBlocking(int fd) { argument 128 DCHECK_EQ(monitor_fd_, fd); 141 void DeviceMonitorLinux::OnFileCanWriteWithoutBlocking(int fd) {} argument
|
/external/chromium_org/ipc/ |
H A D | unix_domain_socket_util.cc | 28 // Returns fd (>= 0) on success, -1 on failure. If successful, fills in 49 base::ScopedFD fd(socket(AF_UNIX, SOCK_STREAM, 0)); 50 if (!fd.is_valid()) { 56 if (HANDLE_EINTR(fcntl(fd.get(), F_SETFL, O_NONBLOCK)) < 0) { 67 return fd.release(); 81 base::ScopedFD fd( 83 if (!fd.is_valid()) 99 if (bind(fd.get(), reinterpret_cast<const sockaddr*>(&unix_addr), 106 if (listen(fd.get(), SOMAXCONN) < 0) { 112 *server_listen_fd = fd 140 GetPeerEuid(int fd, uid_t* peer_euid) argument [all...] |
/external/chromium_org/media/video/capture/linux/ |
H A D | video_capture_device_factory_linux.cc | 27 static bool HasUsableFormats(int fd) { argument 37 while (HANDLE_EINTR(ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc)) == 0) { 69 base::ScopedFD fd(HANDLE_EINTR(open(device_name.id().c_str(), O_RDONLY))); 70 if (!fd.is_valid()) { 91 base::ScopedFD fd(HANDLE_EINTR(open(unique_id.c_str(), O_RDONLY))); 92 if (!fd.is_valid()) { 98 if ((HANDLE_EINTR(ioctl(fd.get(), VIDIOC_QUERYCAP, &cap)) == 0) && 102 if (HasUsableFormats(fd.get())) { 119 base::ScopedFD fd(HANDLE_EINTR(open(device.id().c_str(), O_RDONLY))); 120 if (!fd [all...] |
/external/chromium_org/net/test/spawned_test_server/ |
H A D | local_test_server_posix.cc | 63 bool ReadData(int fd, ssize_t bytes_max, uint8* buffer, argument 70 poll_fds[0].fd = fd; 91 ssize_t num_bytes = HANDLE_EINTR(read(fd, buffer + bytes_read,
|
/external/chromium_org/net/third_party/nss/ssl/ |
H A D | ssldef.c | 22 PRFileDesc *lower = ss->fd->lower; 31 PRFileDesc *lower = ss->fd->lower; 40 PRFileDesc *lower = ss->fd->lower; 49 PRFileDesc *lower = ss->fd->lower; 58 PRFileDesc *lower = ss->fd->lower; 81 PRFileDesc *lower = ss->fd->lower; 120 PRFileDesc *lower = ss->fd->lower; 133 PRFileDesc *lower = ss->fd->lower; 158 PRFileDesc *lower = ss->fd->lower; 167 PRFileDesc *lower = ss->fd 176 PRFileDesc *fd; local [all...] |
/external/chromium_org/printing/android/java/src/org/chromium/printing/ |
H A D | PrintingContext.java | 100 public static void pdfWritingDone(int fd, boolean success) { argument 102 // TODO(cimamoglu): Do something when fd == -1. 103 if (PRINTING_CONTEXT_MAP.get(fd) != null) { 105 PrintingContext printingContext = PRINTING_CONTEXT_MAP.get(fd); 107 PRINTING_CONTEXT_MAP.remove(fd);
|
/external/chromium_org/remoting/host/ |
H A D | clipboard_x11.cc | 33 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 34 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; 102 void ClipboardX11::OnFileCanReadWithoutBlocking(int fd) { argument 106 void ClipboardX11::OnFileCanWriteWithoutBlocking(int fd) { argument
|
/external/chromium_org/remoting/host/posix/ |
H A D | signal_handler.cc | 30 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 31 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} 51 void SignalListener::OnFileCanReadWithoutBlocking(int fd) { argument 53 int result = HANDLE_EINTR(read(fd, &buffer, sizeof(buffer)));
|
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
H A D | syscall_unittest.cc | 165 int fd; local 167 fd = Syscall::Call(__NR_openat, AT_FDCWD, "/dev/null", O_RDWR, 0L)); 178 fd, 190 fd, 196 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd))); 201 fd = Syscall::Call(__NR_openat, AT_FDCWD, "/proc/self/exe", O_RDONLY, 0L), 206 kMMapNr, (void*)NULL, 8192L, PROT_READ, MAP_PRIVATE, fd, 0L))); 213 fd, 225 EXPECT_EQ(8192, Syscall::Call(__NR_read, fd, buf, 8192L)); 231 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd))); [all...] |
/external/chromium_org/sandbox/linux/services/ |
H A D | unix_domain_socket_unittest.cc | 66 // SendHello sends a "hello" to socket fd, and then blocks until the recipient 68 void SendHello(int fd) { argument 76 CHECK(UnixDomainSocket::SendMsg(fd, kHello, sizeof(kHello), send_fds)); 85 // RecvHello receives and acknowledges a "hello" on socket fd, and returns the 92 void RecvHello(int fd, argument 100 fd, buf, sizeof(buf), &message_fds, sender_pid);
|