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

12

/external/strace/
H A Dprintstat.h52 DO_PRINTSTAT(struct tcb *tcp, const STRUCT_STAT *statbuf) argument
56 (unsigned int) STAT_MAJOR(statbuf->st_dev),
57 (unsigned int) STAT_MINOR(statbuf->st_dev),
58 (unsigned long long) statbuf->st_ino,
59 sprintmode(statbuf->st_mode));
61 (unsigned int) statbuf->st_nlink,
62 (unsigned int) statbuf->st_uid,
63 (unsigned int) statbuf->st_gid);
65 tprintf("st_blksize=%u, ", (unsigned int) statbuf->st_blksize);
69 (unsigned long long) statbuf
[all...]
H A Dstatfs.c58 struct statfs statbuf; local
60 if (umove_or_printaddr(tcp, addr, &statbuf))
63 sprintfstype(statbuf.f_type),
64 (unsigned long)statbuf.f_bsize,
65 (unsigned long)statbuf.f_blocks,
66 (unsigned long)statbuf.f_bfree);
68 (unsigned long)statbuf.f_bavail,
69 (unsigned long)statbuf.f_files,
70 (unsigned long)statbuf.f_ffree,
71 statbuf
108 struct statfs64 statbuf; local
158 struct compat_statfs64 statbuf; local
[all...]
H A Dfile.c222 struct stat statbuf; local
226 struct stat32 statbuf; local
228 if (!umove_or_printaddr(tcp, addr, &statbuf))
229 do_printstat32(tcp, &statbuf);
236 struct solstat statbuf; local
238 if (!umove_or_printaddr(tcp, addr, &statbuf))
239 do_printstat_sol(tcp, &statbuf);
244 if (!umove_or_printaddr(tcp, addr, &statbuf))
245 do_printstat(tcp, &statbuf);
326 struct stat64 statbuf; local
424 struct __old_kernel_stat statbuf; local
429 struct solstat statbuf; local
[all...]
H A Dstrace.c1182 struct_stat statbuf; local
1205 else if (stat_file(filename, &statbuf) == 0)
1236 if (stat_file(pathname, &statbuf) == 0 &&
1240 S_ISREG(statbuf.st_mode) &&
1241 (statbuf.st_mode & 0111))
1247 if (stat_file(pathname, &statbuf) < 0) {
1252 params_for_tracee.run_euid = (statbuf.st_mode & S_ISUID) ? statbuf.st_uid : run_uid;
1253 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/libchrome/sandbox/linux/suid/
H A Dprocess_util_linux.c45 struct stat statbuf; local
46 if (fstat(dirfd, &statbuf) < 0) {
50 if (getuid() != statbuf.st_uid) {
/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/dbus/dbus/
H A Ddbus-sysdeps-util-win.c337 * @param statbuf the stat info to fill in
343 DBusStat *statbuf,
362 statbuf->mode = _S_IFDIR;
364 statbuf->mode = _S_IFREG;
366 statbuf->mode |= _S_IREAD;
368 statbuf->mode |= _S_IWRITE;
372 statbuf->mode |= _S_IEXEC;
374 statbuf->mode |= (statbuf->mode & 0700) >> 3;
375 statbuf
342 _dbus_stat(const DBusString *filename, DBusStat *statbuf, DBusError *error) argument
[all...]
H A Ddbus-sysdeps-util-unix.c595 * @param statbuf the stat info to fill in
601 DBusStat *statbuf,
618 statbuf->mode = sb.st_mode;
619 statbuf->nlink = sb.st_nlink;
620 statbuf->uid = sb.st_uid;
621 statbuf->gid = sb.st_gid;
622 statbuf->size = sb.st_size;
623 statbuf->atime = sb.st_atime;
624 statbuf->mtime = sb.st_mtime;
625 statbuf
600 _dbus_stat(const DBusString *filename, DBusStat *statbuf, DBusError *error) argument
[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...]
/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/curl/lib/
H A Dfile.c425 struct_stat statbuf; /* struct_stat instead of struct stat just to allow the local
452 if(-1 != fstat(fd, &statbuf)) {
454 expected_size = statbuf.st_size;
456 data->info.filetime = (long)statbuf.st_mtime;
483 time_t filetime = (time_t)statbuf.st_mtime;
520 data->state.resume_from += (curl_off_t)statbuf.st_size;
/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.cpp631 struct stat statbuf; local
632 if (fstat(FD, &statbuf) != 0)
638 if (S_ISCHR(statbuf.st_mode) && isatty(FD))
641 return statbuf.st_blksize;

Completed in 886 milliseconds

12