/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 | mv.c | 5 #include <sys/stat.h> 12 struct stat st; 22 if (stat(dest, &st)) {
|
H A D | ls.c | 8 #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 D | rm.c | 7 #include <sys/stat.h> 19 struct stat st;
|
H A D | umount.c | 3 #include <sys/stat.h>
|
H A D | insmod.c | 8 #include <sys/stat.h> 16 struct stat sb;
|
H A D | cat.c | 36 #include <sys/stat.h> 157 struct stat sbuf; 198 struct stat st;
|
H A D | wipe.c | 9 #include <sys/stat.h> 79 static struct stat statBuffer; 121 fprintf(stderr, "stat() error on '%s' '%s'\n",
|
/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/ext4_utils/ |
H A D | make_ext4fs.c | 25 #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 D | diskconfig.c | 27 #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 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...] |
H A D | file_sync_client.c | 21 #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 D | file_sync_service.h | 60 } stat; member in union:__anon17
|
/system/extras/tests/cpueater/ |
H A D | cpueater.c | 25 #include <sys/stat.h>
|
/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 &&
|
H A D | main.c | 52 #include <sys/stat.h> 342 struct stat statb; 349 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
|
/system/core/libcutils/ |
H A D | process_name.c | 22 #include <sys/stat.h>
|
H A D | ashmem-host.c | 26 #include <sys/stat.h> 98 struct stat buf;
|
/system/core/cpio/ |
H A D | mkbootfs.c | 8 #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 D | directiotest.c | 37 #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 D | mdp_test.c | 23 #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 D | TNETWArb.c | 224 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 D | Controller.cpp | 25 #include <sys/stat.h> 124 struct stat sb;
|