Searched refs:stat (Results 1 - 25 of 131) 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 Dls.c12 #include <sys/stat.h>
103 struct stat s;
119 fprintf(stderr, "stat failed on %s: %s\n", tmp, strerror(errno));
134 struct stat s;
151 struct stat link_dest;
152 if (!stat(path, &link_dest)) {
155 fprintf(stderr, "stat '%s' failed: %s\n", path, strerror(errno));
168 struct stat s;
244 struct stat s;
368 struct stat
[all...]
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 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 Dinsmod.c8 #include <sys/stat.h>
16 struct stat sb;
H A Drm.c7 #include <sys/stat.h>
22 struct stat st;
/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>
H A Dutil.c30 #include <sys/stat.h>
154 struct stat sb;
289 struct stat info;
304 if (stat(buf, &info) != 0) {
362 struct stat info;
366 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
497 struct stat sb;
/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...]
H A Dadb_auth_host.c25 # include <sys/stat.h>
264 struct stat buf;
286 if (stat(android_dir, &buf)) {
298 struct stat buf;
310 if (stat(path, &buf) == -1) {
326 struct stat buf;
337 if (stat(path, &buf))
H A Dfile_sync_client.c21 #include <sys/stat.h>
139 if(readx(fd, &msg.stat, sizeof(msg.stat))) {
143 if(msg.stat.id != ID_STAT) {
147 *timestamp = ltohl(msg.stat.time);
172 if(readx(fd, &msg.stat, sizeof(msg.stat)))
175 if(msg.stat.id != ID_STAT)
178 *timestamp = ltohl(msg.stat.time);
179 *mode = ltohl(msg.stat
[all...]
/system/extras/ext4_utils/
H A Dmake_ext4fs.c34 #include <sys/stat.h>
108 struct stat stat; local
135 ret = lstat(dentries[i].full_path, &stat);
143 dentries[i].size = stat.st_size;
144 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
145 dentries[i].mtime = stat.st_mtime;
151 int dir = S_ISDIR(stat.st_mode);
164 if (selabel_lookup(sehnd, &dentries[i].secon, sepath, stat.st_mode) < 0) {
173 if (S_ISREG(stat
[all...]
/system/extras/tests/cpueater/
H A Dcpueater.c25 #include <sys/stat.h>
/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/core/libcutils/
H A Dklog.c17 #include <sys/stat.h>
H A Dpartition_utils.c20 #include <sys/stat.h>
H A Dprocess_name.c23 #include <sys/stat.h>
H A Dashmem-host.c26 #include <sys/stat.h>
98 struct stat buf;

Completed in 2780 milliseconds

123456