Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 25 of 36) sorted by relevance

12

/external/strace/
Dprintstat.h18 DO_PRINTSTAT(struct tcb *tcp, const STRUCT_STAT *statbuf) in DO_PRINTSTAT() argument
22 (unsigned int) STAT_MAJOR(statbuf->st_dev), in DO_PRINTSTAT()
23 (unsigned int) STAT_MINOR(statbuf->st_dev), in DO_PRINTSTAT()
24 (unsigned long long) statbuf->st_ino, in DO_PRINTSTAT()
25 sprintmode(statbuf->st_mode)); in DO_PRINTSTAT()
27 (unsigned int) statbuf->st_nlink, in DO_PRINTSTAT()
28 (unsigned int) statbuf->st_uid, in DO_PRINTSTAT()
29 (unsigned int) statbuf->st_gid); in DO_PRINTSTAT()
31 tprintf("st_blksize=%u, ", (unsigned int) statbuf->st_blksize); in DO_PRINTSTAT()
35 (unsigned long long) statbuf->st_blocks); in DO_PRINTSTAT()
[all …]
Dstatfs.c25 struct statfs statbuf; in printstatfs() local
31 if (umove(tcp, addr, &statbuf) < 0) { in printstatfs()
36 sprintfstype(statbuf.f_type), in printstatfs()
37 (unsigned long)statbuf.f_bsize, in printstatfs()
38 (unsigned long)statbuf.f_blocks, in printstatfs()
39 (unsigned long)statbuf.f_bfree); in printstatfs()
41 (unsigned long)statbuf.f_bavail, in printstatfs()
42 (unsigned long)statbuf.f_files, in printstatfs()
43 (unsigned long)statbuf.f_ffree, in printstatfs()
44 statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1]); in printstatfs()
[all …]
Dfile.c181 struct stat32 statbuf; in printstat32() local
183 if (umove(tcp, addr, &statbuf) < 0) { in printstat32()
188 do_printstat32(tcp, &statbuf); in printstat32()
230 struct solstat statbuf; in printstatsol() local
232 if (umove(tcp, addr, &statbuf) < 0) { in printstatsol()
237 do_printstat_sol(tcp, &statbuf); in printstatsol()
245 struct stat statbuf; in printstat() local
270 if (umove(tcp, addr, &statbuf) < 0) { in printstat()
275 do_printstat(tcp, &statbuf); in printstat()
356 struct stat64 statbuf; in printstat64() local
[all …]
Dstrace.c1159 struct_stat statbuf; in startup_child() local
1182 else if (stat_file(filename, &statbuf) == 0) in startup_child()
1213 if (stat_file(pathname, &statbuf) == 0 && in startup_child()
1217 S_ISREG(statbuf.st_mode) && in startup_child()
1218 (statbuf.st_mode & 0111)) in startup_child()
1224 if (stat_file(pathname, &statbuf) < 0) { in startup_child()
1229 params_for_tracee.run_euid = (statbuf.st_mode & S_ISUID) ? statbuf.st_uid : run_uid; in startup_child()
1230 params_for_tracee.run_egid = (statbuf.st_mode & S_ISGID) ? statbuf.st_gid : run_gid; in startup_child()
/external/eigen/bench/spbench/
Dspbenchsolver.h214 …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 …]
Dspbenchsolver.cpp43 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/
Dexecute_program.c69 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/
Dopen.c131 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()
Dfopen.c77 struct stat statbuf; in rpl_fopen() local
90 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) in rpl_fopen()
/external/e2fsprogs/tests/progs/
Dhold_inode.c23 struct stat statbuf; in main() local
31 if (stat(filename, &statbuf) < 0) { in main()
35 if (S_ISDIR(statbuf.st_mode)) { in main()
/external/dnsmasq/src/
Dtftp.c242 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 …]
Ddnsmasq.c915 struct stat statbuf; in poll_resolv() local
921 if (stat(res->name, &statbuf) == -1) in poll_resolv()
930 if (statbuf.st_mtime != res->mtime) in poll_resolv()
932 res->mtime = statbuf.st_mtime; in poll_resolv()
933 if (difftime(statbuf.st_mtime, last_change) > 0.0) in poll_resolv()
935 last_change = statbuf.st_mtime; in poll_resolv()
/external/ppp/pppd/
Dtty.c299 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/
Dcgpt_find.c180 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/
Dlinux_syscall_hooks.h478 #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/
Dbench.c222 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()
Dfullbench.c242 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/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc822 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/
Dantlr3filestream.c420 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/
Dcmd_vbutil_kernel.c176 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/libunwind/src/coredump/
D_UCD_create.c332 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()
/external/llvm/lib/Support/
Draw_ostream.cpp644 struct stat statbuf; in preferred_buffer_size() local
645 if (fstat(FD, &statbuf) != 0) in preferred_buffer_size()
651 if (S_ISCHR(statbuf.st_mode) && isatty(FD)) in preferred_buffer_size()
654 return statbuf.st_blksize; in preferred_buffer_size()
/external/wpa_supplicant_8/wpa_supplicant/
Dhs20_supplicant.c225 struct stat statbuf; in hs20_set_osu_access_permission() local
228 if (stat(osu_dir, &statbuf) < 0) { in hs20_set_osu_access_permission()
234 if (chmod(fname, statbuf.st_mode) < 0) { in hs20_set_osu_access_permission()
240 if (chown(fname, statbuf.st_uid, statbuf.st_gid) < 0) { in hs20_set_osu_access_permission()
/external/libvncserver/libvncserver/
Drfbserver.c1283 struct stat statbuf; in rfbSendDirContent() local
1305 retval = stat(retfilename, &statbuf); in rfbSendDirContent()
1311 if (S_ISDIR(statbuf.st_mode)) in rfbSendDirContent()
1313 … win32filename.ftCreationTime.dwLowDateTime = Swap32IfBE(statbuf.st_ctime); /* Intel Order */ in rfbSendDirContent()
1315 … win32filename.ftLastAccessTime.dwLowDateTime = Swap32IfBE(statbuf.st_atime); /* Intel Order */ in rfbSendDirContent()
1317 … win32filename.ftLastWriteTime.dwLowDateTime = Swap32IfBE(statbuf.st_mtime); /* Intel Order */ in rfbSendDirContent()
1319 win32filename.nFileSizeLow = Swap32IfBE(statbuf.st_size); /* Intel Order */ in rfbSendDirContent()
1483 struct stat statbuf; in rfbProcessFileTransfer() local
1577 if (fstat(cl->fileTransfer.fd, &statbuf)!=0) { in rfbProcessFileTransfer()
1584 strftime(timespec, sizeof(timespec), "%m/%d/%Y %H:%M",gmtime(&statbuf.st_ctime)); in rfbProcessFileTransfer()
[all …]
/external/openssh/openbsd-compat/
Dbsd-cray.c723 struct stat statbuf; in cray_delete_tmpdir() local
728 if (stat(jtmp, &statbuf) == 0 && statbuf.st_uid == uid) in cray_delete_tmpdir()

12