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

/external/chromium_org/base/test/
H A Dtest_file_util_posix.cc28 struct stat stat_buf; local
29 if (stat(path.value().c_str(), &stat_buf) != 0)
31 stat_buf.st_mode &= ~permission;
33 int rv = HANDLE_EINTR(chmod(path.value().c_str(), stat_buf.st_mode));
44 struct stat stat_buf; local
45 if (stat(path.value().c_str(), &stat_buf) != 0)
50 *mode = stat_buf.st_mode & ~S_IFMT; // Filter out file/path kind.
/external/valgrind/main/coregrind/
H A Dm_commandline.c60 struct vg_stat stat_buf; local
68 Int res = VG_(fstat)( sr_Res(fd), &stat_buf );
70 if (!res && stat_buf.uid == VG_(geteuid)()
71 && (!(stat_buf.mode & VKI_S_IWOTH))) {
72 if ( stat_buf.size > 0 ) {
73 f_clo = VG_(malloc)("commandline.rdv.1", stat_buf.size+1);
75 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size);
77 vg_assert(n >= 0 && n <= stat_buf.size+1);
H A Dfixup_macho_loadcmds.c217 struct stat stat_buf; local
219 r = stat(filename, &stat_buf);
222 size = stat_buf.st_size;
/external/chromium_org/ppapi/native_client/src/trusted/plugin/
H A Dfile_utils.cc27 struct stat stat_buf; local
28 if (fstat(fd, &stat_buf) != 0) {
35 size_t bytes_to_read = static_cast<size_t>(stat_buf.st_size);
H A Dplugin.cc879 struct stat stat_buf; local
880 if (0 != fstat(file_desc_ok_to_close, &stat_buf)) {
886 size_t nexe_bytes_read = static_cast<size_t>(stat_buf.st_size);
/external/oprofile/libdb/
H A Ddb_manage.c178 struct stat stat_buf; local
209 if (fstat(data->fd, &stat_buf)) {
214 if (stat_buf.st_size == 0) {
231 nr_node = (stat_buf.st_size - data->offset_node) /
245 if (stat_buf.st_size == 0) {
/external/chromium/chrome/browser/chromeos/
H A Dexternal_metrics.cc111 struct stat stat_buf; local
116 result = stat(event_file_path, &stat_buf);
124 if (stat_buf.st_size == 0) {
/external/chromium_org/chrome/browser/chromeos/
H A Dexternal_metrics.cc286 struct stat stat_buf; local
291 result = stat(event_file_path, &stat_buf);
299 if (stat_buf.st_size == 0) {
/external/chromium/base/
H A Dfile_util.h575 struct stat stat_buf; local
576 if (stat(path.value().c_str(), &stat_buf) != 0)
578 stat_buf.st_mode &= ~(S_IRUSR | S_IRGRP | S_IROTH);
580 return chmod(path.value().c_str(), stat_buf.st_mode) == 0;
/external/chromium/base/files/
H A Dfile_path_watcher_browsertest.cc499 struct stat stat_buf; local
501 if (stat(path.value().c_str(), &stat_buf) != 0)
520 stat_buf.st_mode |= mode;
522 stat_buf.st_mode &= ~mode;
524 return chmod(path.value().c_str(), stat_buf.st_mode) == 0;
/external/chromium_org/content/common/
H A Dplugin_list_posix.cc170 struct stat stat_buf; local
175 bool ret = (fstat(fd, &stat_buf) >= 0 && S_ISREG(stat_buf.st_mode));
/external/chromium_org/base/files/
H A Dfile_path_watcher_browsertest.cc786 struct stat stat_buf; local
788 if (stat(path.value().c_str(), &stat_buf) != 0)
807 stat_buf.st_mode |= mode;
809 stat_buf.st_mode &= ~mode;
811 return chmod(path.value().c_str(), stat_buf.st_mode) == 0;
/external/chromium_org/v8/src/
H A Dd8-posix.cc570 struct stat stat_buf; local
571 int stat_result = stat(directory, &stat_buf);
576 if ((stat_buf.st_mode & S_IFDIR) != 0) return true;
/external/v8/src/
H A Dd8-posix.cc559 struct stat stat_buf; local
560 int stat_result = stat(directory, &stat_buf);
565 if ((stat_buf.st_mode & S_IFDIR) != 0) return true;
/external/qemu/block/
H A Draw-posix.c970 struct stat stat_buf; local
985 if (fstat(fd, &stat_buf) < 0)
987 else if (!S_ISBLK(stat_buf.st_mode) && !S_ISCHR(stat_buf.st_mode))
/external/chromium_org/base/
H A Dfile_util_posix.cc402 stat_wrapper_t stat_buf; local
403 if (CallStat(path.value().c_str(), &stat_buf) != 0)
407 mode_t updated_mode_bits = stat_buf.st_mode & ~FILE_PERMISSION_MASK;
H A Dfile_util_unittest.cc2039 struct stat stat_buf; variable in typeref:struct:__anon3722::VerifyPathControlledByUserTest::stat
2040 ASSERT_EQ(0, stat(base_dir_.value().c_str(), &stat_buf));
2041 uid_ = stat_buf.st_uid;
2042 ok_gids_.insert(stat_buf.st_gid);
2043 bad_gids_.insert(stat_buf.st_gid + 1);
/external/valgrind/main/coregrind/m_debuginfo/
H A Dreadmacho.c166 struct vg_stat stat_buf; local
168 fd = VG_(stat)(filename, &stat_buf);
173 size = stat_buf.size;
H A Dreadelf.c1065 struct vg_stat stat_buf; local
1072 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) {
1080 *size = stat_buf.size;
1172 struct vg_stat stat_buf;
1173 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) {
1178 *n_dimage = stat_buf.size;
H A Dreadpdb.c2453 struct vg_stat stat_buf; local
2454 VG_(memset)(&stat_buf, 0, sizeof(stat_buf));
2456 SysRes sr = VG_(stat)(tmpname, &stat_buf);
2462 Int szB = (Int)stat_buf.size;
H A Ddebuginfo.c1044 struct vg_stat stat_buf; local
1057 r = VG_(fstat)(fd_obj, &stat_buf);
1061 obj_mtime = stat_buf.mtime;
1161 sres = VG_(stat)(pdbname, &stat_buf);
1169 pdb_mtime = stat_buf.mtime;
1200 n_pdbimage = stat_buf.size;
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dudatatst.c141 struct stat stat_buf; local
172 if (stat(icuDataFilePath, &stat_buf) == 0)
216 if (stat(icuDataFilePath, &stat_buf) == 0)
/external/icu4c/test/cintltst/
H A Dudatatst.c142 struct stat stat_buf; local
173 if (stat(icuDataFilePath, &stat_buf) == 0)
217 if (stat(icuDataFilePath, &stat_buf) == 0)
/external/ppp/pppd/
H A Dsys-linux.c2814 struct stat stat_buf;
2817 || lstat(path, &stat_buf) < 0) {
2813 struct stat stat_buf; local
/external/libvpx/libvpx/
H A Dvpxenc.c200 struct stat stat_buf; local
205 fstat(fd, &stat_buf);
206 stats->buf.sz = stat_buf.st_size;

Completed in 470 milliseconds