Searched refs:stat (Results 1 - 25 of 139) sorted by relevance

123456

/system/core/toolbox/
H A Dexists.c2 #include <sys/stat.h>
7 struct stat s;
11 if(stat(argv[1], &s)) {
H A Dmkdir.c6 #include <sys/stat.h>
38 struct stat st;
59 if(stat(currpath, &st) != 0) {
H A Dmv.c5 #include <sys/stat.h>
12 struct stat st;
22 if (stat(dest, &st)) {
H A Dumount.c3 #include <sys/stat.h>
16 struct stat st;
19 if (stat(dev, &st) == 0) {
H A Dload_policy.c6 #include <sys/stat.h>
14 struct stat sb;
31 fprintf(stderr, "Could not stat %s: %s\n", path, strerror(errno));
H A Dls.c10 #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 Drestorecon.c6 #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 Dsetsebool.c5 #include <sys/stat.h>
/system/core/toolbox/cp/
H A Dextern.h52 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 Dutils.c43 #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 Ddevices.h20 #include <sys/stat.h>
H A Dutil.h20 #include <sys/stat.h>
/system/extras/tests/storage/
H A Dopentest.c18 #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 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/adb/
H A Dfile_sync_service.c21 #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 Dcpueater.c25 #include <sys/stat.h>
/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/core/sh/
H A Dcd.c45 #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 Dfstrim.c18 #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 DTrace.h26 #include <sys/stat.h>
/system/core/libcutils/
H A Dklog.c17 #include <sys/stat.h>
H A Dpartition_utils.c20 #include <sys/stat.h>
H A Dprocess_name.c25 #include <sys/stat.h>
H A Dashmem-host.c26 #include <sys/stat.h>
98 struct stat buf;
/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...]

Completed in 332 milliseconds

123456