/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
H A D | 15-1.c | 32 struct stat stat_buf; local 48 result = fstat(fd, &stat_buf);
|
H A D | 16-1.c | 30 struct stat stat_buf; local 46 result = fstat(fd, &stat_buf); 55 if (stat_buf.st_uid == geteuid()) {
|
H A D | 17-1.c | 30 struct stat stat_buf; local 46 result = fstat(fd, &stat_buf); 55 if (stat_buf.st_gid == getegid()) {
|
H A D | 21-1.c | 28 struct stat stat_buf; local 44 result = fstat(fd, &stat_buf); 53 if (stat_buf.st_size == 0) {
|
H A D | 25-1.c | 37 struct stat stat_buf; local 58 if (fstat(fd, &stat_buf) != 0) { 66 if (stat_buf.st_size == 0) {
|
H A D | 26-1.c | 33 struct stat stat_buf; local 42 if (fstat(fd, &stat_buf) != 0) { 47 old_mode = stat_buf.st_mode; 56 if (fstat(fd, &stat_buf) != 0) { 64 if (stat_buf.st_mode == old_mode) {
|
H A D | 18-1.c | 42 struct stat stat_buf; local 60 result = fstat(fd, &stat_buf); 71 * stat_buf.st_mode are set if and only if the same bits of MOD_FLAGS 73 * ALL_MOD_FLAGS & (stat_buf.st_mode ^ (MOD_FLAGS & ~UMASK_FLAGS)) == 0 75 if (!(ALL_MOD_FLAGS & (stat_buf.st_mode ^ (MOD_FLAGS & ~UMASK_FLAGS)))) {
|
H A D | 26-2.c | 42 struct stat stat_buf; local 63 if (fstat(fd, &stat_buf) != 0) { 68 old_uid = stat_buf.st_uid; 69 old_gid = stat_buf.st_gid; 104 if (fstat(fd, &stat_buf) != 0) { 114 if (stat_buf.st_uid == old_uid && stat_buf.st_gid == old_gid) { 119 if (stat_buf.st_uid != old_uid) 121 if (stat_buf.st_gid != old_gid)
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_screen.c | 69 struct stat stat_buf; local 77 if (fstat(fd, &stat_buf)) 80 vws = util_hash_table_get(dev_hash, &stat_buf.st_rdev); 90 vws->device = stat_buf.st_rdev;
|
/external/f2fs-tools/mkfs/ |
H A D | f2fs_format_utils.c | 40 struct stat stat_buf; local 45 if (fstat(fd, &stat_buf) < 0 ) { 55 if (S_ISREG(stat_buf.st_mode)) { 63 } else if (S_ISBLK(stat_buf.st_mode)) { 71 stat_buf.st_size >> 20);
|
/external/ltp/testcases/kernel/io/disktest/ |
H A D | parse.c | 806 struct stat stat_buf; local 811 rv = stat(args->device, &stat_buf); 813 if (IS_FILE(stat_buf.st_mode)) { 818 } else if (IS_BLK(stat_buf.st_mode)) { 824 } else if (S_ISCHR(stat_buf.st_mode)) { 998 struct stat stat_buf; local 1080 rv = stat(args->device, &stat_buf); 1083 if ((args->flags & CLD_FLG_FILE) && !IS_FILE(stat_buf.st_mode)) { 1089 if ((args->flags & CLD_FLG_BLK) && !IS_BLK(stat_buf.st_mode)) { 1096 if ((args->flags & CLD_FLG_RAW) && !S_ISCHR(stat_buf [all...] |
/external/ltp/testcases/kernel/syscalls/chmod/ |
H A D | chmod01.c | 93 struct stat stat_buf; local 119 if (stat(TESTFILE, &stat_buf) < 0) 122 stat_buf.st_mode &= ~S_IFREG; 124 if (stat_buf.st_mode == mode) 131 TESTFILE, stat_buf.st_mode,
|
H A D | chmod03.c | 101 struct stat stat_buf; local 120 if (stat(TESTFILE, &stat_buf) < 0) { 124 file_mode = stat_buf.st_mode;
|
H A D | chmod04.c | 101 struct stat stat_buf; /* stat struct. */ local 129 if (stat(TESTDIR, &stat_buf) < 0) { 134 dir_mode = stat_buf.st_mode;
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
H A D | fchmod03.c | 100 struct stat stat_buf; /* stat struct. */ local 122 if (fstat(fd, &stat_buf) == -1) 125 file_mode = stat_buf.st_mode;
|
H A D | fchmod04.c | 103 struct stat stat_buf; /* stat struct. */ local 125 if (fstat(fd, &stat_buf) == -1) 128 dir_mode = stat_buf.st_mode;
|
H A D | fchmod07.c | 92 struct stat stat_buf; /* stat(2) struct contents */ local 126 if (fstat(fd, &stat_buf) < 0) { 132 stat_buf.st_mode &= ~S_IFREG; 138 if (stat_buf.st_mode == mode) { 146 TESTFILE, stat_buf.st_mode,
|
/external/ltp/testcases/kernel/syscalls/fstat/ |
H A D | fstat03.c | 74 struct stat stat_buf; /* stat structure buffer */ local 94 TEST(fstat(fildes, &stat_buf));
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
H A D | lseek08.c | 154 struct stat stat_buf; /* struct. buffer for stat(2) */ local 180 if (fstat(fildes, &stat_buf) < 0) { 185 file_size = stat_buf.st_size;
|
H A D | lseek09.c | 174 struct stat stat_buf; /* buffer to hold stat info. */ local 200 if (fstat(fildes, &stat_buf) < 0) { 205 file_size = stat_buf.st_size;
|
/external/ltp/testcases/kernel/syscalls/rmdir/ |
H A D | rmdir05.c | 61 static struct stat stat_buf; variable in typeref:struct:stat 88 if (stat(".", &stat_buf) == -1) { 191 if (stat(dir_name, &stat_buf) != 0) {
|
/external/ltp/testcases/kernel/syscalls/symlink/ |
H A D | symlink04.c | 92 struct stat stat_buf; /* stat structure buffer */ local 118 if (lstat(SYMFILE, &stat_buf) < 0) { 125 if (!S_ISLNK(stat_buf.st_mode)) {
|
H A D | symlink05.c | 92 struct stat stat_buf; /* stat structure buffer */ local 119 if (lstat(SYMFILE, &stat_buf) < 0) { 126 if (!S_ISLNK(stat_buf.st_mode)) {
|
/external/ltp/testcases/kernel/syscalls/utime/ |
H A D | utime04.c | 99 struct stat stat_buf; /* struct buffer to hold file info. */ local 126 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); 127 modf_time = stat_buf.st_mtime; 128 access_time = stat_buf.st_atime;
|
/external/libchrome/base/test/ |
H A D | test_file_util_posix.cc | 28 struct stat stat_buf; local 29 if (stat(path.value().c_str(), &stat_buf) != 0) 31 stat_buf.st_mode &= ~permission; 33 int rv = HANDLE_EINTR(chmod(path.value().c_str(), stat_buf.st_mode)); 44 struct stat stat_buf; local 45 if (stat(path.value().c_str(), &stat_buf) != 0) 50 *mode = stat_buf.st_mode & ~S_IFMT; // Filter out file/path kind.
|