Home
last modified time | relevance | path

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

12

/external/libchrome/base/test/
Dtest_file_util_posix.cc28 struct stat stat_buf; in DenyFilePermission() local
29 if (stat(path.value().c_str(), &stat_buf) != 0) in DenyFilePermission()
31 stat_buf.st_mode &= ~permission; in DenyFilePermission()
33 int rv = HANDLE_EINTR(chmod(path.value().c_str(), stat_buf.st_mode)); in DenyFilePermission()
44 struct stat stat_buf; in GetPermissionInfo() local
45 if (stat(path.value().c_str(), &stat_buf) != 0) in GetPermissionInfo()
50 *mode = stat_buf.st_mode & ~S_IFMT; // Filter out file/path kind. in GetPermissionInfo()
/external/valgrind/coregrind/
Dm_commandline.c60 struct vg_stat stat_buf; in read_dot_valgrindrc() local
71 Int res = VG_(fstat)( sr_Res(fd), &stat_buf ); in read_dot_valgrindrc()
73 if (!res && stat_buf.uid == VG_(geteuid)() in read_dot_valgrindrc()
74 && (!(stat_buf.mode & VKI_S_IWOTH))) { in read_dot_valgrindrc()
75 if ( stat_buf.size > 0 ) { in read_dot_valgrindrc()
76 f_clo = VG_(malloc)("commandline.rdv.1", stat_buf.size+1); in read_dot_valgrindrc()
77 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size); in read_dot_valgrindrc()
79 vg_assert(n >= 0 && n <= stat_buf.size+1); in read_dot_valgrindrc()
Dfixup_macho_loadcmds.c243 struct stat stat_buf; in map_image_aboard() local
245 r = stat(filename, &stat_buf); in map_image_aboard()
248 size = stat_buf.st_size; in map_image_aboard()
/external/f2fs-tools/mkfs/
Df2fs_format_utils.c33 struct stat stat_buf; in f2fs_trim_device() local
41 if (fstat(config.fd, &stat_buf) < 0 ) { in f2fs_trim_device()
48 if (S_ISREG(stat_buf.st_mode)) { in f2fs_trim_device()
56 } else if (S_ISBLK(stat_buf.st_mode)) { in f2fs_trim_device()
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/builds/unix/
Dftsystem.c234 struct stat stat_buf; in FT_Stream_Open() local
262 if ( fstat( file, &stat_buf ) < 0 ) in FT_Stream_Open()
278 if ( stat_buf.st_size > LONG_MAX ) in FT_Stream_Open()
283 else if ( stat_buf.st_size == 0 ) in FT_Stream_Open()
290 stream->size = (unsigned long)stat_buf.st_size; in FT_Stream_Open()
/external/autotest/client/cros/
Dpkcs11.py91 stat_buf = os.lstat(path)
92 if not stat_buf:
97 path_user = pwd.getpwuid(stat_buf.st_uid).pw_name
98 path_group = grp.getgrgid(stat_buf.st_gid).gr_name
106 path_perms = stat.S_IMODE(stat_buf.st_mode)
/external/libvncserver/libvncserver/tightvnc-filetransfer/
Dfiletransfermsg.c275 struct stat stat_buf; in CreateFileListInfo() local
288 if(stat(fullpath, &stat_buf) < 0) { in CreateFileListInfo()
294 if(S_ISDIR(stat_buf.st_mode)) { in CreateFileListInfo()
304 stat_buf.st_size, in CreateFileListInfo()
305 stat_buf.st_mtime) == 0) { in CreateFileListInfo()
484 struct stat stat_buf; in ChkFileDownloadErr() local
491 (stat(path, &stat_buf) < 0) || (!(S_ISREG(stat_buf.st_mode))) ) { in ChkFileDownloadErr()
502 rtcp->rcft.rcfd.mTime = stat_buf.st_mtime; in ChkFileDownloadErr()
503 sz_rfbFileSize = stat_buf.st_size; in ChkFileDownloadErr()
505 fileDownloadMsg = CreateFileDownloadZeroSizeDataMsg(stat_buf.st_mtime); in ChkFileDownloadErr()
Dhandlefiletransferrequest.c105 struct stat stat_buf; in SetFtpRoot() local
116 if(stat(path, &stat_buf) < 0) { in SetFtpRoot()
122 if(S_ISDIR(stat_buf.st_mode) == 0) { in SetFtpRoot()
/external/v8/src/base/
Dsys-info.cc83 struct stat stat_buf; in AmountOfPhysicalMemory()
84 if (stat("/proc", &stat_buf) != 0) { in AmountOfPhysicalMemory()
87 return static_cast<int64_t>(stat_buf.st_size); in AmountOfPhysicalMemory()
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/builds/vms/
Dftsystem.c211 struct stat stat_buf; in FT_Stream_Open() local
226 if ( fstat( file, &stat_buf ) < 0 ) in FT_Stream_Open()
233 stream->size = stat_buf.st_size; in FT_Stream_Open()
/external/vboot_reference/futility/
Ddump_kernel_config_lib.c148 struct stat stat_buf; in FindKernelConfig() local
149 if (fstat(fd, &stat_buf)) { in FindKernelConfig()
154 int is_mtd = (major(stat_buf.st_rdev) == MTD_CHAR_MAJOR); in FindKernelConfig()
/external/libvpx/libvpx/
Dvpxstats.c30 struct stat stat_buf; in stats_open_file() local
35 fstat(fd, &stat_buf); in stats_open_file()
36 stats->buf.sz = stat_buf.st_size; in stats_open_file()
/external/f2fs-tools/lib/
Dlibf2fs.c439 struct stat stat_buf; in f2fs_get_device_info() local
454 if (fstat(fd, &stat_buf) < 0 ) { in f2fs_get_device_info()
459 if (S_ISREG(stat_buf.st_mode)) { in f2fs_get_device_info()
460 c->total_sectors = stat_buf.st_size / c->sector_size; in f2fs_get_device_info()
461 } else if (S_ISBLK(stat_buf.st_mode)) { in f2fs_get_device_info()
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dbaseline_policy_unittest.cc53 struct stat stat_buf; in TestPipeOrSocketPair() local
54 int sys_ret = fstat(read_end.get(), &stat_buf); in TestPipeOrSocketPair()
56 BPF_ASSERT(S_ISFIFO(stat_buf.st_mode) || S_ISSOCK(stat_buf.st_mode)); in TestPipeOrSocketPair()
/external/opencv3/modules/core/src/
Dglob.cpp164 struct stat stat_buf; in isDir()
165 if (0 != stat( path.c_str(), &stat_buf)) in isDir()
167 int is_dir = S_ISDIR( stat_buf.st_mode); in isDir()
/external/autotest/client/tests/disktest/src/
Ddisktest.c299 struct stat stat_buf; in main() local
306 if (fstat(fd, &stat_buf) != 0) in main()
308 megabytes = stat_buf.st_size / (1024 * 1024); in main()
/external/valgrind/coregrind/m_gdbserver/
Dtarget.c589 struct vg_stat stat_buf; in getplatformoffset() local
599 ret = VG_(fstat)( fd, &stat_buf ); in getplatformoffset()
609 os = malloc (stat_buf.size+1); in getplatformoffset()
611 ret = VG_(read)(fd, os, stat_buf.size); in getplatformoffset()
612 vg_assert(ret == stat_buf.size); in getplatformoffset()
/external/icu/icu4c/source/tools/toolutil/
Dtoolutil.cpp211 struct stat stat_buf; in uprv_fileExists() local
212 if (stat(file, &stat_buf) == 0) { in uprv_fileExists()
/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc839 struct stat stat_buf; in ChangeFilePermissions() local
841 if (stat(path.value().c_str(), &stat_buf) != 0) in ChangeFilePermissions()
860 stat_buf.st_mode |= mode; in ChangeFilePermissions()
862 stat_buf.st_mode &= ~mode; in ChangeFilePermissions()
864 return chmod(path.value().c_str(), stat_buf.st_mode) == 0; in ChangeFilePermissions()
Dfile_util_posix.cc445 stat_wrapper_t stat_buf; in SetPosixFilePermissions() local
446 if (CallStat(path.value().c_str(), &stat_buf) != 0) in SetPosixFilePermissions()
450 mode_t updated_mode_bits = stat_buf.st_mode & ~FILE_PERMISSION_MASK; in SetPosixFilePermissions()
/external/dbus/bus/
Dactivation.c253 DBusStat stat_buf; in update_desktop_file_entry() local
283 if (!_dbus_stat (&file_path, &stat_buf, NULL)) in update_desktop_file_entry()
457 entry->mtime = stat_buf.mtime; in update_desktop_file_entry()
480 DBusStat stat_buf; in check_service_file() local
505 if (!_dbus_stat (&file_path, &stat_buf, NULL)) in check_service_file()
519 if (stat_buf.mtime > entry->mtime) in check_service_file()
2358 DBusStat stat_buf; in init_service_reload_test() local
2360 if (!_dbus_stat (dir, &stat_buf, NULL)) in init_service_reload_test()
/external/curl/lib/
Dformdata.c752 const struct_stat * stat_buf) in VmsRealFileSize() argument
782 const struct_stat * stat_buf) in VmsSpecialSize() argument
784 switch(stat_buf->st_fab_rfm) { in VmsSpecialSize()
787 return VmsRealFileSize(name, stat_buf); in VmsSpecialSize()
790 return stat_buf->st_size; in VmsSpecialSize()
/external/valgrind/auxprogs/
Dvalgrind-di-server.c775 struct stat stat_buf; in handle_transaction() local
776 int r = fstat(fd, &stat_buf); in handle_transaction()
781 if (ok && stat_buf.st_size == 0) { in handle_transaction()
787 conn_state[conn_no].file_size = stat_buf.st_size; in handle_transaction()
/external/curl/src/
Dtool_operate.c147 const struct_stat * stat_buf) in vms_realfilesize() argument
177 const struct_stat * stat_buf) in VmsSpecialSize() argument
179 switch(stat_buf->st_fab_rfm) { in VmsSpecialSize()
182 return vms_realfilesize(name, stat_buf); in VmsSpecialSize()
185 return stat_buf->st_size; in VmsSpecialSize()
/external/v8/src/
Dd8-posix.cc611 struct stat stat_buf; in CheckItsADirectory() local
612 int stat_result = stat(directory, &stat_buf); in CheckItsADirectory()
619 if ((stat_buf.st_mode & S_IFDIR) != 0) return true; in CheckItsADirectory()

12