Searched defs:stat (Results 1 - 7 of 7) sorted by relevance

/system/core/adb/
H A Dfile_sync_service.h60 } stat; member in union:__anon7
/system/core/libdiskconfig/
H A Ddiskconfig.c27 #include <sys/stat.h>
241 struct stat stat; local
246 if (fstat(fd, &stat)) {
247 ALOGE("Cannot stat, errno=%d.", errno);
251 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) {
278 struct stat stat; local
288 if (fstat(fd, &stat)) {
289 ALOGE("Cannot stat fil
[all...]
/system/core/libutils/
H A DTokenizer.cpp24 #include <sys/stat.h>
63 struct stat stat; local
64 if (fstat(fd, &stat)) {
68 size_t length = size_t(stat.st_size);
81 // The length we obtained from stat is wrong too (it will always be 4096)
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp203 int stat; local
204 rv = wait(&stat);
/system/extras/tests/directiotest/
H A Ddirectiotest.c37 #include <sys/stat.h>
174 struct stat stat; local
192 if (fstat(fd, &stat) == -1) {
193 perror("stat");
195 } else if (!S_ISBLK(stat.st_mode)) {
/system/extras/ext4_utils/
H A Dmake_ext4fs.c34 #include <sys/stat.h>
117 struct stat stat; local
156 ret = lstat(dentries[i].full_path, &stat);
164 dentries[i].size = stat.st_size;
165 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
166 dentries[i].mtime = stat.st_mtime;
173 int dir = S_ISDIR(stat.st_mode);
185 if (selabel_lookup(sehnd, &dentries[i].secon, dentries[i].path, stat.st_mode) < 0) {
194 if (S_ISREG(stat
[all...]
/system/core/sdcard/
H A Dsdcard.c24 #include <sys/stat.h>
383 static void attr_from_stat(struct fuse_attr *attr, const struct stat *s, const struct node* node)
772 struct stat s;
799 struct stat s;
1262 struct statfs stat; local
1273 if (statfs(fuse->root.name, &stat) < 0) {
1277 out.st.blocks = stat.f_blocks;
1278 out.st.bfree = stat.f_bfree;
1279 out.st.bavail = stat.f_bavail;
1280 out.st.files = stat
[all...]

Completed in 4274 milliseconds