/external/ltp/testcases/commands/cron/ |
cron_dirs_check.c | 11 struct stat statbuf; local 15 if (stat(directory, &statbuf) == -1) { 21 if (statbuf.st_uid != 0) { 26 if ((statbuf.st_mode & S_IWGRP) || (statbuf.st_mode & S_IWOTH)) {
|
/external/eigen/bench/spbench/ |
spbenchsolver.cpp | 43 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();
|
spbenchsolver.h | 214 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) 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/ |
hold_inode.c | 24 struct stat statbuf; local 32 if (stat(filename, &statbuf) < 0) { 36 if (S_ISDIR(statbuf.st_mode)) {
|
/external/ltp/testcases/kernel/syscalls/creat/ |
creat03.c | 38 struct stat statbuf; local 47 SAFE_FSTAT(fd, &statbuf); 49 tst_res(TINFO, "Created file has mode = 0%o", statbuf.st_mode); 51 if ((statbuf.st_mode & S_ISVTX) != 0)
|
/external/ltp/testcases/kernel/syscalls/fstatat/ |
fstatat01.c | 63 int fstatat(int dirfd, const char *filename, struct stat64 *statbuf, int flags) 65 return ltp_syscall(__NR_fstatat64, dirfd, filename, statbuf, flags); 68 int fstatat(int dirfd, const char *filename, struct stat *statbuf, int flags) 70 return ltp_syscall(__NR_newfstatat, dirfd, filename, statbuf, flags); 73 int fstatat(int dirfd, const char *filename, struct stat *statbuf, int flags) 75 return ltp_syscall(__NR_fstatat, dirfd, filename, statbuf, flags); 84 static struct stat64 statbuf; local 86 static struct stat statbuf; local 100 TEST(fstatat(fds[i], filenames[i], &statbuf, flags[i]));
|
/external/ltp/testcases/kernel/syscalls/umask/ |
umask01.c | 34 struct stat statbuf; local 56 SAFE_STAT("testfile", &statbuf); 58 low9mode = statbuf.st_mode & 0777;
|
/external/ltp/testcases/kernel/device-drivers/include/ |
userBlockInclude.c | 73 struct stat statbuf; local 86 rc = stat(INCLUDE_DEVICE_PATH, &statbuf); 100 if (!(statbuf.st_mode & S_IFDIR)) { 116 rc = stat(DEVICE_NAME, &statbuf); 135 if ((!(statbuf.st_mode & S_IFBLK)) || 136 (statbuf.st_rdev != devt)) {
|
/external/ltp/testcases/kernel/device-drivers/nls/ |
userBlockNLS.c | 71 struct stat statbuf; local 84 rc = stat(NLS_DEVICE_PATH, &statbuf); 100 if (!(statbuf.st_mode & S_IFDIR)) { 116 rc = stat(DEVICE_NAME, &statbuf); 135 if ((!(statbuf.st_mode & S_IFBLK)) || 136 (statbuf.st_rdev != devt)) {
|
/external/lz4/programs/ |
util.h | 175 UTIL_STATIC int UTIL_setFileStat(const char *filename, stat_t *statbuf) 181 timebuf.modtime = statbuf->st_mtime; 185 res += chown(filename, statbuf->st_uid, statbuf->st_gid); /* Copy ownership */ 188 res += chmod(filename, statbuf->st_mode & 07777); /* Copy file permissions */ 195 UTIL_STATIC int UTIL_getFileStat(const char* infilename, stat_t *statbuf) 199 r = _stat64(infilename, statbuf); 200 if (r || !(statbuf->st_mode & S_IFREG)) return 0; /* No good... */ 202 r = stat(infilename, statbuf); 203 if (r || !S_ISREG(statbuf->st_mode)) return 0; /* No good... * 213 struct _stat64 statbuf; local 239 struct _stat64 statbuf; local 255 struct _stat64 statbuf; local [all...] |
/toolchain/binutils/binutils-2.27/binutils/ |
rename.c | 88 STATBUF. */ 91 set_times (const char *destination, const struct stat *statbuf) 99 tb.actime = statbuf->st_atime; 100 tb.modtime = statbuf->st_mtime; 106 tb[0] = statbuf->st_atime; 107 tb[1] = statbuf->st_mtime; 112 tv[0].tv_sec = statbuf->st_atime; 114 tv[1].tv_sec = statbuf->st_mtime;
|
/external/ltp/testcases/kernel/syscalls/stat/ |
stat06.c | 140 struct stat statbuf; variable in typeref:struct:stat 152 "nonexistfile", &statbuf, "non-existent file", ENOENT, no_setup}, { 153 "", &statbuf, "path is empty string", ENOENT, no_setup}, { 154 "nefile/file", &statbuf, "path contains a non-existent file", 156 "file/file", &statbuf, "path contains a regular file", 158 Longpathname, &statbuf, "pathname too long", ENAMETOOLONG, 162 High_address, &statbuf, "address beyond address space", EFAULT, 164 (char *)-1, &statbuf, "negative address", EFAULT, no_setup},
|
/external/ltp/testcases/kernel/fs/mongo/ |
mongo_slinks.c | 25 struct stat statbuf; local 52 if (lstat(new_path, &statbuf) == -1) { 57 if (!(S_ISLNK(statbuf.st_mode))) {
|
/system/extras/tests/storage/ |
opentest.c | 32 struct stat statbuf; local 49 if (stat(dir, &statbuf)) { 54 if (! S_ISDIR(statbuf.st_mode)) {
|
wipe_blkdev.c | 86 struct stat statbuf; local 110 if (fstat(fd, &statbuf) < 0) { 115 if (!S_ISBLK(statbuf.st_mode)) {
|
/toolchain/binutils/binutils-2.27/bfd/ |
aix5ppc-core.c | 57 struct stat statbuf; local 74 if (bfd_stat (abfd, &statbuf) < 0) 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) 99 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) 100 || ((CHECK_FILE_OFFSET (statbuf, core.c_data)) [all...] |
/external/ltp/testcases/kernel/syscalls/pwrite/ |
pwrite04.c | 71 struct stat statbuf; local 169 if (fstat(fd, &statbuf) == -1) { 173 if (statbuf.st_size != K4) { 175 statbuf.st_size); 194 if (fstat(fd, &statbuf) == -1) { 198 if (statbuf.st_size != K5) { 200 statbuf.st_size);
|
/frameworks/minikin/app/ |
HyphTool.cpp | 15 struct stat statbuf; local 16 int status = stat(fn, &statbuf); 21 size_t size = statbuf.st_size;
|
/external/ltp/testcases/kernel/containers/mqns/ |
mqns_03.c | 62 struct stat statbuf; local 89 rc = stat(FNAM1, &statbuf); 115 rc = stat(FNAM1, &statbuf); 121 rc = stat(FNAM2, &statbuf);
|
mqns_04.c | 100 struct stat statbuf; local 146 rc = stat(FNAM1, &statbuf); 166 rc = stat(FNAM1, &statbuf);
|
/frameworks/av/media/libmedia/ |
MediaScanner.cpp | 175 struct stat statbuf; local 195 if (stat(path, &statbuf) == 0) { 196 if (S_ISREG(statbuf.st_mode)) { 198 } else if (S_ISDIR(statbuf.st_mode)) { 213 if (stat(path, &statbuf) == 0) { 214 status_t status = client.scanFile(path, statbuf.st_mtime, 0, 229 stat(path, &statbuf); 230 status_t status = client.scanFile(path, statbuf.st_mtime, statbuf.st_size,
|
/system/extras/boot_control_copy/ |
boot_control_copy.cpp | 46 struct stat statbuf; local 51 if (fstat(fd, &statbuf) != 0) { 58 *out_device = statbuf.st_rdev; 64 struct stat statbuf; local 67 if (stat("/system", &statbuf) != 0) { 77 if (statbuf.st_dev == system_a_dev) { 79 } else if (statbuf.st_dev == system_b_dev) { 84 major(statbuf.st_dev), minor(statbuf.st_dev),
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
mmapstress01.c | 461 struct stat64 statbuf; local 465 struct stat statbuf; 484 if (stat64(file, &statbuf) == -1) { 486 if (stat(file, &statbuf) == -1) { 491 filesize = statbuf.st_size; 502 if (statbuf.st_size - sparseoffset > SIZE_MAX) { 506 mapsize = (size_t) (statbuf.st_size - sparseoffset); 599 struct stat64 statbuf; local 601 struct stat statbuf; 624 if (fstat64(fd, &statbuf) == -1) [all...] |
mmapstress10.c | 525 struct stat64 statbuf; local 529 struct stat statbuf; 569 if (fstat64(fd_mapper, &statbuf) == -1) { 571 if (fstat(fd_mapper, &statbuf) == -1) { 576 filesize = statbuf.st_size; 578 if (statbuf.st_size - sparseoffset > SIZE_MAX) { 582 mapsize_mapper = (size_t) (statbuf.st_size - sparseoffset); 704 struct stat64 statbuf; local 707 struct stat statbuf; local 733 if (fstat64(fd_writer, &statbuf) == -1) 788 struct stat64 statbuf; local [all...] |
/external/ltp/testcases/kernel/fs/proc/ |
proc01.c | 246 struct stat statbuf; /* used to hold stat information */ local 253 if (lstat(obj, &statbuf) < 0) { 265 if (S_ISLNK(statbuf.st_mode) && strcmp(obj, selfpath)) 271 if (S_ISDIR(statbuf.st_mode) || !strcmp(obj, selfpath)) { 336 if (!S_ISREG(statbuf.st_mode)) 364 if ((statbuf.st_mode & S_IRUSR) == 0 && 365 (statbuf.st_mode & S_IWUSR) != 0) {
|