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

12

/external/strace/
H A Dprintstat.h18 DO_PRINTSTAT(struct tcb *tcp, const STRUCT_STAT *statbuf) argument
22 (unsigned int) STAT_MAJOR(statbuf->st_dev),
23 (unsigned int) STAT_MINOR(statbuf->st_dev),
24 (unsigned long long) statbuf->st_ino,
25 sprintmode(statbuf->st_mode));
27 (unsigned int) statbuf->st_nlink,
28 (unsigned int) statbuf->st_uid,
29 (unsigned int) statbuf->st_gid);
31 tprintf("st_blksize=%u, ", (unsigned int) statbuf->st_blksize);
35 (unsigned long long) statbuf
[all...]
H A Dstatfs.c25 struct statfs statbuf; local
31 if (umove(tcp, addr, &statbuf) < 0) {
36 sprintfstype(statbuf.f_type),
37 (unsigned long)statbuf.f_bsize,
38 (unsigned long)statbuf.f_blocks,
39 (unsigned long)statbuf.f_bfree);
41 (unsigned long)statbuf.f_bavail,
42 (unsigned long)statbuf.f_files,
43 (unsigned long)statbuf.f_ffree,
44 statbuf
81 struct statfs64 statbuf; local
137 struct compat_statfs64 statbuf; local
[all...]
H A Dfile.c181 struct stat32 statbuf; local
183 if (umove(tcp, addr, &statbuf) < 0) {
188 do_printstat32(tcp, &statbuf);
230 struct solstat statbuf; local
232 if (umove(tcp, addr, &statbuf) < 0) {
237 do_printstat_sol(tcp, &statbuf);
245 struct stat statbuf; local
270 if (umove(tcp, addr, &statbuf) < 0) {
275 do_printstat(tcp, &statbuf);
356 struct stat64 statbuf; local
467 struct __old_kernel_stat statbuf; local
[all...]
H A Dstrace.c1159 struct_stat statbuf; local
1182 else if (stat_file(filename, &statbuf) == 0)
1213 if (stat_file(pathname, &statbuf) == 0 &&
1217 S_ISREG(statbuf.st_mode) &&
1218 (statbuf.st_mode & 0111))
1224 if (stat_file(pathname, &statbuf) < 0) {
1229 params_for_tracee.run_euid = (statbuf.st_mode & S_ISUID) ? statbuf.st_uid : run_uid;
1230 params_for_tracee.run_egid = (statbuf.st_mode & S_ISGID) ? statbuf
[all...]
/external/eigen/bench/spbench/
H A Dspbenchsolver.cpp43 std::ofstream statbuf; local
50 statbuf.open(statFile.c_str(), std::ios::out);
51 if(statbuf.good()){
53 printStatheader(statbuf);
54 statbuf.close();
78 statbuf.open(statFile.c_str(), std::ios::app);
79 statbuf << "</BENCH> \n";
81 statbuf.close();
H A Dspbenchsolver.h214 void call_solver(Solver &solver, const int solver_id, const typename Solver::MatrixType& A, const Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX,std::ofstream& statbuf) argument
233 statbuf << " <TIME>\n";
234 statbuf << " <COMPUTE> " << timer.value() << "</COMPUTE>\n";
247 statbuf << " <SOLVE> " << timer.value() << "</SOLVE>\n";
251 statbuf << " <TOTAL> " << total_time << "</TOTAL>\n";
253 statbuf << " </TIME>\n";
265 statbuf << " <ERROR> " << rel_error << "</ERROR>\n";
281 std::ofstream statbuf(statFile.c_str(), std::ios::app);
282 statbuf << " <SOLVER_STAT ID='" << solver_id <<"'>\n";
283 call_solver(solver, solver_id, A, b, refX,statbuf);
[all...]
/external/e2fsprogs/tests/progs/
H A Dhold_inode.c23 struct stat statbuf; local
31 if (stat(filename, &statbuf) < 0) {
35 if (S_ISDIR(statbuf.st_mode)) {
/external/bison/lib/
H A Dopen.c131 struct stat statbuf; local
132 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode))
163 struct stat statbuf; local
165 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
H A Dfopen.c77 struct stat statbuf; local
90 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
/external/ltrace/
H A Dexecute_program.c69 struct stat statbuf; local
73 if (!stat(command, &statbuf)) {
74 if (statbuf.st_mode & S_ISUID) {
75 run_euid = statbuf.st_uid;
77 if (statbuf.st_mode & S_ISGID) {
78 run_egid = statbuf.st_gid;
/external/compiler-rt/lib/sanitizer_common/
H A 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) {
[all...]
/external/vboot_reference/cgpt/
H A Dcgpt_find.c180 struct stat statbuf; local
188 if (0 != stat(pathname, &statbuf))
191 if (!S_ISBLK(statbuf.st_mode))
197 if (0 != lstat(tmpname, &statbuf))
200 if (!S_ISLNK(statbuf.st_mode))
/external/dnsmasq/src/
H A Dtftp.c242 struct stat statbuf; local
248 if (stat(daemon->namebuff, &statbuf) == -1 || !S_ISDIR(statbuf.st_mode))
294 struct stat statbuf; local
315 if (fstat(fd, &statbuf) == -1)
321 if (!(statbuf.st_mode & S_IROTH))
325 else if ((daemon->options & OPT_TFTP_SECURE) && uid != statbuf.st_uid)
334 if (t->file->dev == statbuf.st_dev &&
335 t->file->inode == statbuf.st_ino &&
350 file->size = statbuf
[all...]
H A Ddnsmasq.c915 struct stat statbuf; local
921 if (stat(res->name, &statbuf) == -1)
930 if (statbuf.st_mtime != res->mtime)
932 res->mtime = statbuf.st_mtime;
933 if (difftime(statbuf.st_mtime, last_change) > 0.0)
935 last_change = statbuf.st_mtime;
/external/lz4/programs/
H A Dbench.c222 struct _stat64 statbuf; local
223 r = _stat64(infilename, &statbuf);
225 struct stat statbuf; local
226 r = stat(infilename, &statbuf);
228 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */
229 return (U64)statbuf.st_size;
H A Dfullbench.c242 struct _stat64 statbuf; local
243 r = _stat64(infilename, &statbuf);
245 struct stat statbuf; local
246 r = stat(infilename, &statbuf);
248 if (r || !S_ISREG(statbuf.st_mode)) return 0; // No good...
249 return (U64)statbuf.st_size;
/external/ppp/pppd/
H A 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; local
493 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode)
494 && statbuf.st_rdev == devstat.st_rdev) {
508 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0
509 && S_ISCHR(statbuf
523 struct stat statbuf; local
[all...]
/external/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h478 #define __sanitizer_syscall_pre_stat(filename, statbuf) \
479 __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf))
480 #define __sanitizer_syscall_post_stat(res, filename, statbuf) \
481 __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf))
500 #define __sanitizer_syscall_pre_lstat(filename, statbuf) \
501 __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf))
502 #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \
503 __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf))
504 #define __sanitizer_syscall_pre_fstat(fd, statbuf) \
505 __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf))
[all...]
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3filestream.c420 struct _stat statbuf; local
422 _stat((const char *)fileName, &statbuf);
424 return (ANTLR3_UINT32)statbuf.st_size;
/external/libunwind/src/coredump/
H A D_UCD_create.c332 struct stat statbuf; local
333 if (fstat(fd, &statbuf) != 0)
338 phdr->backing_filesize = (uoff_t)statbuf.st_size;
/external/vboot_reference/futility/
H A Dcmd_vbutil_kernel.c176 struct stat statbuf; local
180 if (0 != stat(filename, &statbuf))
183 if (S_ISBLK(statbuf.st_mode)) {
192 file_size = statbuf.st_size;
/external/llvm/lib/Support/
H A Draw_ostream.cpp644 struct stat statbuf; local
645 if (fstat(FD, &statbuf) != 0)
651 if (S_ISCHR(statbuf.st_mode) && isatty(FD))
654 return statbuf.st_blksize;
/external/wpa_supplicant_8/wpa_supplicant/
H A Dhs20_supplicant.c225 struct stat statbuf; local
228 if (stat(osu_dir, &statbuf) < 0) {
234 if (chmod(fname, statbuf.st_mode) < 0) {
240 if (chown(fname, statbuf.st_uid, statbuf.st_gid) < 0) {
/external/openssh/openbsd-compat/
H A Dbsd-cray.c723 struct stat statbuf; local
728 if (stat(jtmp, &statbuf) == 0 && statbuf.st_uid == uid)
/external/libvncserver/libvncserver/
H A Drfbserver.c1283 struct stat statbuf; local
1305 retval = stat(retfilename, &statbuf);
1311 if (S_ISDIR(statbuf.st_mode))
1313 win32filename.ftCreationTime.dwLowDateTime = Swap32IfBE(statbuf.st_ctime); /* Intel Order */
1315 win32filename.ftLastAccessTime.dwLowDateTime = Swap32IfBE(statbuf.st_atime); /* Intel Order */
1317 win32filename.ftLastWriteTime.dwLowDateTime = Swap32IfBE(statbuf.st_mtime); /* Intel Order */
1319 win32filename.nFileSizeLow = Swap32IfBE(statbuf.st_size); /* Intel Order */
1483 struct stat statbuf; local
1577 if (fstat(cl->fileTransfer.fd, &statbuf)!=0) {
1584 strftime(timespec, sizeof(timespec), "%m/%d/%Y %H:%M",gmtime(&statbuf
[all...]

Completed in 887 milliseconds

12