Searched defs:fd (Results 376 - 400 of 1450) sorted by relevance

<<11121314151617181920>>

/external/bluetooth/bluedroid/hci/src/
H A Dbtsnoop_net.c34 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 Dreactor.c131 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 Dprint_manager.cc24 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 Daw_pdf_exporter.cc47 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 Dprint_web_view_helper_linux.cc105 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 Ddir_reader_linux.h80 int fd() const { function in class:base::DirReaderLinux
/external/chromium_org/base/
H A Dos_compat_android.cc24 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 Dfile_descriptor_shuffle.cc32 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 Dservice_process_util_posix.cc47 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 Dprint_web_view_helper_linux.cc101 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 Dbreakpad_linux_impl.h40 // 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 Dnacl_validation_query.cc36 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 Dirt_fdio.cc22 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 Dnonsfi_sandbox_unittest.cc283 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 Dfont_config_ipc_linux.cc27 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 Ddevice_monitor_linux.cc126 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 Dunix_domain_socket_util.cc28 // 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 Dvideo_capture_device_factory_linux.cc27 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 Dlocal_test_server_posix.cc63 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 Dssldef.c22 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 DPrintingContext.java100 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 Dclipboard_x11.cc33 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 Dsignal_handler.cc30 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 Dsyscall_unittest.cc165 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 Dunix_domain_socket_unittest.cc66 // 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);

Completed in 508 milliseconds

<<11121314151617181920>>