/external/strace/ |
D | printstat.h | 52 DO_PRINTSTAT(struct tcb *tcp, const STRUCT_STAT *statbuf) in DO_PRINTSTAT() argument 56 (unsigned int) STAT_MAJOR(statbuf->st_dev), in DO_PRINTSTAT() 57 (unsigned int) STAT_MINOR(statbuf->st_dev), in DO_PRINTSTAT() 58 (unsigned long long) statbuf->st_ino, in DO_PRINTSTAT() 59 sprintmode(statbuf->st_mode)); in DO_PRINTSTAT() 61 (unsigned int) statbuf->st_nlink, in DO_PRINTSTAT() 62 (unsigned int) statbuf->st_uid, in DO_PRINTSTAT() 63 (unsigned int) statbuf->st_gid); in DO_PRINTSTAT() 65 tprintf("st_blksize=%u, ", (unsigned int) statbuf->st_blksize); in DO_PRINTSTAT() 69 (unsigned long long) statbuf->st_blocks); in DO_PRINTSTAT() [all …]
|
D | statfs.c | 58 struct statfs statbuf; in printstatfs() local 60 if (umove_or_printaddr(tcp, addr, &statbuf)) in printstatfs() 63 sprintfstype(statbuf.f_type), in printstatfs() 64 (unsigned long)statbuf.f_bsize, in printstatfs() 65 (unsigned long)statbuf.f_blocks, in printstatfs() 66 (unsigned long)statbuf.f_bfree); in printstatfs() 68 (unsigned long)statbuf.f_bavail, in printstatfs() 69 (unsigned long)statbuf.f_files, in printstatfs() 70 (unsigned long)statbuf.f_ffree, in printstatfs() 71 statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1]); in printstatfs() [all …]
|
D | file.c | 222 struct stat statbuf; in printstat() local 226 struct stat32 statbuf; in printstat() local 228 if (!umove_or_printaddr(tcp, addr, &statbuf)) in printstat() 229 do_printstat32(tcp, &statbuf); in printstat() 236 struct solstat statbuf; in printstat() local 238 if (!umove_or_printaddr(tcp, addr, &statbuf)) in printstat() 239 do_printstat_sol(tcp, &statbuf); in printstat() 244 if (!umove_or_printaddr(tcp, addr, &statbuf)) in printstat() 245 do_printstat(tcp, &statbuf); in printstat() 326 struct stat64 statbuf; in printstat64() local [all …]
|
D | strace.c | 1182 struct_stat statbuf; in startup_child() local 1205 else if (stat_file(filename, &statbuf) == 0) in startup_child() 1236 if (stat_file(pathname, &statbuf) == 0 && in startup_child() 1240 S_ISREG(statbuf.st_mode) && in startup_child() 1241 (statbuf.st_mode & 0111)) in startup_child() 1247 if (stat_file(pathname, &statbuf) < 0) { in startup_child() 1252 params_for_tracee.run_euid = (statbuf.st_mode & S_ISUID) ? statbuf.st_uid : run_uid; in startup_child() 1253 params_for_tracee.run_egid = (statbuf.st_mode & S_ISGID) ? statbuf.st_gid : run_gid; in startup_child()
|
/external/eigen/bench/spbench/ |
D | spbenchsolver.h | 214 …const Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX,std::ofstream& statbuf) in call_solver() argument 233 statbuf << " <TIME>\n"; in call_solver() 234 statbuf << " <COMPUTE> " << timer.value() << "</COMPUTE>\n"; in call_solver() 247 statbuf << " <SOLVE> " << timer.value() << "</SOLVE>\n"; in call_solver() 251 statbuf << " <TOTAL> " << total_time << "</TOTAL>\n"; in call_solver() 253 statbuf << " </TIME>\n"; in call_solver() 265 statbuf << " <ERROR> " << rel_error << "</ERROR>\n"; in call_solver() 281 std::ofstream statbuf(statFile.c_str(), std::ios::app); in call_directsolver() 282 statbuf << " <SOLVER_STAT ID='" << solver_id <<"'>\n"; in call_directsolver() 283 call_solver(solver, solver_id, A, b, refX,statbuf); in call_directsolver() [all …]
|
D | spbenchsolver.cpp | 43 std::ofstream statbuf; in main() local 50 statbuf.open(statFile.c_str(), std::ios::out); in main() 51 if(statbuf.good()){ in main() 53 printStatheader(statbuf); in main() 54 statbuf.close(); in main() 78 statbuf.open(statFile.c_str(), std::ios::app); in main() 79 statbuf << "</BENCH> \n"; in main() 81 statbuf.close(); in main()
|
/external/ltrace/ |
D | execute_program.c | 69 struct stat statbuf; in change_uid() local 73 if (!stat(command, &statbuf)) { in change_uid() 74 if (statbuf.st_mode & S_ISUID) { in change_uid() 75 run_euid = statbuf.st_uid; in change_uid() 77 if (statbuf.st_mode & S_ISGID) { in change_uid() 78 run_egid = statbuf.st_gid; in change_uid()
|
/external/bison/lib/ |
D | open.c | 131 struct stat statbuf; in open() local 132 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) in open() 163 struct stat statbuf; in open() local 165 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) in open()
|
D | fopen.c | 77 struct stat statbuf; in rpl_fopen() local 90 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) in rpl_fopen()
|
/external/dbus/dbus/ |
D | dbus-sysdeps-util-win.c | 343 DBusStat *statbuf, in _dbus_stat() argument 362 statbuf->mode = _S_IFDIR; in _dbus_stat() 364 statbuf->mode = _S_IFREG; in _dbus_stat() 366 statbuf->mode |= _S_IREAD; in _dbus_stat() 368 statbuf->mode |= _S_IWRITE; in _dbus_stat() 372 statbuf->mode |= _S_IEXEC; in _dbus_stat() 374 statbuf->mode |= (statbuf->mode & 0700) >> 3; in _dbus_stat() 375 statbuf->mode |= (statbuf->mode & 0700) >> 6; in _dbus_stat() 377 statbuf->nlink = 1; in _dbus_stat() 400 statbuf->uid = _dbus_win_sid_to_uid_t (owner_sid); in _dbus_stat() [all …]
|
D | dbus-sysdeps-util-unix.c | 601 DBusStat *statbuf, in _dbus_stat() argument 618 statbuf->mode = sb.st_mode; in _dbus_stat() 619 statbuf->nlink = sb.st_nlink; in _dbus_stat() 620 statbuf->uid = sb.st_uid; in _dbus_stat() 621 statbuf->gid = sb.st_gid; in _dbus_stat() 622 statbuf->size = sb.st_size; in _dbus_stat() 623 statbuf->atime = sb.st_atime; in _dbus_stat() 624 statbuf->mtime = sb.st_mtime; in _dbus_stat() 625 statbuf->ctime = sb.st_ctime; in _dbus_stat()
|
/external/e2fsprogs/tests/progs/ |
D | hold_inode.c | 23 struct stat statbuf; in main() local 31 if (stat(filename, &statbuf) < 0) { in main() 35 if (S_ISDIR(statbuf.st_mode)) { in main()
|
/external/libchrome/sandbox/linux/suid/ |
D | process_util_linux.c | 45 struct stat statbuf; in AdjustOOMScore() local 46 if (fstat(dirfd, &statbuf) < 0) { in AdjustOOMScore() 50 if (getuid() != statbuf.st_uid) { in AdjustOOMScore()
|
/external/dnsmasq/src/ |
D | tftp.c | 242 struct stat statbuf; in tftp_request() local 248 if (stat(daemon->namebuff, &statbuf) == -1 || !S_ISDIR(statbuf.st_mode)) in tftp_request() 294 struct stat statbuf; in check_tftp_fileperm() local 315 if (fstat(fd, &statbuf) == -1) in check_tftp_fileperm() 321 if (!(statbuf.st_mode & S_IROTH)) in check_tftp_fileperm() 325 else if ((daemon->options & OPT_TFTP_SECURE) && uid != statbuf.st_uid) in check_tftp_fileperm() 334 if (t->file->dev == statbuf.st_dev && in check_tftp_fileperm() 335 t->file->inode == statbuf.st_ino && in check_tftp_fileperm() 350 file->size = statbuf.st_size; in check_tftp_fileperm() 351 file->dev = statbuf.st_dev; in check_tftp_fileperm() [all …]
|
/external/ppp/pppd/ |
D | tty.c | 299 struct stat statbuf; local 314 if (stat(cp, &statbuf) < 0) { 320 if (!S_ISCHR(statbuf.st_mode)) { 328 devstat = statbuf; 450 struct stat statbuf; in tty_check_options() local 493 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) in tty_check_options() 494 && statbuf.st_rdev == devstat.st_rdev) { in tty_check_options() 508 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0 in tty_check_options() 509 && S_ISCHR(statbuf.st_mode) && statbuf.st_rdev == devstat.st_rdev) in tty_check_options() 523 struct stat statbuf; in connect_tty() local [all …]
|
/external/vboot_reference/cgpt/ |
D | cgpt_find.c | 180 struct stat statbuf; in is_wholedev() local 188 if (0 != stat(pathname, &statbuf)) in is_wholedev() 191 if (!S_ISBLK(statbuf.st_mode)) in is_wholedev() 197 if (0 != lstat(tmpname, &statbuf)) in is_wholedev() 200 if (!S_ISLNK(statbuf.st_mode)) in is_wholedev()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 478 #define __sanitizer_syscall_pre_stat(filename, statbuf) \ argument 479 __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf)) 480 #define __sanitizer_syscall_post_stat(res, filename, statbuf) \ argument 481 __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf)) 500 #define __sanitizer_syscall_pre_lstat(filename, statbuf) \ argument 501 __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf)) 502 #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \ argument 503 __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf)) 504 #define __sanitizer_syscall_pre_fstat(fd, statbuf) \ argument 505 __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf)) [all …]
|
/external/lz4/programs/ |
D | bench.c | 222 struct _stat64 statbuf; in BMK_GetFileSize() local 223 r = _stat64(infilename, &statbuf); in BMK_GetFileSize() 225 struct stat statbuf; in BMK_GetFileSize() local 226 r = stat(infilename, &statbuf); in BMK_GetFileSize() 228 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */ in BMK_GetFileSize() 229 return (U64)statbuf.st_size; in BMK_GetFileSize()
|
D | fullbench.c | 242 struct _stat64 statbuf; in BMK_GetFileSize() local 243 r = _stat64(infilename, &statbuf); in BMK_GetFileSize() 245 struct stat statbuf; in BMK_GetFileSize() local 246 r = stat(infilename, &statbuf); in BMK_GetFileSize() 248 if (r || !S_ISREG(statbuf.st_mode)) return 0; // No good... in BMK_GetFileSize() 249 return (U64)statbuf.st_size; in BMK_GetFileSize()
|
/external/curl/lib/ |
D | file.c | 425 struct_stat statbuf; /* struct_stat instead of struct stat just to allow the in file_do() local 452 if(-1 != fstat(fd, &statbuf)) { in file_do() 454 expected_size = statbuf.st_size; in file_do() 456 data->info.filetime = (long)statbuf.st_mtime; in file_do() 483 time_t filetime = (time_t)statbuf.st_mtime; in file_do() 520 data->state.resume_from += (curl_off_t)statbuf.st_size; in file_do()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 822 PRE_SYSCALL(stat)(const void *filename, void *statbuf) { 828 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) { 830 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz); 874 PRE_SYSCALL(lstat)(const void *filename, void *statbuf) { 880 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) { 882 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz); 886 PRE_SYSCALL(fstat)(long fd, void *statbuf) {} 888 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) { 890 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz); 894 PRE_SYSCALL(newstat)(const void *filename, void *statbuf) { [all …]
|
/external/antlr/antlr-3.4/runtime/C/src/ |
D | antlr3filestream.c | 420 struct _stat statbuf; in antlr3Fsize() local 422 _stat((const char *)fileName, &statbuf); in antlr3Fsize() 424 return (ANTLR3_UINT32)statbuf.st_size; in antlr3Fsize()
|
/external/vboot_reference/futility/ |
D | cmd_vbutil_kernel.c | 176 struct stat statbuf; in ReadOldKPartFromFileOrDie() local 180 if (0 != stat(filename, &statbuf)) in ReadOldKPartFromFileOrDie() 183 if (S_ISBLK(statbuf.st_mode)) { in ReadOldKPartFromFileOrDie() 192 file_size = statbuf.st_size; in ReadOldKPartFromFileOrDie()
|
/external/tlsdate/src/ |
D | tlsdate-helper-plan9.c | 834 struct stat statbuf; in run_ssl() local 844 if (-1 == stat (ca_cert_container, &statbuf)) in run_ssl() 850 switch (statbuf.st_mode & S_IFMT) in run_ssl() 971 struct stat statbuf; in run_ssl() local 998 if (-1 == stat(ca_cert_container, &statbuf)) in run_ssl() 1003 switch (statbuf.st_mode & S_IFMT) in run_ssl()
|
/external/libunwind/src/coredump/ |
D | _UCD_create.c | 332 struct stat statbuf; in _UCD_add_backing_file_at_segment() local 333 if (fstat(fd, &statbuf) != 0) in _UCD_add_backing_file_at_segment() 338 phdr->backing_filesize = (uoff_t)statbuf.st_size; in _UCD_add_backing_file_at_segment()
|