/external/chromium_org/base/debug/ |
H A D | stack_trace_posix.cc | 502 int fd = -1; local 514 fd = dup(it->second); 520 if (fd >= 0 && lseek(fd, 0, SEEK_SET) < 0) { 522 fd = -1; 527 return fd; 637 int fd = open(region.path.c_str(), O_RDONLY | O_CLOEXEC); local 638 if (fd >= 0) { 639 modules_.insert(std::make_pair(region.path, fd));
|
/external/chromium_org/base/ |
H A D | file_descriptor_posix.h | 21 FileDescriptor() : fd(-1), auto_close(false) {} 23 FileDescriptor(int ifd, bool iauto_close) : fd(ifd), auto_close(iauto_close) { 26 FileDescriptor(File file) : fd(file.TakePlatformFile()), auto_close(true) {} 29 return (fd == other.fd && auto_close == other.auto_close); 38 return other.fd < fd; 41 int fd; member in struct:base::FileDescriptor
|
H A D | linux_util.cc | 162 int fd = open(buf, O_RDONLY); local 163 if (fd < 0) 167 bool read_ret = ReadFromFD(fd, syscall_data.get(), expected_data.length()); 168 close(fd);
|
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);
|
H A D | os_compat_android.h | 13 extern "C" int futimes(int fd, const struct timeval tv[2]); 24 inline int lockf(int fd, int cmd, off_t ignored_len) { argument 25 return flock(fd, cmd);
|
/external/chromium_org/base/files/ |
H A D | dir_reader_fallback.h | 27 int fd() const { return -1; } function in class:base::DirReaderFallback
|
H A D | dir_reader_linux.h | 80 int fd() const { function in class:base::DirReaderLinux
|
H A D | dir_reader_posix_unittest.cc | 40 const int fd = open(buf, O_CREAT | O_RDONLY | O_EXCL, 0600); local 41 PCHECK(fd >= 0); 42 PCHECK(close(fd) == 0);
|
H A D | file_path_watcher_kqueue.cc | 58 uintptr_t fd = kNoFileDescriptor; local 60 fd = FileDescriptorForPath(built_path); 61 if (fd == kNoFileDescriptor) { 70 EV_SET(&event, fd, EVFILT_VNODE, (EV_ADD | EV_CLEAR | EV_RECEIPT), 79 int fd = HANDLE_EINTR(open(path.value().c_str(), O_EVTONLY)); local 80 if (fd == -1) 82 return fd; 85 void FilePathWatcherKQueue::CloseFileDescriptor(uintptr_t* fd) { argument 86 if (*fd == kNoFileDescriptor) { 90 if (IGNORE_EINTR(close(*fd)) ! 231 OnFileCanReadWithoutBlocking(int fd) argument 304 OnFileCanWriteWithoutBlocking(int fd) argument [all...] |
H A D | file_posix.cc | 33 static int CallFstat(int fd, stat_wrapper_t *sb) { argument 35 return fstat(fd, sb); 38 static int CallFstat(int fd, stat_wrapper_t *sb) { 40 return fstat64(fd, sb);
|
H A D | file_util.cc | 229 int fd = _fileno(file); local 230 if (_chsize(fd, current_offset) != 0) 233 int fd = fileno(file); 234 if (ftruncate(fd, current_offset) != 0)
|
H A D | file_util_posix.cc | 169 ScopedFD fd(CreateAndOpenFdForTemporaryFile(FilePath("/dev/shm"), &path)); 170 if (fd.is_valid()) { 176 void* mapping = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd.get(), 0); 372 bool ReadFromFD(int fd, char* buffer, size_t bytes) { argument 376 HANDLE_EINTR(read(fd, buffer + total_read, bytes - total_read)); 500 int fd = CreateAndOpenFdForTemporaryFile(directory, path); local 501 if (fd < 0) 503 close(fd); 508 int fd = CreateAndOpenFdForTemporaryFile(dir, path); local 509 if (fd < 520 int fd = CreateAndOpenFdForTemporaryFile(dir, temp_file); local 669 int fd = HANDLE_EINTR(open(filename.value().c_str(), O_RDONLY)); local 681 int fd = HANDLE_EINTR(creat(filename.value().c_str(), 0640)); local 691 WriteFileDescriptor(const int fd, const char* data, int size) argument 708 int fd = HANDLE_EINTR(open(filename.value().c_str(), O_WRONLY | O_APPEND)); local [all...] |
H A D | file_util_unittest.cc | 2575 void CloseWithScopedFD(int fd) { argument 2576 base::ScopedFD fd_closer(fd);
|
H A D | file_util_win.cc | 585 int fd = local 587 if (fd < 0) 590 FILE* stream = _fdopen(fd, mode); 592 _close(fd);
|
H A D | scoped_file.cc | 21 void ScopedFDCloseTraits::Free(int fd) { argument 29 PCHECK(0 == IGNORE_EINTR(close(fd)));
|
/external/chromium_org/base/mac/ |
H A D | close_nocancel.cc | 68 int close_implementation(int fd); 70 int close_interface(int fd) { argument 71 return close_implementation(fd);
|
/external/chromium_org/base/memory/ |
H A D | discardable_memory_ashmem_allocator.cc | 64 base::ScopedFD fd(ashmem_create_region(name, size)); 65 if (!fd.is_valid()) { 70 const int err = ashmem_set_prot_region(fd.get(), PROT_READ | PROT_WRITE); 80 NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0); 86 *out_fd = fd.release(); 91 bool CloseAshmemRegion(int fd, size_t size, void* address) { argument 94 close(fd); 97 return close(fd) == 0; 100 bool LockAshmemRegion(int fd, size_t off, size_t size) { argument 101 return ashmem_pin_region(fd, of 104 UnlockAshmemRegion(int fd, size_t off, size_t size) argument 123 int fd; local 220 AshmemRegion(int fd, size_t size, uintptr_t base, DiscardableMemoryAshmemAllocator* allocator) argument 445 DiscardableAshmemChunk(AshmemRegion* ashmem_region, int fd, void* address, size_t offset, size_t size) argument [all...] |
H A D | shared_memory_posix.cc | 53 : mapped_file_(handle.fd), 61 if (fstat(handle.fd, &st) == 0) { 70 : mapped_file_(handle.fd), 88 return handle.fd >= 0; 98 DCHECK_GE(handle.fd, 0); 99 if (close(handle.fd) < 0) 156 // private), and prevents the need for cleanup (once the last fd is 170 int fd = HANDLE_EINTR( local 172 if (fd == -1 && options.open_existing_deprecated) { 180 fd [all...] |
/external/chromium_org/base/message_loop/ |
H A D | message_loop.cc | 660 int fd, 666 fd, 703 bool MessageLoopForIO::WatchFileDescriptor(int fd, argument 709 fd, 659 WatchFileDescriptor( int fd, bool persistent, MessagePumpLibevent::Mode mode, MessagePumpLibevent::FileDescriptorWatcher *controller, MessagePumpLibevent::Watcher *delegate) argument
|
H A D | message_loop_unittest.cc | 759 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE { 762 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { 777 int fd = pipefds[1]; local 785 message_loop.WatchFileDescriptor(fd, 802 int fd = pipefds[1]; local 810 message_loop.WatchFileDescriptor(fd,
|
H A D | message_pump_io_ios.cc | 51 int fd, 55 watcher_->OnFileCanReadWithoutBlocking(fd); 60 int fd, 64 watcher_->OnFileCanWriteWithoutBlocking(fd); 75 int fd, 80 DCHECK_GE(fd, 0); 104 kCFAllocatorDefault, fd, false, HandleFdIOEvent, &source_context)); 128 if (CFFileDescriptorGetNativeDescriptor(fdref) != fd) { 131 << " != " << fd; 185 int fd local 50 OnFileCanReadWithoutBlocking( int fd, MessagePumpIOSForIO* pump) argument 59 OnFileCanWriteWithoutBlocking( int fd, MessagePumpIOSForIO* pump) argument 74 WatchFileDescriptor( int fd, bool persistent, int mode, FileDescriptorWatcher *controller, Watcher *delegate) argument [all...] |
H A D | message_pump_libevent.cc | 46 static int SetNonBlocking(int fd) { argument 47 int flags = fcntl(fd, F_GETFL, 0); 50 return fcntl(fd, F_SETFL, flags | O_NONBLOCK); 93 int fd, MessagePumpLibevent* pump) { 99 watcher_->OnFileCanReadWithoutBlocking(fd); 104 int fd, MessagePumpLibevent* pump) { 107 watcher_->OnFileCanWriteWithoutBlocking(fd); 138 bool MessagePumpLibevent::WatchFileDescriptor(int fd, argument 143 DCHECK_GE(fd, 0); 176 if (EVENT_FD(evt.get()) != fd) { 92 OnFileCanReadWithoutBlocking( int fd, MessagePumpLibevent* pump) argument 103 OnFileCanWriteWithoutBlocking( int fd, MessagePumpLibevent* pump) argument 213 timer_callback(int fd, short events, void *context) argument 339 OnLibeventNotification(int fd, short flags, void* context) argument [all...] |
/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));
|
H A D | global_descriptors.cc | 40 void GlobalDescriptors::Set(Key key, int fd) { argument 44 i->second = fd; 49 descriptors_.push_back(std::make_pair(key, fd));
|
H A D | unix_domain_socket_linux.cc | 36 bool UnixDomainSocket::EnableReceiveProcessId(int fd) { argument 38 return setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable)) == 0; 42 bool UnixDomainSocket::SendMsg(int fd, argument 72 const ssize_t r = HANDLE_EINTR(sendmsg(fd, &msg, flags)); 79 ssize_t UnixDomainSocket::RecvMsg(int fd, argument 83 return UnixDomainSocket::RecvMsgWithPid(fd, buf, length, fds, NULL); 87 ssize_t UnixDomainSocket::RecvMsgWithPid(int fd, argument 92 return UnixDomainSocket::RecvMsgWithFlags(fd, buf, length, 0, fds, pid); 96 ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, argument 114 const ssize_t r = HANDLE_EINTR(recvmsg(fd, 169 SendRecvMsg(int fd, uint8_t* reply, unsigned max_reply_len, int* result_fd, const Pickle& request) argument 180 SendRecvMsgWithFlags(int fd, uint8_t* reply, unsigned max_reply_len, int recvmsg_flags, int* result_fd, const Pickle& request) argument [all...] |