Lines Matching defs:stat
34 // format. Struct kernel_stat is defined as 'struct stat' in asm/stat.h. To
35 // access stat from asm/stat.h, without conflicting with definition in
36 // sys/stat.h, we use this trick.
40 #define stat kernel_stat
41 #include <asm/stat.h>
42 #undef stat
58 #include <sys/stat.h>
235 static void stat64_to_stat(struct stat64 *in, struct stat *out) {
254 // Undefine compatibility macros from <sys/stat.h>
261 // Bionic sys/stat.h defines additional macros
269 static void kernel_stat_to_stat(struct kernel_stat *in, struct stat *out) {
309 // For mips64, stat syscall fills buffer in the format of kernel_stat
311 int res = internal_syscall(SYSCALL(stat), path, &kbuf);
312 kernel_stat_to_stat(&kbuf, (struct stat *)buf);
315 return internal_syscall(SYSCALL(stat), (uptr)path, (uptr)buf);
320 stat64_to_stat(&buf64, (struct stat *)buf);
337 kernel_stat_to_stat(&kbuf, (struct stat *)buf);
345 stat64_to_stat(&buf64, (struct stat *)buf);
357 kernel_stat_to_stat(&kbuf, (struct stat *)buf);
365 stat64_to_stat(&buf64, (struct stat *)buf);
371 struct stat st;
454 struct stat st;