Searched defs:stat_buf (Results 1 - 20 of 20) sorted by relevance

/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/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/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/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/libvpx/build/make/
H A Dobj_int_extract.c232 struct stat stat_buf; local
259 if (fstat(fd, &stat_buf))
265 file_buf = malloc(stat_buf.st_size);
273 if (read(fd, file_buf, stat_buf.st_size) != stat_buf.st_size)
285 res = parse_macho(file_buf, stat_buf.st_size);
748 struct stat stat_buf; local
780 if (fstat(fd, &stat_buf))
786 file_buf = malloc(stat_buf.st_size);
794 if (read(fd, file_buf, stat_buf
987 struct _stat stat_buf; local
[all...]
/external/icu4c/test/cintltst/
H A Dudatatst.c139 struct stat stat_buf; local
170 if (stat(icuDataFilePath, &stat_buf) == 0)
214 if (stat(icuDataFilePath, &stat_buf) == 0)
/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/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/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.c1016 struct vg_stat stat_buf; local
1023 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) {
1031 *size = stat_buf.size;
1123 struct vg_stat stat_buf;
1124 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) {
1129 *n_dimage = stat_buf.size;
H A Ddebuginfo.c1040 struct vg_stat stat_buf; local
1053 r = VG_(fstat)(fd_obj, &stat_buf);
1057 obj_mtime = stat_buf.mtime;
1157 sres = VG_(stat)(pdbname, &stat_buf);
1165 pdb_mtime = stat_buf.mtime;
1196 n_pdbimage = stat_buf.size;
H A Dreadpdb.c2500 struct vg_stat stat_buf; local
2501 VG_(memset)(&stat_buf, 0, sizeof(stat_buf));
2503 SysRes sr = VG_(stat)(tmpname, &stat_buf);
2509 Int szB = (Int)stat_buf.size;
/external/bluetooth/glib/glib/
H A Dgfileutils.c599 struct stat *stat_buf,
610 size = stat_buf->st_size;
681 struct stat stat_buf; local
704 if (fstat (fd, &stat_buf) < 0)
720 if (stat_buf.st_size > 0 && S_ISREG (stat_buf.st_mode))
723 &stat_buf,
598 get_contents_regfile(const gchar *display_filename, struct stat *stat_buf, gint fd, gchar **contents, gsize *length, GError **error) argument
H A Dgkeyfile.c378 struct stat stat_buf; local
381 if (fstat (fd, &stat_buf) < 0)
389 if (!S_ISREG (stat_buf.st_mode))
397 if (stat_buf.st_size == 0)
/external/dbus/bus/
H A Dactivation.c264 DBusStat stat_buf; local
292 if (!_dbus_stat (&file_path, &stat_buf, NULL))
447 entry->mtime = stat_buf.mtime;
473 DBusStat stat_buf; local
498 if (!_dbus_stat (&file_path, &stat_buf, NULL))
512 if (stat_buf.mtime > entry->mtime)
2321 DBusStat stat_buf; local
2323 if (!_dbus_stat (dir, &stat_buf, NULL))
/external/bluetooth/glib/gio/
H A Dglocalfileinfo.c1689 GLocalFileStat stat_buf; local
1699 if (FSTAT (fd, &stat_buf) == -1)
1717 set_info_from_stat (info, &stat_buf, matcher);
/external/libvpx/
H A Dvpxenc.c138 struct stat stat_buf; local
143 fstat(fd, &stat_buf);
144 stats->buf.sz = stat_buf.st_size;
/external/ppp/pppd/
H A Dsys-linux.c2814 struct stat stat_buf;
2817 || lstat(path, &stat_buf) < 0) {
2813 struct stat stat_buf; local

Completed in 457 milliseconds