Home
last modified time | relevance | path

Searched refs:S_IFMT (Results 1 – 22 of 22) sorted by relevance

/aosp12/bionic/libc/kernel/uapi/linux/
H A Dstat.h23 #define S_IFMT 00170000 macro
34 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
35 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
36 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
37 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
38 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
39 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
40 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
H A Dgfs2_ondisk.h158 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
159 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/aosp12/packages/modules/adb/sysdeps/
H A Dstat.h48 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
54 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
58 static_assert(S_IFMT == 00170000, "");
/aosp12/bionic/libc/include/android/
H A Dlegacy_sys_stat_inlines.h40 return mknod(__path, (__mode & ~S_IFMT) | S_IFIFO, (dev_t)0); in mkfifo()
/aosp12/bionic/libc/bionic/
H A Dmkfifo.cpp38 return mknodat(fd, path, (mode & ~S_IFMT) | S_IFIFO, 0); in mkfifoat()
/aosp12/bionic/tests/headers/posix/
H A Dsys_stat_h_mode_constants.h29 MACRO(S_IFMT);
/aosp12/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dmakebuf.c104 return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ? in __swhatbuf()
/aosp12/frameworks/av/media/libstagefright/foundation/
H A DFoundationUtils.cpp87 if ((s.st_mode & S_IFMT) == S_IFLNK) { in nameForFd()
/aosp12/bionic/tests/
H A Dfcntl_test.cpp331 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()
344 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()
/aosp12/build/make/tools/libhost/
H A DCopyFile.c183 if (chmod(dst, pSrcStat->st_mode & ~(S_IFMT)) != 0) { in setPermissions()
185 dst, pSrcStat->st_mode & ~(S_IFMT), strerror(errno))); in setPermissions()
/aosp12/system/update_engine/payload_generator/
H A Ddeflate_utils.cc80 (file.file_stat.st_mode & S_IFMT) == S_IFREG) { in IsRegularFile()
/aosp12/system/libbase/
H A Dfile_test.cpp86 ASSERT_EQ(0660U, static_cast<unsigned int>(sb.st_mode & ~S_IFMT)); in TEST()
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java20 import static android.system.OsConstants.S_IFMT;
519 sb.append((stat.st_mode & S_IFMT)); in assertDirOwnerGroupPermsIfExists()
536 if ((stat.st_mode & ~S_IFMT) != perms) { in assertDirOwnerGroupPermsIfExists()
540 sb.append(Integer.toOctalString(stat.st_mode & ~S_IFMT)); in assertDirOwnerGroupPermsIfExists()
/aosp12/system/core/fs_mgr/libfiemap/
H A Dfiemap_writer.cpp206 if ((sb.st_mode & S_IFMT) != S_IFBLK) { in GetBlockDeviceForFile()
/aosp12/system/tools/hidl/
H A DCoordinator.cpp472 if ((sb.st_mode & S_IFMT) != S_IFREG) { in getPackageInterfaceFiles()
/aosp12/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp575 snprintf(buf + 100, 8, "%06o ", s.st_mode & ~S_IFMT); in write_tarfile()
/aosp12/system/core/init/
H A Dbuiltins.cpp424 bool needs_chmod = (mstat.st_mode & ~S_IFMT) != options.mode; in make_dir_with_options()
/aosp12/packages/modules/adb/client/
H A Dfile_sync_client.cpp1030 st->st_mode &= ~S_IFMT; in sync_stat_fallback()
/aosp12/system/core/fs_mgr/
H A Dfs_mgr.cpp706 if (lstat(mount_point.c_str(), &info) == 0 && (info.st_mode & S_IFMT) == S_IFLNK) { in prepare_fs_for_mount()
/aosp12/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp667 if ((s.st_mode & S_IFMT) == S_IFLNK) { in dump()
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/aosp12/frameworks/opt/setupwizard/tools/docs/
H A Dandroid-22.txt27997 field public static final int S_IFMT;