Searched refs:S_IFMT (Results 1 – 25 of 27) sorted by relevance
12
12 #define S_IFMT 00170000 macro24 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)25 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)26 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)27 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)28 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)29 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)30 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
27 #ifndef S_IFMT28 #define S_IFMT _S_IFMT macro30 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
73 switch (s.st_mode & S_IFMT) {79 (s.st_mode & S_IFMT));
148 #define S_IFMT 00170000 macro152 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)153 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)154 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
229 #define S_IFMT 00170000 macro233 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)234 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)235 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
118 #ifndef S_IFMT119 #define S_IFMT 0170000 macro
505 switch(s.st_mode & S_IFMT) in dumpDirFollow()552 switch(s.st_mode & S_IFMT) in dump_directory_tree_worker()567 if((s.st_mode & S_IFMT) == S_IFDIR && recursive) in dump_directory_tree_worker()913 switch(s.st_mode & S_IFMT){ in huge_directory_test_on_path()
834 buf->st_mode = obj->yst_mode & ~S_IFMT; // clear out file type bits in yaffsfs_DoStat()
93 if ((st.st_mode & S_IFMT) == S_IFREG) { in main()
611 if ((mode & S_IFMT) == 0)613 else if ((s = xlookup(modetypes, mode & S_IFMT)) == NULL) {621 mode &= ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX);707 switch (statbuf.st_mode & S_IFMT) {764 switch (statbuf.st_mode & S_IFMT) {858 switch (statbuf->st_mode & S_IFMT) {1001 switch (statbuf.st_mode & S_IFMT) {1306 switch (mode & S_IFMT) {1935 switch (mode & S_IFMT) {
47 mode_t mode = buf.st_mode & ~S_IFMT; in copy_file()
247 # ifndef S_IFMT248 # define S_IFMT _S_IFMT macro
117 if (::stat(P.c_str(), &buf) == 0 ? (buf.st_mode & S_IFMT) == S_IFREG : in CleanupFileList()
676 obj->yst_mode &= ~S_IFMT; in yaffs_FillInodeFromObject()683 obj->yst_mode &= ~S_IFMT; in yaffs_FillInodeFromObject()690 obj->yst_mode &= ~S_IFMT; in yaffs_FillInodeFromObject()734 switch (obj->yst_mode & S_IFMT) { in yaffs_FillInodeFromObject()989 switch (mode & S_IFMT) { in yaffs_mknod()
67 printf("#define VKI_S_IFMT 0x%08x\n", S_IFMT); in main()
522 if (stat(from, &was) != 0 || (was.st_mode & S_IFMT) != S_IFREG) in copymeta()
70 # ifndef S_IFMT72 # define S_IFMT _S_IFMT macro75 # ifdef S_IFMT76 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
272 if (stat(pluginProcessShimPath, &statBuf) == 0 && (statBuf.st_mode & S_IFMT) == S_IFREG)
1695 switch(st.st_mode & S_IFMT) in add2fs_from_dir()1699 if((st.st_mode & S_IFMT) == S_IFREG || st.st_size > 4 * (EXT2_TIND_BLOCK+1)) in add2fs_from_dir()1741 switch(st.st_mode & S_IFMT) in add2fs_from_dir()2447 switch(st.st_mode & S_IFMT) in populate_fs()
939 if ((sbuf.st_mode & S_IFMT) != S_IFCHR) {
2533 if ((sbuf.st_mode & S_IFMT) != S_IFCHR) {
345 return ((statbuf.st_mode & S_IFMT) == S_IFDIR)? '/' : 0; in isdirectory()382 return (statbuf.st_mode & S_IFMT) == S_IFREG; in isregfile()
620 switch (stb.st_mode & S_IFMT) { in source()
422 return ((buf.st_mode & S_IFMT) == S_IFDIR) ? true : false;
2978 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR)