Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 25 of 91) sorted by relevance

1234

/external/eigen/bench/spbench/
Dspbenchsolver.h214 …const Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX,std::ofstream& statbuf) in call_solver() argument
233 statbuf << " <TIME>\n"; in call_solver()
234 statbuf << " <COMPUTE> " << timer.value() << "</COMPUTE>\n"; in call_solver()
247 statbuf << " <SOLVE> " << timer.value() << "</SOLVE>\n"; in call_solver()
251 statbuf << " <TOTAL> " << total_time << "</TOTAL>\n"; in call_solver()
253 statbuf << " </TIME>\n"; in call_solver()
265 statbuf << " <ERROR> " << rel_error << "</ERROR>\n"; in call_solver()
281 std::ofstream statbuf(statFile.c_str(), std::ios::app); in call_directsolver()
282 statbuf << " <SOLVER_STAT ID='" << solver_id <<"'>\n"; in call_directsolver()
283 call_solver(solver, solver_id, A, b, refX,statbuf); in call_directsolver()
[all …]
Dspbenchsolver.cpp43 std::ofstream statbuf; in main() local
50 statbuf.open(statFile.c_str(), std::ios::out); in main()
51 if(statbuf.good()){ in main()
53 printStatheader(statbuf); in main()
54 statbuf.close(); in main()
78 statbuf.open(statFile.c_str(), std::ios::app); in main()
79 statbuf << "</BENCH> \n"; in main()
81 statbuf.close(); in main()
/external/lz4/tests/
DroundTripTest.c152 struct _stat64 statbuf; in getFileSize() local
153 r = _stat64(infilename, &statbuf); in getFileSize()
154 if (r || !(statbuf.st_mode & S_IFREG)) return 0; /* No good... */ in getFileSize()
156 struct stat statbuf; in getFileSize() local
157 r = stat(infilename, &statbuf); in getFileSize()
158 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */ in getFileSize()
160 return (size_t)statbuf.st_size; in getFileSize()
168 struct _stat64 statbuf; in isDirectory() local
169 r = _stat64(infilename, &statbuf); in isDirectory()
170 if (!r && (statbuf.st_mode & _S_IFDIR)) return 1; in isDirectory()
[all …]
/external/lz4/programs/
Dutil.h285 UTIL_STATIC int UTIL_setFileStat(const char *filename, stat_t *statbuf) in UTIL_setFileStat() argument
294 timebuf.modtime = statbuf->st_mtime; in UTIL_setFileStat()
298 res += chown(filename, statbuf->st_uid, statbuf->st_gid); /* Copy ownership */ in UTIL_setFileStat()
301 res += chmod(filename, statbuf->st_mode & 07777); /* Copy file permissions */ in UTIL_setFileStat()
308 UTIL_STATIC int UTIL_getFileStat(const char* infilename, stat_t *statbuf) in UTIL_getFileStat() argument
312 r = _stat64(infilename, statbuf); in UTIL_getFileStat()
313 if (r || !(statbuf->st_mode & S_IFREG)) return 0; /* No good... */ in UTIL_getFileStat()
315 r = stat(infilename, statbuf); in UTIL_getFileStat()
316 if (r || !S_ISREG(statbuf->st_mode)) return 0; /* No good... */ in UTIL_getFileStat()
324 stat_t statbuf; in UTIL_isRegFile() local
[all …]
/external/ltp/testcases/kernel/syscalls/fstatat/
Dfstatat01.c63 int fstatat(int dirfd, const char *filename, struct stat64 *statbuf, int flags) in fstatat() argument
65 return ltp_syscall(__NR_fstatat64, dirfd, filename, statbuf, flags); in fstatat()
68 int fstatat(int dirfd, const char *filename, struct stat *statbuf, int flags) in fstatat() argument
70 return ltp_syscall(__NR_newfstatat, dirfd, filename, statbuf, flags); in fstatat()
73 int fstatat(int dirfd, const char *filename, struct stat *statbuf, int flags) in fstatat() argument
75 return ltp_syscall(__NR_fstatat, dirfd, filename, statbuf, flags); in fstatat()
84 static struct stat64 statbuf; in main() local
86 static struct stat statbuf; in main() local
100 TEST(fstatat(fds[i], filenames[i], &statbuf, flags[i])); in main()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress10.c525 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) {
[all …]
Dmmapstress01.c461 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 …]
/external/ltp/testcases/kernel/syscalls/stat/
Dstat06.c140 struct stat statbuf; variable
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/device-drivers/nls/
DuserBlockNLS.c71 struct stat statbuf; in open_block_device() local
84 rc = stat(NLS_DEVICE_PATH, &statbuf); in open_block_device()
100 if (!(statbuf.st_mode & S_IFDIR)) { in open_block_device()
116 rc = stat(DEVICE_NAME, &statbuf); in open_block_device()
135 if ((!(statbuf.st_mode & S_IFBLK)) || in open_block_device()
136 (statbuf.st_rdev != devt)) { in open_block_device()
/external/ltp/testcases/kernel/device-drivers/include/
DuserBlockInclude.c73 struct stat statbuf; in open_block_device() local
86 rc = stat(INCLUDE_DEVICE_PATH, &statbuf); in open_block_device()
100 if (!(statbuf.st_mode & S_IFDIR)) { in open_block_device()
116 rc = stat(DEVICE_NAME, &statbuf); in open_block_device()
135 if ((!(statbuf.st_mode & S_IFBLK)) || in open_block_device()
136 (statbuf.st_rdev != devt)) { in open_block_device()
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite04.c71 struct stat statbuf; in main() local
169 if (fstat(fd, &statbuf) == -1) { in main()
173 if (statbuf.st_size != K4) { in main()
175 statbuf.st_size); in main()
194 if (fstat(fd, &statbuf) == -1) { in main()
198 if (statbuf.st_size != K5) { in main()
200 statbuf.st_size); in main()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat03.c38 struct stat statbuf; in verify_creat() local
47 SAFE_FSTAT(fd, &statbuf); in verify_creat()
49 tst_res(TINFO, "Created file has mode = 0%o", statbuf.st_mode); in verify_creat()
51 if ((statbuf.st_mode & S_ISVTX) != 0) in verify_creat()
/external/ltp/testcases/kernel/fs/proc/
Dproc01.c246 struct stat statbuf; /* used to hold stat information */ in readproc() local
253 if (lstat(obj, &statbuf) < 0) { in readproc()
265 if (S_ISLNK(statbuf.st_mode) && strcmp(obj, selfpath)) in readproc()
271 if (S_ISDIR(statbuf.st_mode) || !strcmp(obj, selfpath)) { in readproc()
336 if (!S_ISREG(statbuf.st_mode)) in readproc()
364 if ((statbuf.st_mode & S_IRUSR) == 0 && in readproc()
365 (statbuf.st_mode & S_IWUSR) != 0) { in readproc()
/external/e2fsprogs/tests/progs/
Dhold_inode.c24 struct stat statbuf; in main() local
32 if (stat(filename, &statbuf) < 0) { in main()
36 if (S_ISDIR(statbuf.st_mode)) { in main()
/external/ltp/testcases/kernel/syscalls/umask/
Dumask01.c34 struct stat statbuf; in verify_umask() local
56 SAFE_STAT("testfile", &statbuf); in verify_umask()
58 low9mode = statbuf.st_mode & 0777; in verify_umask()
/external/ppp/pppd/
Dtty.c299 struct stat statbuf; local
314 if (stat(cp, &statbuf) < 0) {
320 if (!S_ISCHR(statbuf.st_mode)) {
328 devstat = statbuf;
450 struct stat statbuf; in tty_check_options() local
493 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) in tty_check_options()
494 && statbuf.st_rdev == devstat.st_rdev) { in tty_check_options()
508 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0 in tty_check_options()
509 && S_ISCHR(statbuf.st_mode) && statbuf.st_rdev == devstat.st_rdev) in tty_check_options()
523 struct stat statbuf; in connect_tty() local
[all …]
/external/ltp/testcases/kernel/fs/mongo/
Dmongo_slinks.c25 struct stat statbuf; in main() local
52 if (lstat(new_path, &statbuf) == -1) { in main()
57 if (!(S_ISLNK(statbuf.st_mode))) { in main()
/external/libchrome/base/files/
Dmemory_mapped_file_posix.cc139 struct stat statbuf; in MapFileRegionToMemory() local
140 if (fstat(file_.GetPlatformFile(), &statbuf) == 0 && in MapFileRegionToMemory()
141 statbuf.st_blksize > 0) { in MapFileRegionToMemory()
142 block_size = statbuf.st_blksize; in MapFileRegionToMemory()
/external/ltp/testcases/kernel/containers/mqns/
Dmqns_03.c62 struct stat statbuf; in check_mqueue() local
89 rc = stat(FNAM1, &statbuf); in check_mqueue()
115 rc = stat(FNAM1, &statbuf); in check_mqueue()
121 rc = stat(FNAM2, &statbuf); in check_mqueue()
Dmqns_04.c100 struct stat statbuf; in main() local
146 rc = stat(FNAM1, &statbuf); in main()
166 rc = stat(FNAM1, &statbuf); in main()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h478 #define __sanitizer_syscall_pre_stat(filename, statbuf) \ argument
479 __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf))
480 #define __sanitizer_syscall_post_stat(res, filename, statbuf) \ argument
481 __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf))
500 #define __sanitizer_syscall_pre_lstat(filename, statbuf) \ argument
501 __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf))
502 #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \ argument
503 __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf))
504 #define __sanitizer_syscall_pre_fstat(fd, statbuf) \ argument
505 __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf))
[all …]
/external/vboot_reference/cgpt/
Dcgpt_find.c180 struct stat statbuf; in is_wholedev() local
188 if (0 != stat(pathname, &statbuf)) in is_wholedev()
191 if (!S_ISBLK(statbuf.st_mode)) in is_wholedev()
197 if (0 != lstat(tmpname, &statbuf)) in is_wholedev()
200 if (!S_ISLNK(statbuf.st_mode)) in is_wholedev()
/external/python/cpython3/Tools/scripts/
Dpathfix.py136 statbuf = os.stat(filename)
137 mtime = statbuf.st_mtime
138 atime = statbuf.st_atime
139 os.chmod(tempname, statbuf[ST_MODE] & 0o7777)
/external/curl/src/
Dtool_filetime.c73 struct_stat statbuf; in getfiletime() local
74 if(-1 != stat(filename, &statbuf)) { in getfiletime()
75 result = (curl_off_t)statbuf.st_mtime; in getfiletime()
/external/curl/lib/
Dfile.c375 struct_stat statbuf; /* struct_stat instead of struct stat just to allow the in file_do() local
400 if(-1 != fstat(fd, &statbuf)) { in file_do()
402 expected_size = statbuf.st_size; in file_do()
404 data->info.filetime = statbuf.st_mtime; in file_do()
432 filetime = (time_t)statbuf.st_mtime; in file_do()
469 data->state.resume_from += (curl_off_t)statbuf.st_size; in file_do()

1234