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

1234

/system/core/toolbox/
H A Dexists.c2 #include <sys/stat.h>
7 struct stat s;
11 if(stat(argv[1], &s)) {
H A Dmv.c5 #include <sys/stat.h>
12 struct stat st;
22 if (stat(dest, &st)) {
H A Dls.c8 #include <sys/stat.h>
93 struct stat s;
109 fprintf(stderr, "stat failed on %s: %s\n", tmp, strerror(errno));
124 struct stat s;
138 struct stat s;
258 struct stat s;
272 * If the name ends in a '/', use stat() so we treat it like a
276 err = stat(tmp, &s);
299 struct stat s;
303 * If the name ends in a '/', use stat() s
[all...]
H A Drm.c7 #include <sys/stat.h>
19 struct stat st;
H A Dumount.c3 #include <sys/stat.h>
H A Dinsmod.c8 #include <sys/stat.h>
16 struct stat sb;
H A Dcat.c36 #include <sys/stat.h>
157 struct stat sbuf;
198 struct stat st;
H A Dwipe.c9 #include <sys/stat.h>
79 static struct stat statBuffer;
121 fprintf(stderr, "stat() error on '%s' '%s'\n",
/system/core/init/
H A Ddevices.h20 #include <sys/stat.h>
H A Dutil.h20 #include <sys/stat.h>
/system/extras/ext4_utils/
H A Dmake_ext4fs.c25 #include <sys/stat.h>
79 struct stat stat; local
106 ret = lstat(dentries[i].full_path, &stat);
114 dentries[i].size = stat.st_size;
115 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
116 dentries[i].mtime = stat.st_mtime;
122 int dir = S_ISDIR(stat.st_mode);
132 if (S_ISREG(stat.st_mode)) {
134 } else if (S_ISDIR(stat
[all...]
/system/core/libdiskconfig/
H A Ddiskconfig.c27 #include <sys/stat.h>
241 struct stat stat; local
246 if (fstat(fd, &stat)) {
247 LOGE("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 LOGE("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 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...]
H A Dfile_sync_service.h60 } stat; member in union:__anon17
/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 &&
H A Dmain.c52 #include <sys/stat.h>
342 struct stat statb;
349 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
/system/core/libcutils/
H A Dprocess_name.c22 #include <sys/stat.h>
H A Dashmem-host.c26 #include <sys/stat.h>
98 struct stat buf;
/system/core/cpio/
H A Dmkbootfs.c8 #include <sys/stat.h>
40 static void fix_stat(const char *path, struct stat *s)
45 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize)
97 struct stat s;
186 struct stat s;
193 if(lstat(in, &s)) die("could not stat '%s'\n", in);
/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/tests/framebuffer/
H A Dmdp_test.c23 #include <sys/stat.h>
33 struct stat stat; local
57 if (fstat(*fd, &stat) < 0) {
62 *len = stat.st_size;
/system/wlan/ti/sta_dk_4_0_4_32/common/src/TNETW_Driver/TNETWIF/TNETWArbiter/
H A DTNETWArb.c224 pTNETWArb->stat.uStart ++;
297 pTNETWArb->stat.uRestart ++;
370 pTNETWArb->stat.uFinish ++;
587 WLAN_OS_REPORT (("Num of start = %u\n", pTNETWArb->stat.uStart));
588 WLAN_OS_REPORT (("Num of restart = %u\n", pTNETWArb->stat.uRestart));
589 WLAN_OS_REPORT (("Num of finish = %u\n", pTNETWArb->stat.uFinish));
/system/core/nexus/
H A DController.cpp25 #include <sys/stat.h>
124 struct stat sb;

Completed in 113 milliseconds

1234