/external/valgrind/main/coregrind/m_debuginfo/ |
H A D | readpdb.c | 1702 struct codeview_linetab2_file* fd; local 1726 fd = (struct codeview_linetab2_file*)(linetab + 8 + lbh->file_offset); 1731 pfx, fd->md5[ 0], fd->md5[ 1], fd->md5[ 2], fd->md5[ 3], 1732 fd->md5[ 4], fd->md5[ 5], fd->md5[ 6], fd 2412 Int fd, r; local [all...] |
/external/valgrind/main/coregrind/ |
H A D | m_errormgr.c | 1058 /* Get the next char from fd into *out_buf. Returns 1 if success, 1061 static Int get_char ( Int fd, HChar* out_buf ) argument 1070 r = VG_(read)(fd, buf, 256); 1087 static Bool get_nbnc_line ( Int fd, HChar** bufpp, SizeT* nBufp, Int* lineno ) argument 1100 n = get_char(fd, &ch); 1111 n = get_char(fd, &ch); 1145 Bool VG_(get_line) ( Int fd, HChar** bufpp, SizeT* nBufp, Int* lineno ) argument 1147 Bool eof = get_nbnc_line (fd, bufpp, nBufp, lineno); 1230 Int fd, i, j, lineno = 0; local 1256 fd [all...] |
H A D | m_libcfile.c | 53 static inline Bool fd_exists(Int fd) argument 56 return VG_(fstat)(fd, &st) == 0; 59 /* Move an fd into the Valgrind-safe range */ 70 /* Set the close-on-exec flag for this fd. */ 78 this, we use /proc/self/fd/<FD>. If this doesn't point to a file, 80 Bool VG_(resolve_filename) ( Int fd, HChar* buf, Int n_buf ) argument 84 VG_(sprintf)(tmp, "/proc/self/fd/%d", fd); 93 if (0 == VG_(fcntl)(fd, VKI_F_GETPATH, (UWord)tmp)) { 150 void VG_(close) ( Int fd ) 162 read( Int fd, void* buf, Int count) argument 182 write( Int fd, const void* buf, Int count) argument 234 lseek( Int fd, Off64T offset, Int whence ) argument 321 fstat( Int fd, struct vg_stat* vgbuf ) argument 397 fcntl( Int fd, Int cmd, Addr arg ) argument 531 getdents(Int fd, struct vki_dirent *dirp, UInt count) argument 655 pread( Int fd, void* buf, Int count, OffT offset ) argument 738 Int n, tries, fd; local [all...] |
H A D | m_machine.c | 558 SysRes fd; local 563 fd = VG_(open)( "/proc/cpuinfo", 0, VKI_S_IRUSR ); 564 if ( sr_isError(fd) ) return VEX_S390X_MODEL_UNKNOWN; 566 fh = sr_Res(fd); 647 SysRes fd; local 652 fd = VG_(open)( "/proc/cpuinfo", 0, VKI_S_IRUSR ); 653 if ( sr_isError(fd) ) return -1; 655 fh = sr_Res(fd);
|
H A D | m_main.c | 115 " --log-fd=<number> log messages to file descriptor [2=stderr]\n" 121 " --xml-fd=<number> XML output to file descriptor\n" 134 " --input-fd=<number> file descriptor for input [0=stdin]\n" 277 VG_(log_output_sink).fd = 1; 352 if VG_XACT_CLO(str, "--version", VG_(log_output_sink).fd, 1) { 385 --log-fd= for a fd to write to (default setting, fd = 2) 390 opening, a final fd is established. This is stored in 397 fd t 1346 SysRes fd; local 1862 Int fd, r; local [all...] |
H A D | pub_core_libcprint.h | 42 or not the fd is a socket. */ 44 struct { Int fd; Bool is_socket; } member in struct:__anon32713
|
H A D | vgdb.c | 314 int fd; local 316 fd = open(name, flags); 317 if (fd == -1) 320 DEBUG(1, "opened %s %s fd %d\n", name, desc, fd); 321 return fd; 324 /* acquire a lock on the first byte of the given fd. If not successful, 329 void acquire_lock (int fd, int valgrind_pid) argument 336 if (fcntl(fd, F_SETLK, &fl) < 0) { 348 /* Here, we have the lock. It will be released when fd wil 364 read_buf(int fd, char* buf, const char* desc) argument 384 write_buf(int fd, char* buf, int size, const char* desc, Bool notify) argument 559 readchar(int fd) argument 1052 int fd; local [all...] |
/external/valgrind/main/coregrind/m_gdbserver/ |
H A D | remote-utils.c | 125 int fd; local 132 fd = sr_Res(o); 133 dlog(1, "result fd %d\n", fd); 135 fd = VG_(safe_fd)(fd); 136 dlog(1, "result safe_fd %d\n", fd); 137 if (fd == -1) 139 return fd; 173 int fd; local [all...] |
H A D | server.c | 105 if (VG_(log_output_sink).fd != initial_valgrind_sink.fd 107 VG_(log_output_sink).fd = initial_valgrind_sink.fd; 116 VG_(write) (initial_valgrind_sink.fd, msg, strlen(msg)); 297 (*sink_wanted_at_return).fd = -2; 302 (*sink_wanted_at_return).fd = initial_valgrind_sink.fd; 307 (*sink_wanted_at_return).fd = initial_valgrind_sink.fd; 740 int fd; local [all...] |
/external/valgrind/main/coregrind/m_syswrap/ |
H A D | syswrap-darwin.c | 352 Mach port tracking (based on syswrap-generic's fd tracker) 745 unsigned int, fd, unsigned int, request); 750 unsigned int, fd, unsigned int, request, unsigned long, arg); 1088 PRE_REG_READ2(long, "fcntl", unsigned int, fd, unsigned int, cmd); 1098 unsigned int, fd, unsigned int, cmd, unsigned long, arg); 1107 unsigned int, fd, unsigned int, cmd, 1123 PRE_REG_READ2(long, "fcntl", unsigned int, fd, unsigned int, cmd); 1130 unsigned int, fd, unsigned int, cmd, 1151 unsigned int, fd, unsigned int, cmd, 1159 unsigned int, fd, unsigne 2760 Int fd, ret; local [all...] |
H A D | syswrap-generic.c | 146 UInt flags, Int fd, Off64T offset) 155 d = VG_(am_notify_client_mmap)( a, len, prot, flags, fd, offset ); 197 UInt flags, Int fd, Off64T offset ) 202 notify_core_of_mmap(a, len, prot, flags, fd, offset); 512 Int fd; /* The file descriptor */ member in struct:OpenFd 527 void record_fd_close(Int fd) argument 531 if (fd >= VG_(fd_hard_limit)) 535 if(i->fd == fd) { 553 tid is -1, this indicates an inherited fd 145 notify_core_of_mmap(Addr a, SizeT len, UInt prot, UInt flags, Int fd, Off64T offset) argument 196 notify_core_and_tool_of_mmap( Addr a, SizeT len, UInt prot, UInt flags, Int fd, Off64T offset ) argument 558 record_fd_open_with_given_name(ThreadId tid, Int fd, char *pathname) argument 592 record_fd_open_named(ThreadId tid, Int fd) argument 605 record_fd_open_nameless(ThreadId tid, Int fd) argument 706 getsockdetails(Int fd) argument 1257 fd_allowed(Int fd, const HChar *syscallname, ThreadId tid, Bool isNewFd) argument [all...] |
H A D | syswrap-linux.c | 474 VG_(log_output_sink).fd = -1; 476 VG_(xml_output_sink).fd = -1; 768 unsigned int, fd, unsigned long, offset_high, 1268 PRE_MEM_READ( "ppoll(ufds.fd)", 1269 (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); 1341 int, epfd, int, op, int, fd, struct vki_epoll_event *, event); 1420 int, fd, int, mode, 1427 int, fd, int, mode, vki_loff_t, offset, vki_loff_t, len); 1625 int, fd, vki_u3 2253 Int fd, read; local [all...] |
H A D | syswrap-mips32-linux.c | 371 UInt flags, Int fd, Off64T offset) 380 d = VG_(am_notify_client_mmap)( a, len, prot, flags, fd, offset ); 500 arg5, /* fd */ 557 unsigned long, fd, unsigned long, offset); 569 int, prot, int, flags, int, fd, unsigned long, offset); 627 PRE_REG_READ2 (long, "fstat64", unsigned long, fd, struct stat64 *, buf); 370 notify_core_of_mmap(Addr a, SizeT len, UInt prot, UInt flags, Int fd, Off64T offset) argument
|
/external/valgrind/main/coregrind/m_ume/ |
H A D | elf.c | 69 Int fd; member in struct:elfinfo 92 struct elfinfo *readelf(Int fd, const HChar *filename) argument 99 e->fd = fd; 101 sres = VG_(pread)(fd, &e->e, sizeof(e->e), 0); 141 sres = VG_(pread)(fd, e->p, phsz, e->e.e_phoff); 214 e->fd, VG_PGROUNDDN(off) 299 Int VG_(load_ELF)(Int fd, const HChar* name, /*MOD*/ExeInfo* info) argument 317 e = readelf(fd, name); 376 VG_(pread)(fd, bu [all...] |
H A D | macho.c | 97 load_thin_file(int fd, vki_off_t offset, vki_off_t size, unsigned long filetype, 103 load_fat_file(int fd, vki_off_t offset, vki_off_t size, unsigned long filetype, 109 load_mach_file(int fd, vki_off_t offset, vki_off_t size, unsigned long filetype, 126 int fd; local 135 fd = sr_Res(res); 142 err = VG_(fstat)(fd, &sb); 147 VG_(close)(fd); 152 err = load_mach_file(fd, 0, filesize, MH_DYLINKER, filename, 159 VG_(close)(fd); 166 fd[offse 174 load_segment(int fd, vki_off_t offset, vki_off_t size, vki_uint8_t **text, vki_uint8_t **stack_start, struct SEGMENT_COMMAND *segcmd, const HChar *filename) argument 480 load_thin_file(int fd, vki_off_t offset, vki_off_t size, unsigned long filetype, const HChar *filename, vki_uint8_t **out_stack_start, vki_uint8_t **out_stack_end, vki_uint8_t **out_text, vki_uint8_t **out_entry, vki_uint8_t **out_linker_entry) argument 689 load_fat_file(int fd, vki_off_t offset, vki_off_t size, unsigned long filetype, const HChar *filename, vki_uint8_t **out_stack_start, vki_uint8_t **out_stack_end, vki_uint8_t **out_text, vki_uint8_t **out_entry, vki_uint8_t **out_linker_entry) argument 768 load_mach_file(int fd, vki_off_t offset, vki_off_t size, unsigned long filetype, const HChar *filename, vki_uint8_t **out_stack_start, vki_uint8_t **out_stack_end, vki_uint8_t **out_text, vki_uint8_t **out_entry, vki_uint8_t **out_linker_entry) argument 816 load_macho(Int fd, const HChar *name, ExeInfo *info) argument [all...] |
H A D | main.c | 50 Int (*load_fn)(Int fd, const HChar *name, ExeInfo *info); 70 Int fd, ret, i; local 81 fd = sr_Res(res); 86 VG_(close)(fd); 99 fsz = (SizeT)VG_(fsize)(fd); 103 res = VG_(pread)(fd, buf, bufsz, 0); 105 VG_(close)(fd); 124 *out_fd = fd; 126 VG_(close)(fd); 140 Int fd; local 163 Int fd = sr_Res(res); local 179 Int fd = sr_Res(res); local [all...] |
H A D | script.c | 80 Int VG_(load_script)(Int fd, const HChar* name, ExeInfo* info) argument 92 res = VG_(pread)(fd, hdr, len, 0); 94 VG_(close)(fd);
|
/external/valgrind/main/drd/ |
H A D | drd_error.c | 558 Bool drd_read_extra_suppression_info(Int fd, HChar** bufpp, argument
|
/external/valgrind/main/drd/tests/ |
H A D | concurrent_close.cpp | 17 int fd; local 20 fd = open("/dev/null", O_RDONLY); 21 if (fd >= 0) 22 close(fd);
|
H A D | tsan_unittest.cpp | 6548 const int fd = mkstemp(filename); local 6549 CHECK(fd >= 0); 6550 close(fd);
|
/external/valgrind/main/exp-sgcheck/ |
H A D | pc_common.c | 738 Bool pc_read_extra_suppression_info ( Int fd, HChar** bufpp, argument 743 eof = VG_(get_line) ( fd, bufpp, nBufp, lineno );
|
/external/valgrind/main/exp-sgcheck/tests/ |
H A D | bad_percentify.c | 43 struct { Int fd; Bool is_socket; } member in struct:__anon32814 88 if (b->sink->fd >= 0 || b->sink->fd == -2) {
|
H A D | hackedbz2.c | 383 int fd, 5745 int fd, /* no use when bzdopen */ 5791 fp = fdopen(fd,mode2); 5830 ( int fd, 5833 return bzopen_or_bzdopen(NULL,fd,mode,/*bzdopen*/1); 5743 bzopen_or_bzdopen( const char *path, int fd, const char *mode, int open_mode) argument 5829 BZ2_bzdopen( int fd, const char *mode ) argument
|
/external/valgrind/main/helgrind/ |
H A D | hg_errors.c | 1278 Bool HG_(read_extra_suppression_info) ( Int fd, HChar** bufpp, SizeT* nBufp, argument
|
/external/valgrind/main/include/vki/ |
H A D | vki-amd64-linux.h | 482 int fd; member in struct:vki_pollfd
|