Searched defs:stat_buf (Results 1 - 25 of 83) sorted by relevance

1234

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
H A D15-1.c32 struct stat stat_buf; local
48 result = fstat(fd, &stat_buf);
H A D16-1.c30 struct stat stat_buf; local
46 result = fstat(fd, &stat_buf);
55 if (stat_buf.st_uid == geteuid()) {
H A D17-1.c30 struct stat stat_buf; local
46 result = fstat(fd, &stat_buf);
55 if (stat_buf.st_gid == getegid()) {
H A D21-1.c28 struct stat stat_buf; local
44 result = fstat(fd, &stat_buf);
53 if (stat_buf.st_size == 0) {
H A D25-1.c37 struct stat stat_buf; local
58 if (fstat(fd, &stat_buf) != 0) {
66 if (stat_buf.st_size == 0) {
H A D26-1.c33 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 D18-1.c42 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 D26-2.c42 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 Dvmw_screen.c69 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 Df2fs_format_utils.c40 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 Dparse.c806 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 Dchmod01.c93 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 Dchmod03.c101 struct stat stat_buf; local
120 if (stat(TESTFILE, &stat_buf) < 0) {
124 file_mode = stat_buf.st_mode;
H A Dchmod04.c101 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 Dfchmod03.c100 struct stat stat_buf; /* stat struct. */ local
122 if (fstat(fd, &stat_buf) == -1)
125 file_mode = stat_buf.st_mode;
H A Dfchmod04.c103 struct stat stat_buf; /* stat struct. */ local
125 if (fstat(fd, &stat_buf) == -1)
128 dir_mode = stat_buf.st_mode;
H A Dfchmod07.c92 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 Dfstat03.c74 struct stat stat_buf; /* stat structure buffer */ local
94 TEST(fstat(fildes, &stat_buf));
/external/ltp/testcases/kernel/syscalls/lseek/
H A Dlseek08.c154 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 Dlseek09.c174 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 Drmdir05.c61 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 Dsymlink04.c92 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 Dsymlink05.c92 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 Dutime04.c99 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 Dtest_file_util_posix.cc28 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.

Completed in 403 milliseconds

1234