HomeSort by relevance Sort by last modified time
    Searched refs:fd_ (Results 1 - 25 of 103) sorted by null

1 2 3 4 5

  /external/chromium_org/ui/gfx/ozone/dri/
dri_wrapper.cc 16 fd_ = open(device_path, O_RDWR | O_CLOEXEC);
20 if (fd_ >= 0)
21 close(fd_);
25 CHECK(fd_ >= 0);
26 return drmModeGetCrtc(fd_, crtc_id);
37 CHECK(fd_ >= 0);
38 return !drmModeSetCrtc(fd_, crtc_id, framebuffer, 0, 0, connectors, 1, mode);
42 CHECK(fd_ >= 0);
43 return !drmModeSetCrtc(fd_,
59 CHECK(fd_ >= 0)
    [all...]
dri_skbitmap.h 29 int get_fd() const { return fd_; };
43 int fd_; member in class:gfx::DriSkBitmap
  /external/chromium_org/net/tools/quic/test_tools/
quic_client_peer.cc 15 return client->fd_;
quic_server_peer.cc 18 server->fd_, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) != -1;
33 return server->fd_;
  /external/chromium/base/
rand_util_posix.cc 25 fd_ = open("/dev/urandom", O_RDONLY);
26 CHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno;
30 close(fd_);
33 int fd() const { return fd_; }
36 int fd_; member in class:__anon1445::URandomFd
dir_reader_linux.h 33 : fd_(open(directory_path, O_RDONLY | O_DIRECTORY)),
39 if (fd_ >= 0) {
40 if (HANDLE_EINTR(close(fd_)))
46 return fd_ >= 0;
59 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_));
81 return fd_;
89 const int fd_; member in class:base::DirReaderLinux
  /external/chromium_org/base/
rand_util_posix.cc 24 fd_ = open("/dev/urandom", O_RDONLY);
25 DCHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno;
29 close(fd_);
32 int fd() const { return fd_; }
35 int fd_; member in class:__anon3618::URandomFd
  /art/runtime/base/unix_file/
