/cts/tests/tests/security/jni/ |
android_security_cts_CharDeviceTest.cpp | 36 int fd = open("/dev/exynos-mem", O_RDWR); local 37 if (fd < 0) { 42 mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, PHYS_OFFSET); 63 close(fd); 74 int fd = open("/dev/exynos-mem", O_RDONLY); local 75 if (fd < 0) { 80 mmap(NULL, length, PROT_READ, MAP_SHARED, fd, PHYS_OFFSET); 103 close(fd);
|
/dalvik/libdex/ |
CmdUtils.cpp | 46 int fd = -1; local 57 fd = open(outFileName, O_RDWR | O_CREAT | O_EXCL, 0600); 58 if (fd < 0) { 76 if (dexZipExtractEntryToFile(archive, &entry, fd) != 0) { 84 if (fd >= 0) 85 close(fd); 117 int fd = -1; local 176 fd = open(fileName, O_RDONLY | O_BINARY); 177 if (fd < 0) { 185 if (sysMapFileInShmemWritableReadOnly(fd, pMap) != 0) [all...] |
/development/ndk/platforms/android-L/include/linux/usb/ |
f_mtp.h | 25 int fd; member in struct:mtp_file_range
|
/device/asus/fugu/dumpstate/ |
dumpstate.c | 47 int fd = open(path, O_RDONLY | O_CLOEXEC | O_NOFOLLOW); local 48 if (fd < 0) { 58 int ret = read(fd, &buffer[left], sizeof(buffer) - left); 78 close(fd);
|
/device/generic/goldfish/libqemu/ |
test_util.c | 47 static int fd; local 52 fd = socket( AF_INET, SOCK_STREAM, 0 ); 53 if (fd < 0) { 63 if ( connect(fd, (struct sockaddr*)&addr, sizeof(addr)) < 0 ) { 66 close(fd); 70 pipe->socket = fd;
|
/external/bison/lib/ |
spawn_int.h | 33 int fd; member in struct:__spawn_action::__anon4977::__anon4978 37 int fd; member in struct:__spawn_action::__anon4977::__anon4979 42 int fd; member in struct:__spawn_action::__anon4977::__anon4980
|
/external/bluetooth/bluedroid/osi/include/ |
reactor.h | 53 int fd; // the file descriptor to monitor for events. member in struct:reactor_object_t
|
/external/bluetooth/bluedroid/osi/src/ |
semaphore.c | 35 int fd; member in struct:semaphore_t 41 ret->fd = eventfd(value, EFD_SEMAPHORE); 42 if (ret->fd == -1) { 52 if (semaphore->fd != -1) 53 close(semaphore->fd); 59 assert(semaphore->fd != -1); 62 if (eventfd_read(semaphore->fd, &value) == -1) 68 assert(semaphore->fd != -1); 70 int flags = fcntl(semaphore->fd, F_GETFL); 72 ALOGE("%s unable to get flags for semaphore fd: %s", __func__, strerror(errno)) [all...] |
/external/chromium_org/base/files/ |
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);
|
/external/chromium_org/base/ |
rand_util_posix.cc | 29 int fd() const { return fd_; } function in class:__anon7028::URandomFd 49 const int urandom_fd = g_urandom_fd.Pointer()->fd(); 56 return g_urandom_fd.Pointer()->fd();
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/include/sys/ |
poll.h | 23 #define POLLNVAL 0x0020 /* Invalid FD. */ 29 int fd; member in struct:pollfd
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/jsfs/ |
js_fs_node.h | 25 JsFsNode(Filesystem* filesystem, int32_t fd); 48 int32_t fd() { return fd_; } function in class:nacl_io::JsFsNode
|
/external/chromium_org/ppapi/native_client/src/trusted/plugin/ |
temporary_file.cc | 53 int32_t fd = posix_desc; local 55 int32_t fd = internal_handle_; local 58 if (fd < 0) { 63 // dup the fd to make allow making separate read and write wrappers. 64 int32_t read_fd = DUP(fd); 72 plugin_->wrapper_factory()->MakeFileDesc(fd, O_RDWR));
|
/external/chromium_org/sandbox/linux/services/ |
thread_helpers_unittests.cc | 47 int fd() { return fd_; } function in class:sandbox::__anon14570::ScopedProcSelfTask 67 ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd())); 72 ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd())); 75 ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread)); 80 ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd())); 86 ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd())); 88 ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread)); 94 ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd())); 101 ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd())); 103 ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread)) [all...] |
/external/chromium_org/sandbox/linux/suid/ |
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/third_party/WebKit/Source/modules/webdatabase/sqlite/ |
SQLiteFileSystemPosix.cpp | 46 int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs, int fd, int dirfd, sqlite3_file* file, const char* fileName, int noLock); 47 int chromium_sqlite3_get_reusable_file_handle(sqlite3_file* file, const char* fileName, int flags, int* fd); 48 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 = blink::Platform::current()->databaseOpenFile(String(fileName), desiredFlags); 73 if ((fd < 0) && (desiredFlags & SQLITE_OPEN_READWRITE)) { 75 fd = blink::Platform::current()->databaseOpenFile(String(fileName), newFlags); 78 if (fd < 0) [all...] |
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
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.
|
/external/chromium_org/third_party/libxml/src/ |
testRelax.c | 89 int fd; local 94 if ((fd = open(argv[i], O_RDONLY)) < 0) 97 MAP_SHARED, fd, 0) ;
|
testSchemas.c | 85 int fd; local 90 if ((fd = open(argv[i], O_RDONLY)) < 0) 93 MAP_SHARED, fd, 0) ;
|
/external/chromium_org/third_party/openssl/openssl/crypto/md4/ |
md4.c | 103 int fd; local 107 fd=fileno(f); 111 i=read(fd,buf,sizeof buf);
|
/external/chromium_org/third_party/openssl/openssl/crypto/md5/ |
md5.c | 103 int fd; local 107 fd=fileno(f); 111 i=read(fd,buf,BUFSIZE);
|
/external/chromium_org/third_party/openssl/openssl/crypto/ripemd/ |
rmd160.c | 103 int fd; local 107 fd=fileno(f); 111 i=read(fd,buf,BUFSIZE);
|
/external/chromium_org/third_party/openssl/openssl/crypto/sha/ |
sha.c | 100 int fd; local 104 fd=fileno(f); 108 i=read(fd,buf,BUFSIZE);
|
sha1.c | 103 int fd; local 107 fd=fileno(f); 111 i=read(fd,buf,BUFSIZE);
|
/external/chromium_org/third_party/ots/test/ |
perf.cc | 32 const int fd = ::open(argv[1], O_RDONLY); local 33 if (fd < 0) { 39 ::fstat(fd, &st); 42 if (::read(fd, data, st.st_size) != st.st_size) {
|