Home
last modified time | relevance | path

Searched refs:stat_buf (Results 1 – 20 of 20) sorted by relevance

/external/valgrind/main/coregrind/
Dm_commandline.c60 struct vg_stat stat_buf; in read_dot_valgrindrc() local
68 Int res = VG_(fstat)( sr_Res(fd), &stat_buf ); in read_dot_valgrindrc()
70 if (!res && stat_buf.uid == VG_(geteuid)() in read_dot_valgrindrc()
71 && (!(stat_buf.mode & VKI_S_IWOTH))) { in read_dot_valgrindrc()
72 if ( stat_buf.size > 0 ) { in read_dot_valgrindrc()
73 f_clo = VG_(malloc)("commandline.rdv.1", stat_buf.size+1); in read_dot_valgrindrc()
75 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size); in read_dot_valgrindrc()
77 vg_assert(n >= 0 && n <= stat_buf.size+1); in read_dot_valgrindrc()
Dfixup_macho_loadcmds.c217 struct stat stat_buf; in map_image_aboard() local
219 r = stat(filename, &stat_buf); in map_image_aboard()
222 size = stat_buf.st_size; in map_image_aboard()
/external/libvpx/build/make/
Dobj_int_extract.c232 struct stat stat_buf; in main() local
259 if (fstat(fd, &stat_buf)) in main()
265 file_buf = malloc(stat_buf.st_size); in main()
273 if (read(fd, file_buf, stat_buf.st_size) != stat_buf.st_size) in main()
285 res = parse_macho(file_buf, stat_buf.st_size); in main()
748 struct stat stat_buf; in main() local
780 if (fstat(fd, &stat_buf)) in main()
786 file_buf = malloc(stat_buf.st_size); in main()
794 if (read(fd, file_buf, stat_buf.st_size) != stat_buf.st_size) in main()
806 res = parse_elf(file_buf, stat_buf.st_size, mode); in main()
[all …]
/external/oprofile/libdb/
Ddb_manage.c178 struct stat stat_buf; in odb_open() local
209 if (fstat(data->fd, &stat_buf)) { in odb_open()
214 if (stat_buf.st_size == 0) { in odb_open()
231 nr_node = (stat_buf.st_size - data->offset_node) / in odb_open()
245 if (stat_buf.st_size == 0) { in odb_open()
/external/chromium/chrome/browser/chromeos/
Dexternal_metrics.cc111 struct stat stat_buf; in CollectEvents() local
116 result = stat(event_file_path, &stat_buf); in CollectEvents()
124 if (stat_buf.st_size == 0) { in CollectEvents()
/external/chromium/base/
Dfile_util.h575 struct stat stat_buf; in MakeFileUnreadable() local
576 if (stat(path.value().c_str(), &stat_buf) != 0) in MakeFileUnreadable()
578 stat_buf.st_mode &= ~(S_IRUSR | S_IRGRP | S_IROTH); in MakeFileUnreadable()
580 return chmod(path.value().c_str(), stat_buf.st_mode) == 0; in MakeFileUnreadable()
/external/chromium/base/files/
Dfile_path_watcher_browsertest.cc499 struct stat stat_buf; in ChangeFilePermissions() local
501 if (stat(path.value().c_str(), &stat_buf) != 0) in ChangeFilePermissions()
520 stat_buf.st_mode |= mode; in ChangeFilePermissions()
522 stat_buf.st_mode &= ~mode; in ChangeFilePermissions()
524 return chmod(path.value().c_str(), stat_buf.st_mode) == 0; in ChangeFilePermissions()
/external/bluetooth/glib/glib/
Dgfileutils.c599 struct stat *stat_buf, in get_contents_regfile() argument
610 size = stat_buf->st_size; in get_contents_regfile()
681 struct stat stat_buf; in get_contents_posix() local
704 if (fstat (fd, &stat_buf) < 0) in get_contents_posix()
720 if (stat_buf.st_size > 0 && S_ISREG (stat_buf.st_mode)) in get_contents_posix()
723 &stat_buf, in get_contents_posix()
Dgkeyfile.c378 struct stat stat_buf; in g_key_file_load_from_fd() local
381 if (fstat (fd, &stat_buf) < 0) in g_key_file_load_from_fd()
389 if (!S_ISREG (stat_buf.st_mode)) in g_key_file_load_from_fd()
397 if (stat_buf.st_size == 0) in g_key_file_load_from_fd()
/external/dbus/bus/
Dactivation.c264 DBusStat stat_buf; in update_desktop_file_entry() local
292 if (!_dbus_stat (&file_path, &stat_buf, NULL)) in update_desktop_file_entry()
447 entry->mtime = stat_buf.mtime; in update_desktop_file_entry()
473 DBusStat stat_buf; in check_service_file() local
498 if (!_dbus_stat (&file_path, &stat_buf, NULL)) in check_service_file()
512 if (stat_buf.mtime > entry->mtime) in check_service_file()
2321 DBusStat stat_buf; in init_service_reload_test() local
2323 if (!_dbus_stat (dir, &stat_buf, NULL)) in init_service_reload_test()
/external/v8/src/
Dd8-posix.cc559 struct stat stat_buf; in CheckItsADirectory() local
560 int stat_result = stat(directory, &stat_buf); in CheckItsADirectory()
565 if ((stat_buf.st_mode & S_IFDIR) != 0) return true; in CheckItsADirectory()
/external/qemu/block/
Draw-posix.c970 struct stat stat_buf; in hdev_create() local
985 if (fstat(fd, &stat_buf) < 0) in hdev_create()
987 else if (!S_ISBLK(stat_buf.st_mode) && !S_ISCHR(stat_buf.st_mode)) in hdev_create()
/external/valgrind/main/coregrind/m_debuginfo/
Dreadmacho.c166 struct vg_stat stat_buf; in map_image_aboard() local
168 fd = VG_(stat)(filename, &stat_buf); in map_image_aboard()
173 size = stat_buf.size; in map_image_aboard()
Dreadpdb.c2500 struct vg_stat stat_buf; in ML_() local
2501 VG_(memset)(&stat_buf, 0, sizeof(stat_buf)); in ML_()
2503 SysRes sr = VG_(stat)(tmpname, &stat_buf); in ML_()
2509 Int szB = (Int)stat_buf.size; in ML_()
Dreadelf.c1016 struct vg_stat stat_buf; in open_debug_file() local
1023 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) { in open_debug_file()
1031 *size = stat_buf.size; in open_debug_file()
1123 struct vg_stat stat_buf; in find_ad_hoc_debug_image() local
1124 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) { in find_ad_hoc_debug_image()
1129 *n_dimage = stat_buf.size; in find_ad_hoc_debug_image()
Ddebuginfo.c1040 struct vg_stat stat_buf; in VG_() local
1053 r = VG_(fstat)(fd_obj, &stat_buf); in VG_()
1057 obj_mtime = stat_buf.mtime; in VG_()
1157 sres = VG_(stat)(pdbname, &stat_buf); in VG_()
1165 pdb_mtime = stat_buf.mtime; in VG_()
1196 n_pdbimage = stat_buf.size; in VG_()
/external/icu4c/test/cintltst/
Dudatatst.c139 struct stat stat_buf; in TestUDataOpen() local
170 if (stat(icuDataFilePath, &stat_buf) == 0) in TestUDataOpen()
214 if (stat(icuDataFilePath, &stat_buf) == 0) in TestUDataOpen()
/external/libvpx/
Dvpxenc.c138 struct stat stat_buf; in stats_open_file() local
143 fstat(fd, &stat_buf); in stats_open_file()
144 stats->buf.sz = stat_buf.st_size; in stats_open_file()
/external/bluetooth/glib/gio/
Dglocalfileinfo.c1689 GLocalFileStat stat_buf; in _g_local_file_info_get_from_fd() local
1699 if (FSTAT (fd, &stat_buf) == -1) in _g_local_file_info_get_from_fd()
1717 set_info_from_stat (info, &stat_buf, matcher); in _g_local_file_info_get_from_fd()
/external/ppp/pppd/
Dsys-linux.c2813 struct stat stat_buf; in sys_check_options() local
2816 || lstat(path, &stat_buf) < 0) { in sys_check_options()