fd_file.cc 26 FdFile::FdFile() : fd_(-1), auto_close_(true) {
29 FdFile::FdFile(int fd) : fd_(fd), auto_close_(true) {
32 FdFile::FdFile(int fd, const std::string& path) : fd_(fd), file_path_(path), auto_close_(true) {
37 if (auto_close_ && fd_ != -1) {
51 CHECK_EQ(fd_, -1) << path;
52 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode));
53 if (fd_ == -1) {
61 int result = TEMP_FAILURE_RETRY(close(fd_));
65 fd_ = -1;
72 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_));
    [all...]
  /external/chromium/chrome/common/
multi_process_lock_linux.cc 18 : name_(name), fd_(-1) { }
21 if (fd_ != -1) {
27 if (fd_ != -1) {
77 fd_ = socket_fd;
91 if (fd_ == -1) {
95 if (HANDLE_EINTR(close(fd_)) < 0) {
98 fd_ = -1;
103 int fd_; member in class:MultiProcessLockLinux
  /external/chromium_org/chrome/common/
multi_process_lock_linux.cc 19 : name_(name), fd_(-1) { }
22 if (fd_ != -1) {
34 if (fd_ != -1) {
75 fd_ = socket_fd;
89 if (fd_ == -1) {
93 if (IGNORE_EINTR(close(fd_)) < 0) {
96 fd_ = -1;
101 int fd_; member in class:MultiProcessLockLinux
  /external/chromium_org/net/tools/quic/
quic_default_packet_writer.cc 12 QuicDefaultPacketWriter::QuicDefaultPacketWriter(int fd) : fd_(fd) {}
21 return QuicSocketUtils::WritePacket(fd_, buffer, buf_len,
quic_client.cc 40 fd_(-1),
58 fd_(-1),
81 fd_ = socket(address_family, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP);
82 if (fd_ < 0) {
88 int rc = setsockopt(fd_, SOL_SOCKET, SO_RXQ_OVFL, &get_overflow,
98 rc = setsockopt(fd_, IPPROTO_IP, IP_PKTINFO,
101 rc = setsockopt(fd_, IPPROTO_IPV6, IPV6_RECVPKTINFO,
126 rc = bind(fd_,
135 if (getsockname(fd_, storage.addr, &storage.addr_len) != 0 ||
140 epoll_server_.RegisterFD(fd_, this, kEpollFlags)
    [all...]
quic_default_packet_writer.h 34 int fd_; member in class:net::tools::QuicDefaultPacketWriter
quic_server.cc 38 fd_(-1),
55 fd_(-1),
87 fd_ = socket(address_family, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP);
88 if (fd_ < 0) {
93 int rc = QuicSocketUtils::SetGetAddressInfo(fd_, address_family);
102 fd_, SOL_SOCKET, SO_RXQ_OVFL, &get_overflow, sizeof(get_overflow));
113 rc = setsockopt(fd_, IPPROTO_IP, IP_PKTINFO,
116 rc = setsockopt(fd_, IPPROTO_IPV6, IPV6_RECVPKTINFO,
128 rc = bind(fd_,
140 if (getsockname(fd_, storage.addr, &storage.addr_len) != 0 |
    [all...]
  /external/chromium_org/base/files/
dir_reader_linux.h 32 : fd_(open(directory_path, O_RDONLY | O_DIRECTORY)),
39 if (fd_ >= 0) {
40 if (IGNORE_EINTR(close(fd_)))
46 return fd_ >= 0;
59 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_));
81 return fd_;
89 const int fd_; member in class:base::DirReaderLinux
  /external/chromium_org/sandbox/linux/services/
thread_helpers_unittests.cc 39 ScopedProcSelfTask() : fd_(-1) {
40 fd_ = open("/proc/self/task/", O_RDONLY | O_DIRECTORY);
41 CHECK_LE(0, fd_);
44 ~ScopedProcSelfTask() { PCHECK(0 == IGNORE_EINTR(close(fd_))); }
46 int fd() { return fd_; }
49 int fd_; member in class:sandbox::__anon10287::ScopedProcSelfTask
  /external/marisa-trie/lib/marisa/
reader.cc 15 : file_(NULL), fd_(-1), stream_(NULL), needs_fclose_(false) {}
18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {}
21 : file_(NULL), fd_(fd), stream_(NULL), needs_fclose_(false) {}
24 : file_(NULL), fd_(-1), stream_(stream), needs_fclose_(false) {}
59 Swap(&fd_, &rhs->fd_);
65 if (fd_ != -1) {
69 const int size_read = _read(fd_, buf, count);
72 const ::ssize_t size_read = ::read(fd_, buf, count);
writer.cc 15 : file_(NULL), fd_(-1), stream_(NULL), needs_fclose_(false) {}
18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {}
21 : file_(NULL), fd_(fd), stream_(NULL), needs_fclose_(false) {}
24 : file_(NULL), fd_(-1), stream_(stream), needs_fclose_(false) {}
71 Swap(&fd_, &rhs->fd_);
77 if (fd_ != -1) {
81 const int size_written = _write(fd_, data, count);
84 const ::ssize_t size_written = ::write(fd_, data, count);
  /external/marisa-trie/v0_1_5/lib/marisa_alpha/
reader.cc 15 : file_(NULL), fd_(-1), stream_(NULL), needs_fclose_(false) {}
18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {}
21 : file_(NULL), fd_(fd), stream_(NULL), needs_fclose_(false) {}
24 : file_(NULL), fd_(-1), stream_(stream), needs_fclose_(false) {}
59 Swap(&fd_, &rhs->fd_);
65 if (fd_ != -1) {
69 const int size_read = _read(fd_, buf, count);
72 const ::ssize_t size_read = ::read(fd_, buf, count);
writer.cc 15 : file_(NULL), fd_(-1), stream_(NULL), needs_fclose_(false) {}
18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {}
21 : file_(NULL), fd_(fd), stream_(NULL), needs_fclose_(false) {}
24 : file_(NULL), fd_(-1), stream_(stream), needs_fclose_(false) {}
71 Swap(&fd_, &rhs->fd_);
77 if (fd_ != -1) {
81 const int size_written = _write(fd_, data, count);
84 const ::ssize_t size_written = ::write(fd_, data, count);
  /external/chromium_org/chrome/renderer/pepper/
pepper_flash_font_file_host.cc 28 fd_(-1) {
30 fd_ = content::MatchFontWithFallback(
56 if (fd_ != -1) {
58 if (content::GetFontTable(fd_, table, 0 /* offset */, NULL, &length)) {
62 if (content::GetFontTable(fd_, table, 0 /* offset */,
  /external/chromium_org/content/common/
font_config_ipc_linux.h 40 const int fd_; member in class:content::FontConfigIPC
  /external/chromium_org/ui/events/ozone/evdev/
key_event_converter.h 30 int fd_; member in class:ui::KeyEventConverterEvdev
  /external/chromium_org/device/bluetooth/
bluetooth_socket_chromeos.cc 28 : fd_(fd) {
32 if (getsockopt(fd_, SOL_SOCKET, SO_TYPE, &optval, &opt_len) < 0) {
47 close(fd_);
55 if (ioctl(fd_, FIONREAD, &count) < 0) {
69 pollfd.fd = fd_;
98 HANDLE_EINTR(read(fd_, buffer->data(), buffer->RemainingCapacity()));
134 HANDLE_EINTR(write(fd_, buffer->data(), buffer->BytesRemaining()));
  /bionic/libc/bionic/
dirent.cpp 41 int fd_; member in struct:DIR
53 d->fd_ = fd;
61 return dirp->fd_;
84 int rc = TEMP_FAILURE_RETRY(getdents(d->fd_, d->buff_, sizeof(d->buff_)));
135 int fd = d->fd_;
143 lseek(d->fd_, 0, SEEK_SET);

Completed in 1145 milliseconds

1 2 3 4 5