/system/core/toolbox/ |
H A D | exists.c | 2 #include <sys/stat.h> 7 struct stat s; 11 if(stat(argv[1], &s)) {
|
H A D | mkdir.c | 6 #include <sys/stat.h> 38 struct stat st; 59 if(stat(currpath, &st) != 0) {
|
H A D | mv.c | 5 #include <sys/stat.h> 12 struct stat st; 22 if (stat(dest, &st)) {
|
H A D | umount.c | 3 #include <sys/stat.h> 16 struct stat st; 19 if (stat(dev, &st) == 0) {
|
H A D | load_policy.c | 6 #include <sys/stat.h> 14 struct stat sb; 31 fprintf(stderr, "Could not stat %s: %s\n", path, strerror(errno));
|
H A D | ls.c | 10 #include <sys/stat.h> 102 struct stat s; 118 fprintf(stderr, "stat failed on %s: %s\n", tmp, strerror(errno)); 131 static int listfile_size(const char *path, const char *filename, struct stat *s, 148 struct stat link_dest; 149 if (!stat(path, &link_dest)) { 152 fprintf(stderr, "stat '%s' failed: %s\n", path, strerror(errno)); 163 static int listfile_long(const char *path, struct stat *s, int flags) 238 static int listfile_maclabel(const char *path, struct stat *s, int flags) 301 struct stat [all...] |
H A D | restorecon.c | 6 #include <sys/stat.h> 23 static int restore(const char *pathname, const struct stat *sb) 122 struct stat sb; 127 fprintf(stderr, "Could not stat %s: %s\n", argv[i],
|
H A D | setsebool.c | 5 #include <sys/stat.h>
|
/system/core/toolbox/cp/ |
H A D | extern.h | 52 int copy_fifo(struct stat *, int); 55 int copy_special(struct stat *, int); 56 int set_utimes(const char *, struct stat *); 57 int setfile(struct stat *, int);
|
H A D | utils.c | 43 #include <sys/stat.h> 69 set_utimes(const char *file, struct stat *fs) 115 struct stat to_stat, *fs; 138 struct stat sb; 153 lstat(to.p_path, &sb) : stat(to.p_path, &sb); 155 warn("stat: %s", to.p_path); 343 copy_fifo(struct stat *from_stat, int exists) 357 copy_special(struct stat *from_stat, int exists) 376 * in the stat structure. If fd is zero, also call set_utimes() to set 381 setfile(struct stat *f [all...] |
/system/core/init/ |
H A D | devices.h | 20 #include <sys/stat.h>
|
H A D | util.h | 20 #include <sys/stat.h>
|
/system/extras/tests/storage/ |
H A D | opentest.c | 18 #include <sys/stat.h> 32 struct stat statbuf; 49 if (stat(dir, &statbuf)) { 50 fprintf(stderr, "Cannot stat %s\n", dir);
|
/system/core/libdiskconfig/ |
H A D | diskconfig.c | 27 #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/adb/ |
H A D | file_sync_service.c | 21 #include <sys/stat.h> 59 struct stat st; 61 msg.stat.id = ID_STAT; 64 msg.stat.mode = 0; 65 msg.stat.size = 0; 66 msg.stat.time = 0; 68 msg.stat.mode = htoll(st.st_mode); 69 msg.stat.size = htoll(st.st_size); 70 msg.stat.time = htoll(st.st_mtime); 73 return writex(s, &msg.stat, sizeo [all...] |
/system/extras/tests/cpueater/ |
H A D | cpueater.c | 25 #include <sys/stat.h>
|
/system/core/libutils/ |
H A D | Tokenizer.cpp | 24 #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/core/sh/ |
H A D | cd.c | 45 #include <sys/stat.h> 84 struct stat statb; 125 if (stat(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) { 155 struct stat statb; 163 * something we can't stat, clear curdir to force a getcwd() 252 * we couldn't stat(). 342 struct stat stdot, stpwd; 351 if (pwd && *pwd == '/' && stat(".", &stdot) != -1 && 352 stat(pwd, &stpwd) != -1 &&
|
/system/vold/ |
H A D | fstrim.c | 18 #include <sys/stat.h> 59 struct stat sb; 81 if (stat(fstab->recs[i].mount_point, &sb) == -1) { 82 SLOGE("Cannot stat mount point %s\n", fstab->recs[i].mount_point);
|
/system/core/include/utils/ |
H A D | Trace.h | 26 #include <sys/stat.h>
|
/system/core/libcutils/ |
H A D | klog.c | 17 #include <sys/stat.h>
|
H A D | partition_utils.c | 20 #include <sys/stat.h>
|
H A D | process_name.c | 25 #include <sys/stat.h>
|
H A D | ashmem-host.c | 26 #include <sys/stat.h> 98 struct stat buf;
|
/system/extras/ext4_utils/ |
H A D | make_ext4fs.c | 34 #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...] |