/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);
|
/external/chromium_org/sandbox/linux/suid/ |
H A D | process_util_linux.c | 54 int fd = openat(dirfd, "oom_score_adj", O_WRONLY); local 55 if (fd < 0) { 58 fd = openat(dirfd, "oom_adj", O_WRONLY); 59 if (fd < 0) { 75 ssize_t bytes_written = write(fd, buf, len); 76 close(fd);
|
/external/chromium_org/sandbox/linux/tests/ |
H A D | scoped_temporary_file.h | 19 int fd() const { return fd_; } function in class:sandbox::ScopedTemporaryFile
|
H A D | scoped_temporary_file_unittest.cc | 25 bool FullWrite(int fd, const char* buffer, size_t count) { argument 27 const ssize_t transfered = HANDLE_EINTR(write(fd, buffer, count)); 37 bool FullRead(int fd, char* buffer, size_t count) { argument 39 const ssize_t transfered = HANDLE_EINTR(read(fd, buffer, count)); 54 ASSERT_LE(0, temp_file_1.fd()); 60 ASSERT_TRUE(FullWrite(temp_file_1.fd(), kTestString, sizeof(kTestString)));
|
/external/chromium_org/testing/gtest/include/gtest/internal/ |
H A D | gtest-port.h | 2197 inline int IsATTY(int fd) { return isatty(fd); } argument 2204 inline int IsATTY(int /* fd */) { return 0; } 2206 inline int IsATTY(int fd) { return _isatty(fd); } argument 2232 inline int IsATTY(int fd) { return isatty(fd); } 2265 inline FILE* FDOpen(int fd, const char* mode) { return fdopen(fd, mode); } argument 2269 inline int Read(int fd, voi argument 2272 Write(int fd, const void* buf, unsigned int count) argument 2275 Close(int fd) argument [all...] |
/external/chromium_org/testing/gtest/src/ |
H A D | gtest-death-test.cc | 312 static void FailFromInternalError(int fd) { argument 318 while ((num_read = posix::Read(fd, buffer, 255)) > 0) { 388 void set_read_fd(int fd) { read_fd_ = fd; } argument 390 void set_write_fd(int fd) { write_fd_ = fd; } argument
|
H A D | gtest-port.cc | 112 const int fd = open("/proc/self/as", O_RDONLY); local 113 if (fd < 0) { 118 devctl(fd, DCMD_PROC_INFO, &process_info, sizeof(process_info), NULL); 119 close(fd); 897 explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { 1014 void CaptureStream(int fd, const char* stream_name, CapturedStream** stream) { 1019 *stream = new CapturedStream(fd);
|
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/sqlite/ |
H A D | SQLiteFileSystemPosix.cpp | 44 int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs, int fd, int dirfd, sqlite3_file* file, const char* fileName, int noLock); 45 int chromium_sqlite3_get_reusable_file_handle(sqlite3_file* file, const char* fileName, int flags, int* fd); 46 void chromium_sqlite3_update_reusable_file_handle(sqlite3_file* file, int fd, int flags); 66 int fd = -1; local 67 int result = chromium_sqlite3_get_reusable_file_handle(id, fileName, desiredFlags, &fd); 71 if (fd < 0) { 72 fd = Platform::current()->databaseOpenFile(String(fileName), desiredFlags); 73 if ((fd < 0) && (desiredFlags & SQLITE_OPEN_READWRITE)) { 75 fd = Platform::current()->databaseOpenFile(String(fileName), newFlags); 78 if (fd < [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
H A D | Font.cpp | 60 Font::Font(const FontDescription& fd) argument 61 : m_fontDescription(fd)
|
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
H A D | crazy_linker_ashmem.cpp | 22 int fd = TEMP_FAILURE_RETRY(open("/dev/ashmem", O_RDWR)); local 23 if (fd < 0) 26 if (ioctl(fd, ASHMEM_SET_SIZE, region_size) < 0) 32 if (ioctl(fd, ASHMEM_SET_NAME, buf) < 0) 36 Reset(fd); 40 ::close(fd); 49 bool AshmemRegion::CheckFileDescriptorIsReadOnly(int fd) { argument 55 if (map.Allocate(NULL, map_size, MemoryMapping::CAN_WRITE, fd)) { 69 if (!map.Allocate(NULL, map_size, MemoryMapping::CAN_READ, fd)) {
|
H A D | crazy_linker_ashmem.h | 19 int fd() const { return fd_; } function in class:crazy::AshmemRegion 27 void Reset(int fd) { argument 31 fd_ = fd; 44 // Check that the region tied to file descriptor |fd| is properly read-only: 53 static bool CheckFileDescriptorIsReadOnly(int fd);
|
H A D | crazy_linker_elf_relro.cpp | 25 // from the ashmem region identified by |fd|, starting from 29 int fd, 42 // Remap the fd pages at the same location now. 47 fd, 93 if (!map.Allocate(NULL, relro_size, MemoryMapping::CAN_WRITE, ashmem_.fd())) { 125 NULL, relro_size, MemoryMapping::CAN_READ_WRITE, ashmem_.fd())) { 159 LOG("%s: Entering addr=%p size=%p fd=%d\n", 27 SwapPagesFromFd(void* addr, size_t size, int fd, size_t offset, Error* error) argument
|
H A D | crazy_linker_elf_relro.h | 31 int fd() const { return ashmem_.fd(); } function in class:crazy::SharedRelro 34 // After this call, fd() will always return -1.
|
H A D | crazy_linker_memory_mapping.h | 35 // |fd| is -1 (for anonymous mappings), or a valid file descriptor. 37 bool Allocate(void* address, size_t size, Protection prot, int fd) { argument 38 int flags = (fd >= 0) ? MAP_SHARED : MAP_ANONYMOUS; 43 map_ = ::mmap(address, size_, static_cast<int>(prot), flags, fd, 0);
|
H A D | crazy_linker_rdebug.cpp | 53 crazy::FileDescriptor fd; local 54 if (!fd.OpenReadOnly(path) || 55 fd.Read(header, sizeof(header)) != static_cast<int>(sizeof(header))) { 77 if (fd.SeekTo(header->e_phoff) < 0) { 89 if (fd.Read(&phdr, sizeof(phdr)) != sizeof(phdr)) {
|
H A D | crazy_linker_shared_library.cpp | 190 FileDescriptor fd; local 191 if (!fd.OpenReadOnly(full_path)) { 195 if (fd.SeekTo(offset) == -1) { 201 const ssize_t bytes_read = fd.Read(buffer.Get(), bytes); 206 fd.Close();
|
H A D | crazy_linker_zip.cpp | 96 FileDescriptor fd; local 97 if (!fd.OpenReadOnly(zip_file)) { 118 void* mem = fd.Map(NULL, stat_buf.st_size, PROT_READ, MAP_PRIVATE, 0);
|
/external/chromium_org/third_party/android_crazy_linker/src/tests/ |
H A D | bench_load_library.cpp | 36 int fd = open("/proc/sys/vm/drop_caches", O_RDWR); local 37 if (fd < 0) { 42 write(fd, "3\n", 2); 43 close(fd);
|
H A D | test_util.h | 252 // Send a file descriptor |fd| through |socket|. 254 inline int SendFd(int socket, int fd) { argument 277 ::memcpy(CMSG_DATA(cmsg), &fd, sizeof(int)); local 291 inline int ReceiveFd(int socket, int* fd) { argument 320 ::memcpy(fd, CMSG_DATA(cmsg), sizeof(int)); 377 int fd; member in struct:__anon11507::RelroInfo 401 &this->relro.fd)) { 411 this->relro.fd); 419 void SendRelroInfo(int fd) { argument 420 if (SendFd(fd, thi 433 ReceiveRelroInfo(int fd) argument [all...] |
/external/chromium_org/third_party/android_platform/webview/ |
H A D | frameworks.jar | META-INF/ META-INF/MANIFEST.MF android/ android/location/ android/location/Address$1.class ... |
/external/chromium_org/third_party/ashmem/ |
H A D | ashmem-dev.c | 44 int fd, ret; local 46 fd = open(ASHMEM_DEVICE, O_RDWR); 47 if (fd < 0) 48 return fd; 54 ret = ioctl(fd, ASHMEM_SET_NAME, buf); 59 ret = ioctl(fd, ASHMEM_SET_SIZE, size); 63 return fd; 66 close(fd); 70 int ashmem_set_prot_region(int fd, int prot) argument 72 return ioctl(fd, ASHMEM_SET_PROT_MAS 75 ashmem_pin_region(int fd, size_t offset, size_t len) argument 81 ashmem_unpin_region(int fd, size_t offset, size_t len) argument 87 ashmem_get_size_region(int fd) argument 94 const int fd = open(ASHMEM_DEVICE, O_RDWR); local [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/bio/ |
H A D | fd.c | 120 BIO *BIO_new_fd(int fd, int close_flag) { argument 125 BIO_set_fd(ret, fd, close_flag); 260 int BIO_set_fd(BIO *bio, int fd, int close_flag) { argument 261 return BIO_int_ctrl(bio, BIO_C_SET_FD, close_flag, fd);
|
H A D | socket.c | 171 BIO *BIO_new_socket(int fd, int close_flag) { argument 178 BIO_set_fd(ret, fd, close_flag);
|
/external/chromium_org/third_party/boringssl/src/crypto/rand/ |
H A D | urandom.c | 116 /* read_full reads exactly |len| bytes from |fd| into |out| and returns 1. In 118 static char read_full(int fd, uint8_t *out, size_t len) { argument 123 r = read(fd, out, len); 139 int fd; local 149 fd = urandom_get_fd_locked(); 151 if (fd < 0) { 161 if (!read_full(fd, out, requested)) { 224 if (!read_full(fd, buf->rand, rand_bytes_per_buf)) {
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
H A D | ssl_lib.c | 762 int SSL_set_fd(SSL *s,int fd) argument 774 BIO_set_fd(bio,fd,BIO_NOCLOSE); 781 int SSL_set_wfd(SSL *s,int fd) argument 787 || ((int)BIO_get_fd(s->rbio,NULL) != fd)) 796 BIO_set_fd(bio,fd,BIO_NOCLOSE); 806 int SSL_set_rfd(SSL *s,int fd) argument 812 || ((int)BIO_get_fd(s->wbio,NULL) != fd)) 821 BIO_set_fd(bio,fd,BIO_NOCLOSE);
|