/external/chromium_org/third_party/skia/src/ports/ |
H A D | SkOSFile_posix.cpp | 35 int fd = fileno((FILE*)a); local 36 if (fd < 0) { 40 if (0 != fstat(fd, &status)) { 59 void* sk_fdmmap(int fd, size_t* size) { argument 61 if (0 != fstat(fd, &status)) { 72 void* addr = mmap(NULL, fileSize, PROT_READ, MAP_PRIVATE, fd, 0); 86 int fd = sk_fileno(f); local 87 if (fd < 0) { 91 return sk_fdmmap(fd, size);
|
/external/lzma/CPP/Windows/ |
H A D | FileFind.cpp | 55 #define WIN_FD_TO_MY_FI(fi, fd) \
56 fi.Attrib = fd.dwFileAttributes; \
57 fi.CTime = fd.ftCreationTime; \
58 fi.ATime = fd.ftLastAccessTime; \
59 fi.MTime = fd.ftLastWriteTime; \
60 fi.Size = (((UInt64)fd.nFileSizeHigh) << 32) + fd.nFileSizeLow; \
65 fi.ObjectID = fd.dwOID;
67 fi.ReparseTag = fd.dwReserved0;
71 static void ConvertWIN32_FIND_DATA_To_FileInfo(const WIN32_FIND_DATA &fd, CFileInf argument 81 ConvertWIN32_FIND_DATA_To_FileInfo(const WIN32_FIND_DATAW &fd, CFileInfoW &fi) argument 87 ConvertWIN32_FIND_DATA_To_FileInfo(const WIN32_FIND_DATA &fd, CFileInfoW &fi) argument 135 WIN32_FIND_DATAW fd; local 150 WIN32_FIND_DATAA fd; local 162 WIN32_FIND_DATA fd; local 174 WIN32_FIND_DATAW fd; local 181 WIN32_FIND_DATAA fd; local [all...] |
/external/sepolicy/tools/sepolicy-analyze/ |
H A D | utils.c | 27 int fd; local 32 fd = open(filename, O_RDONLY); 33 if (fd < 0) { 37 if (fstat(fd, &sb) < 0) { 39 close(fd); 42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 45 close(fd); 55 close(fd); 62 close(fd);
|
/external/bison/lib/ |
H A D | spawn-pipe.h | 35 They return the process id of the subprocess. They also return in fd[] 39 if null_stderr is false, then -1 is returned, with errno set, and fd[] 80 * parent -> fd[0] -> STDIN_FILENO -> child 89 int fd[1]); 95 * parent <- fd[0] <- STDOUT_FILENO <- child 102 int fd[1]); 107 * parent -> fd[1] -> STDIN_FILENO -> child 108 * parent <- fd[0] <- STDOUT_FILENO <- child 120 * will produce, the usual technique of calling read (fd, buf, BUFSIZ) 130 int fd[ [all...] |
/external/chromium_org/base/ |
H A D | rand_util_posix.cc | 29 int fd() const { return fd_; } function in class:__anon2436::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/ |
H A D | kernel_wrap_newlib.cc | 95 int WRAP(close)(int fd) { argument 96 ERRNO_RTN(ki_close(fd)); 99 int WRAP(dup)(int fd, int* newfd) { argument 100 *newfd = ki_dup(fd); 104 int WRAP(dup2)(int fd, int newfd) { argument 105 newfd = ki_dup2(fd, newfd); 113 int WRAP(read)(int fd, void* buf, size_t count, size_t* nread) { argument 114 ssize_t signed_nread = ki_read(fd, buf, count); 119 int WRAP(write)(int fd, const void* buf, size_t count, size_t* nwrote) { argument 120 ssize_t signed_nwrote = ki_write(fd, bu 125 seek(int fd, off_t offset, int whence, off_t* new_offset) argument 130 fstat(int fd, struct stat* buf) argument 134 getdents(int fd, dirent* buf, size_t count, size_t* nread) argument [all...] |
H A D | kernel_intercept.cc | 191 int ki_fchdir(int fd) { argument 193 return s_state.kp->fchdir(fd); 196 int ki_fchmod(int fd, mode_t mode) { argument 198 return s_state.kp->fchmod(fd, mode); 240 ssize_t ki_read(int fd, void* buf, size_t nbyte) { argument 242 return s_state.kp->read(fd, buf, nbyte); 245 ssize_t ki_write(int fd, const void* buf, size_t nbyte) { argument 247 return s_state.kp->write(fd, buf, nbyte); 250 int ki_fstat(int fd, struct stat* buf) { argument 252 return s_state.kp->fstat(fd, bu 255 ki_getdents(int fd, void* buf, unsigned int count) argument 260 ki_ftruncate(int fd, off_t length) argument 265 ki_fsync(int fd) argument 270 ki_fdatasync(int fd) argument 275 ki_isatty(int fd) argument 280 ki_close(int fd) argument 285 ki_lseek(int fd, off_t offset, int whence) argument 346 ki_futimes(int fd, const struct timeval times[2]) argument 357 ki_mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset) argument 392 ki_fchown(int fd, uid_t owner, gid_t group) argument 413 ki_futimens(int fd, const struct timespec times[2]) argument 430 ki_tcflush(int fd, int queue_selector) argument 435 ki_tcgetattr(int fd, struct termios* termios_p) argument 440 ki_tcsetattr(int fd, int optional_actions, const struct termios* termios_p) argument 499 ki_accept(int fd, struct sockaddr* addr, socklen_t* len) argument 504 ki_bind(int fd, const struct sockaddr* addr, socklen_t len) argument 509 ki_connect(int fd, const struct sockaddr* addr, socklen_t len) argument 543 ki_getpeername(int fd, struct sockaddr* addr, socklen_t* len) argument 548 ki_getsockname(int fd, struct sockaddr* addr, socklen_t* len) argument 553 ki_getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len) argument 558 ki_listen(int fd, int backlog) argument 563 ki_recv(int fd, void* buf, size_t len, int flags) argument 568 ki_recvfrom(int fd, void* buf, size_t len, int flags, struct sockaddr* addr, socklen_t* addrlen) argument 578 ki_recvmsg(int fd, struct msghdr* msg, int flags) argument 583 ki_send(int fd, const void* buf, size_t len, int flags) argument 588 ki_sendto(int fd, const void* buf, size_t len, int flags, const struct sockaddr* addr, socklen_t addrlen) argument 598 ki_sendmsg(int fd, const struct msghdr* msg, int flags) argument 603 ki_setsockopt(int fd, int lvl, int optname, const void* optval, socklen_t len) argument 612 ki_shutdown(int fd, int how) argument [all...] |
/external/chromium_org/third_party/webrtc/base/ |
H A D | platform_file.cc | 27 int fd = _open_osfhandle(reinterpret_cast<intptr_t>(file), 0); local 28 if (fd < 0) 31 return _fdopen(fd, "w");
|
H A D | linuxfdwalk.c | 20 // in /proc/*/fd. Returns the value, or -1 if not a valid string. 39 DIR *dir = opendir("/proc/self/fd"); 55 int fd = parse_fd(ent->d_name); local 56 if (fd < 0) { 60 if (fd != opendirfd) { 61 (*func)(opaque, fd);
|
/external/compiler-rt/test/tsan/ |
H A D | getline_nohang.cc | 12 int fd[2]; local 13 pipe(fd); 15 FILE *stream = fdopen(fd[0], "r");
|
/external/elfutils/0.153/libdwfl/ |
H A D | find-debuginfo.c | 78 int fd = TEMP_FAILURE_RETRY (open64 (fname, O_RDONLY)); local 79 if (fd < 0) 81 else if (fstat64 (fd, &st) == 0 86 close (fd); 88 fd = -1; 93 return fd; 98 check_crc (int fd, GElf_Word debuglink_crc) argument 101 return (__libdwfl_crc32_file (fd, &file_crc) == 0 106 validate (Dwfl_Module *mod, int fd, bool check, GElf_Word debuglink_crc) argument 116 Dwfl_Error error = __libdw_open_file (&fd, 235 int fd = try_open (&main_stat, dir, subdir, debuglink_file, &fname); local 287 int fd = INTUSE(dwfl_build_id_find_debuginfo) (mod, local 296 int fd = find_debuginfo_in_path (mod, file_name, local [all...] |
H A D | offline.c | 117 const char *file_name, int fd, Elf *elf); 119 const char *file_name, int fd, Elf *elf, 126 process_file (Dwfl *dwfl, const char *name, const char *file_name, int fd, argument 138 return process_elf (dwfl, name, file_name, fd, elf); 141 return process_archive (dwfl, name, file_name, fd, elf, predicate); 147 process_elf (Dwfl *dwfl, const char *name, const char *file_name, int fd, argument 150 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf, 166 if (mod->main.fd != -1 && elf_cntl (mod->main.elf, ELF_C_FDREAD) == 0) 168 close (mod->main.fd); 169 mod->main.fd 179 process_archive_member(Dwfl *dwfl, const char *name, const char *file_name, int (*predicate) (const char *module, const char *file), int fd, Elf *member, Dwfl_Module **mod) argument 256 process_archive(Dwfl *dwfl, const char *name, const char *file_name, int fd, Elf *archive, int (*predicate) (const char *module, const char *file)) argument 286 __libdwfl_report_offline(Dwfl *dwfl, const char *name, const char *file_name, int fd, bool closefd, int (*predicate) (const char *module, const char *file)) argument 309 dwfl_report_offline(Dwfl *dwfl, const char *name, const char *file_name, int fd) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/ |
H A D | SDL_fbelo.c | 134 int eloGetPacket(unsigned char* buffer, int* buffer_p, int* checksum, int fd) { argument 138 if(fd == 0) { 142 num_bytes = read(fd, 187 int eloSendPacket(unsigned char* packet, int fd) argument 199 result = write(fd, packet, ELO_PACKET_SIZE); 215 int eloWaitForInput(int fd, int timeout) argument 222 FD_SET(fd, &readfds); 232 int eloWaitReply(unsigned char type, unsigned char *reply, int fd) { argument 242 result = eloWaitForInput(fd, ELO_MAX_WAIT); 245 ok = eloGetPacket(reply, &reply_p, &sum, fd); 272 eloWaitAck(int fd) argument 298 eloSendQuery(unsigned char *request, unsigned char* reply, int fd) argument 316 eloSendControl(unsigned char* control, int fd) argument 327 eloInitController(int fd) argument 421 eloReadPosition(_THIS, int fd, int* x, int* y, int* button_state, int* realx, int* realy) argument [all...] |
/external/zlib/src/examples/ |
H A D | gzlog.c | 291 int fd; /* file descriptor for .gz file, opened read/write */ member in struct:log 350 int fd; local 354 while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) { 363 close(fd); 409 file descriptor log->fd. */ 415 if (lseek(log->fd, 0, SEEK_SET) < 0 || 416 read(log->fd, buf, HEAD + EXTRA) != HEAD + EXTRA || 450 fsync(log->fd); 451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || 452 write(log->fd, ex 610 int fd; local 740 int fd, ret = 0; local 910 int fd, ret; local 997 int fd, ret; local [all...] |
/external/qemu/block/ |
H A D | raw-posix.c | 52 #include <linux/fd.h> 106 int fd; member in struct:BDRVRawState 134 int fd, ret; local 151 s->fd = -1; 152 fd = qemu_open(filename, s->open_flags, 0644); 153 if (fd < 0) { 159 s->fd = fd; 197 close(fd); 213 if (!ioctl(fd, DIOCGSECTORSIZ 583 int fd = s->fd; local 628 int fd = s->fd; local 696 int fd; local 847 int fd; local 968 int fd; local 1051 int fd, ret; local 1100 int fd; local 1154 int fd, ret; local 1275 int fd; local [all...] |
/external/lldb/examples/interposing/darwin/fd_interposing/ |
H A D | FDInterposing.cpp | 186 FDEvent (int fd, int err, const StringSP &string_sp, bool is_create, const Frames& frames) : argument 189 m_fd (fd), 445 // Keep all stack info around for all fd create and delete calls. 446 // Otherwise we will remove the fd create call when a corresponding 447 // fd delete call is received 596 save_backtrace (int fd, int err, const StringSP &string_sp, bool is_create) argument 601 FDEventSP fd_event_sp (new FDEvent (fd, err, string_sp, is_create, frames)); 603 FDEventMap::iterator pos = g_fd_event_map.find (fd); 607 // We have history for this fd... 609 FDEventArray &event_array = g_fd_event_map[fd]; 670 const int fd = ::socket (domain, type, protocol); local 728 int fd = -2; local 764 const int fd = ::open$NOCANCEL (path, oflag, mode); local 790 const int fd = ::__open_extended (path, oflag, uid, gid, mode, fsacl); local 815 const int fd = ::kqueue (); local 840 const int fd = ::shm_open (path, oflag, mode); local 865 const int fd = ::accept (socket, address, address_len); local 891 const int fd = ::accept$NOCANCEL (socket, address, address_len); local 916 const int fd = ::dup (fd2); local 949 const int fd = ::dup2(fd1, fd2); local 969 close$__interposed__(int fd) argument 1015 close$NOCANCEL$__interposed__(int fd) argument 1099 get_fd_history(int log_fd, int fd) argument [all...] |
/external/chromium_org/android_webview/native/ |
H A D | aw_assets.h | 18 // - |fd|: file descriptor to the apk. The caller takes the ownership. 22 int* fd,
|
/external/chromium_org/base/files/ |
H A D | dir_reader_fallback.h | 27 int fd() const { return -1; } function in class:base::DirReaderFallback
|
/external/chromium_org/base/posix/ |
H A D | file_descriptor_shuffle.h | 35 // Duplicate |fd|, an element of the domain, and write a fresh element of the 37 virtual bool Duplicate(int* result, int fd) = 0; 42 virtual void Close(int fd) = 0; 51 virtual bool Duplicate(int* result, int fd) OVERRIDE; 53 virtual void Close(int fd) OVERRIDE;
|
/external/chromium_org/mojo/embedder/ |
H A D | platform_handle_utils_posix.cc | 18 return ScopedPlatformHandle(PlatformHandle(dup(platform_handle.fd)));
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/include/sys/ |
H A D | ioctl.h | 22 int ioctl(int fd, unsigned long request, ...);
|
/external/chromium_org/sandbox/linux/tests/ |
H A D | scoped_temporary_file.h | 19 int fd() const { return fd_; } function in class:sandbox::ScopedTemporaryFile
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/ |
H A D | os_mman.h | 64 static INLINE void *os_mmap(void *addr, size_t length, int prot, int flags, int fd, loff_t offset) argument 72 return __mmap2(addr, length, prot, flags, fd, (size_t) (offset >> 12)); 77 # define os_mmap(addr, length, prot, flags, fd, offset) mmap(addr, length, prot, flags, fd, offset)
|
/external/chromium_org/ui/events/platform/x11/ |
H A D | x11_event_source_libevent.cc | 35 int fd = ConnectionNumber(display()); local 36 base::MessageLoopForUI::current()->WatchFileDescriptor(fd, true, 47 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE { 51 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {
|
/external/chromium_org/v8/src/arm64/ |
H A D | delayed-masm-arm64-inl.h | 32 void DelayedMasm::Fmov(FPRegister fd, FPRegister fn) { argument 34 __ Fmov(fd, fn); 38 void DelayedMasm::Fmov(FPRegister fd, double imm) { argument 40 __ Fmov(fd, imm);
|