/external/chromium_org/components/metrics/serialization/ |
H A D | serialization_utils.cc | 35 bool ReadMessage(int fd, std::string* message) { argument 42 result = HANDLE_EINTR(read(fd, &message_size, sizeof(message_size))); 61 if (HANDLE_EINTR(lseek(fd, message_size - 4, SEEK_CUR)) == -1) { 73 if (!base::ReadFromFD(fd, buffer, message_size)) { 134 base::ScopedFD fd(open(filename.c_str(), O_RDWR)); 135 if (fd.get() < 0) { 139 result = flock(fd.get(), LOCK_EX); 150 if (!ReadMessage(fd.get(), &message)) 158 result = ftruncate(fd.get(), 0); 162 result = flock(fd [all...] |
/external/chromium_org/components/nacl/browser/ |
H A D | nacl_host_message_filter.cc | 244 IPC::PlatformFileForTransit fd = IPC::InvalidPlatformFileForTransit(); local 248 fd = IPC::GetFileHandleForProcess(file.GetPlatformFile(), PeerHandle(), 251 Send(new NaClViewMsg_NexeTempFileReply(pp_instance, is_hit, fd));
|
H A D | nacl_process_host.cc | 193 void SetCloseOnExec(NaClHandle fd) { argument 195 int flags = fcntl(fd, F_GETFD); 197 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); 226 channel.fd = sourceh; 712 imc_handle.fd = socket_for_renderer_.TakePlatformFile(); 867 memory_fd.fd = dup(memory_buffer.handle().fd); 868 if (memory_fd.fd < 0) {
|
/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 | irt_memory.cc | 49 int fd, nacl_abi_off_t off) { 55 *addr, len, host_prot & ~PROT_EXEC, NaClFlagsToFlags(flags), fd, off); 48 IrtMMap(void** addr, size_t len, int prot, int flags, int fd, nacl_abi_off_t off) argument
|
H A D | irt_random.cc | 31 void SetUrandomFd(int fd) { argument 33 secure_random_fd = fd;
|
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/components/pdf/renderer/ |
H A D | ppb_pdf_impl.cc | 41 PrivateFontFile(PP_Instance instance, int fd) argument 42 : Resource(ppapi::OBJECT_IS_IMPL, instance), fd_(fd) {} 88 int fd = content::MatchFontWithFallback( local 94 if (fd == -1) 97 scoped_refptr<PrivateFontFile> font(new PrivateFontFile(instance_id, fd));
|
/external/chromium_org/content/browser/gamepad/ |
H A D | gamepad_platform_data_fetcher_linux.cc | 31 void CloseFileDescriptorIfValid(int fd) { argument 32 if (fd >= 0) 33 close(fd); 244 const int& fd = device_fds_[index]; local 246 DCHECK_GE(fd, 0); 249 while (HANDLE_EINTR(read(fd, &event, sizeof(struct js_event))) > 0) {
|
/external/chromium_org/content/browser/media/android/ |
H A D | media_resource_getter_impl.cc | 127 const int fd, const int64 offset, const int64 size, 133 env, fd, offset, size); 361 const int fd, const int64 offset, const int64 size, 367 base::Bind(&GetMediaMetadataFromFd, fd, offset, size, callback)); 126 GetMediaMetadataFromFd( const int fd, const int64 offset, const int64 size, const media::MediaResourceGetter::ExtractMediaMetadataCB& callback) argument 360 ExtractMediaMetadata( const int fd, const int64 offset, const int64 size, const ExtractMediaMetadataCB& callback) argument
|
/external/chromium_org/content/browser/renderer_host/ |
H A D | sandbox_ipc_linux.cc | 83 pfds[0].fd = lifeline_fd_; 85 pfds[1].fd = browser_socket_; 111 // If poll(2) reports an error condition in this fd, 125 void SandboxIPCHandler::HandleRequestFromRenderer(int fd) { argument 134 const ssize_t len = UnixDomainSocket::RecvMsg(fd, buf, sizeof(buf), &fds); 151 HandleFontMatchRequest(fd, pickle, iter, fds.get()); 153 HandleFontOpenRequest(fd, pickle, iter, fds.get()); 155 HandleGetFallbackFontForChar(fd, pickle, iter, fds.get()); 157 HandleLocaltime(fd, pickle, iter, fds.get()); 159 HandleGetStyleForStrike(fd, pickl 177 HandleFontMatchRequest( int fd, const Pickle& pickle, PickleIterator iter, const std::vector<base::ScopedFD*>& fds) argument 217 HandleFontOpenRequest( int fd, const Pickle& pickle, PickleIterator iter, const std::vector<base::ScopedFD*>& fds) argument 246 HandleGetFallbackFontForChar( int fd, const Pickle& pickle, PickleIterator iter, const std::vector<base::ScopedFD*>& fds) argument 287 HandleGetStyleForStrike( int fd, const Pickle& pickle, PickleIterator iter, const std::vector<base::ScopedFD*>& fds) argument 326 HandleLocaltime( int fd, const Pickle& pickle, PickleIterator iter, const std::vector<base::ScopedFD*>& fds) argument 359 HandleMakeSharedMemorySegment( int fd, const Pickle& pickle, PickleIterator iter, const std::vector<base::ScopedFD*>& fds) argument 379 HandleMatchWithFallback( int fd, const Pickle& pickle, PickleIterator iter, const std::vector<base::ScopedFD*>& fds) argument [all...] |
/external/chromium_org/content/browser/ |
H A D | udev_linux.cc | 54 void UdevLinux::OnFileCanReadWithoutBlocking(int fd) { argument 58 DCHECK_EQ(monitor_fd_, fd); 67 void UdevLinux::OnFileCanWriteWithoutBlocking(int fd) { argument
|
/external/chromium_org/content/browser/zygote_host/ |
H A D | zygote_host_impl_linux.cc | 52 // Receive a fixed message on fd and return the sender's PID. 54 static bool ReceiveFixedMessage(int fd, argument 62 fd, buf, sizeof(buf), &fds_vec, sender_pid); 326 fds.push_back(i->fd.fd); 327 if (i->fd.auto_close) { 330 autoclose_fds.push_back(new base::ScopedFD(i->fd.fd));
|
/external/chromium_org/content/common/ |
H A D | child_process_sandbox_support_impl_linux.cc | 130 int fd = -1; local 132 &fd, request); local 133 return fd; 136 bool GetFontTable(int fd, uint32_t table_tag, off_t offset, argument 146 if (fstat(fd, &st) < 0) 152 ssize_t n = HANDLE_EINTR(pread(fd, &num_tables, sizeof(num_tables), 163 n = HANDLE_EINTR(pread(fd, table_entries.get(), directory_size, 199 ssize_t n = HANDLE_EINTR(pread(fd, output, data_length, data_offset)); 208 bool SendZygoteChildPing(int fd) { argument 209 return UnixDomainSocket::SendMsg(fd, [all...] |
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) {
|
H A D | sandbox_util.cc | 29 // If asked to close the source, we can simply re-use the source fd instead of 37 int fd = should_close_source ? handle : ::dup(handle); local 38 out_handle = base::FileDescriptor(fd, true);
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
H A D | FileDescriptorInfo.java | 12 FileDescriptorInfo(int id, int fd, boolean autoClose) { argument 14 mFd = fd;
|
H A D | MediaResourceGetter.java | 122 private static MediaMetadata extractMediaMetadataFromFd(int fd, argument 125 return new MediaResourceGetter().extract(fd, offset, length); 129 MediaMetadata extract(int fd, long offset, long length) { argument 134 configure(fd, offset, length); 393 void configure(int fd, long offset, long length) { argument 394 ParcelFileDescriptor parcelFd = ParcelFileDescriptor.adoptFd(fd);
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
H A D | MediaResourceGetterTest.java | 117 public void configure(int fd, long offset, long length) { argument 121 mFd = fd; 573 int fd = 1234; 576 assertEquals(expected, mFakeMRG.extract(fd, offset, length)); 577 assertEquals(fd, mFakeMRG.mFd);
|
/external/chromium_org/content/public/browser/ |
H A D | file_descriptor_info.h | 20 fd(file_descriptor) { 24 base::FileDescriptor fd; member in struct:content::FileDescriptorInfo
|
/external/chromium_org/content/zygote/ |
H A D | zygote_linux.cc | 97 // A SOCK_SEQPACKET socket is installed in fd 3. We get commands from the 99 // A SOCK_DGRAM is installed in fd 5. This is the sandbox IPC channel. 150 bool Zygote::HandleRequestFromBrowser(int fd) { argument 153 const ssize_t len = UnixDomainSocket::RecvMsg(fd, buf, sizeof(buf), &fds); 190 return HandleForkRequest(fd, pickle, iter, fds.Pass()); 195 HandleReapRequest(fd, pickle, iter); 200 HandleGetTerminationStatus(fd, pickle, iter); 203 HandleGetSandboxStatus(fd, pickle, iter); 223 void Zygote::HandleReapRequest(int fd, argument 307 void Zygote::HandleGetTerminationStatus(int fd, argument 551 HandleForkRequest(int fd, const Pickle& pickle, PickleIterator iter, ScopedVector<base::ScopedFD> fds) argument 582 HandleGetSandboxStatus(int fd, const Pickle& pickle, PickleIterator iter) argument [all...] |
/external/chromium_org/dbus/ |
H A D | message.cc | 230 output += indent + "fd#" + 712 int fd = value.value(); local 713 AppendBasic(DBUS_TYPE_UNIX_FD, &fd); 991 int fd = -1; local 992 const bool success = PopBasic(DBUS_TYPE_UNIX_FD, &fd); 996 value->PutValue(fd);
|
/external/chromium_org/device/bluetooth/ |
H A D | bluetooth_socket_chromeos.cc | 372 scoped_ptr<dbus::FileDescriptor> fd, 388 base::Passed(&fd), 394 request->fd = fd.Pass(); 460 base::Passed(&request->fd), 470 scoped_ptr<dbus::FileDescriptor> fd, 475 fd->CheckValidity(); 478 if (!fd->is_valid()) { 479 LOG(WARNING) << object_path_.value() << " :" << fd->value() 497 int net_result = tcp_socket()->AdoptConnectedSocket(fd 370 NewConnection( const dbus::ObjectPath& device_path, scoped_ptr<dbus::FileDescriptor> fd, const BluetoothProfileServiceProvider::Delegate::Options& options, const ConfirmationCallback& callback) argument 468 DoNewConnection( const dbus::ObjectPath& device_path, scoped_ptr<dbus::FileDescriptor> fd, const BluetoothProfileServiceProvider::Delegate::Options& options, const ConfirmationCallback& callback) argument [all...] |
H A D | bluetooth_socket_chromeos.h | 118 scoped_ptr<dbus::FileDescriptor> fd, 133 scoped_ptr<dbus::FileDescriptor> fd, 144 // Method run on the socket thread with a valid file descriptor |fd|, once 147 void DoConnect(scoped_ptr<dbus::FileDescriptor> fd, 198 scoped_ptr<dbus::FileDescriptor> fd; member in struct:chromeos::BluetoothSocketChromeOS::ConnectionRequest
|