Home
last modified time | relevance | path

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

123456

/external/python/cpython2/Lib/
Dstat.py24 def S_IFMT(mode): function
41 return S_IFMT(mode) == S_IFDIR
44 return S_IFMT(mode) == S_IFCHR
47 return S_IFMT(mode) == S_IFBLK
50 return S_IFMT(mode) == S_IFREG
53 return S_IFMT(mode) == S_IFIFO
56 return S_IFMT(mode) == S_IFLNK
59 return S_IFMT(mode) == S_IFSOCK
Dfilecmp.py60 return (stat.S_IFMT(st.st_mode),
160 a_type = stat.S_IFMT(a_stat.st_mode)
161 b_type = stat.S_IFMT(b_stat.st_mode)
/external/kernel-headers/original/uapi/linux/
Dstat.h9 #define S_IFMT 00170000 macro
21 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
26 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
27 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
/external/python/cpython3/Lib/
Dstat.py27 def S_IFMT(mode): function
52 return S_IFMT(mode) == S_IFDIR
56 return S_IFMT(mode) == S_IFCHR
60 return S_IFMT(mode) == S_IFBLK
64 return S_IFMT(mode) == S_IFREG
68 return S_IFMT(mode) == S_IFIFO
72 return S_IFMT(mode) == S_IFLNK
76 return S_IFMT(mode) == S_IFSOCK
Dfilecmp.py70 return (stat.S_IFMT(st.st_mode),
170 a_type = stat.S_IFMT(a_stat.st_mode)
171 b_type = stat.S_IFMT(b_stat.st_mode)
/external/zstd/contrib/pzstd/utils/
DFileSystem.h51 #elif !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG) in is_regular_file()
52 return (status.st_mode & S_IFMT) == S_IFREG; in is_regular_file()
67 #elif !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR) in is_directory()
68 return (status.st_mode & S_IFMT) == S_IFDIR; in is_directory()
/external/strace/
Dprintmode.c45 if (mode & S_IFMT) in print_symbolic_mode_t()
46 ifmt = xlookup(modetypes, mode & S_IFMT); in print_symbolic_mode_t()
60 mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)); in print_symbolic_mode_t()
/external/expat/xmlwf/
Dreadfilemap.c62 # ifndef S_IFMT
63 # define S_IFMT _S_IFMT macro
65 # define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
/external/ipsec-tools/src/racoon/
Dsafefile.c73 switch (s.st_mode & S_IFMT) {
79 (s.st_mode & S_IFMT));
/external/python/cpython3/Modules/
D_stat.c92 # define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
96 # define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
100 # define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
104 # define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
344 return PyLong_FromUnsignedLong(mode & S_IFMT); in stat_S_IFMT()
/external/python/cpython3/Include/
Dpyport.h243 #ifndef S_IFMT
245 #define S_IFMT 0170000 macro
255 #define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
259 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
263 #define S_ISCHR(x) (((x) & S_IFMT) == S_IFCHR)
/external/strace/tests-m32/
Dmknod.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dmknodat.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dxstatx.c136 printf("%#o", mode & S_IFMT); in print_ftype()
142 printf("%#o", mode & ~S_IFMT); in print_perms()
168 switch (st->st_mode & S_IFMT) { in print_stat()
/external/strace/tests-mx32/
Dmknodat.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dmknod.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dxstatx.c136 printf("%#o", mode & S_IFMT); in print_ftype()
142 printf("%#o", mode & ~S_IFMT); in print_perms()
168 switch (st->st_mode & S_IFMT) { in print_stat()
/external/strace/tests/
Dmknodat.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dmknod.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dxstatx.c136 printf("%#o", mode & S_IFMT); in print_ftype()
142 printf("%#o", mode & ~S_IFMT); in print_perms()
168 switch (st->st_mode & S_IFMT) { in print_stat()
/external/python/cpython2/Lib/plat-atheos/
DIN.py570 S_IFMT = 00170000 variable
581 def S_ISLNK(m): return (((m) & S_IFMT) == S_IFLNK)
583 def S_ISREG(m): return (((m) & S_IFMT) == S_IFREG)
585 def S_ISDIR(m): return (((m) & S_IFMT) == S_IFDIR)
587 def S_ISCHR(m): return (((m) & S_IFMT) == S_IFCHR)
589 def S_ISBLK(m): return (((m) & S_IFMT) == S_IFBLK)
591 def S_ISFIFO(m): return (((m) & S_IFMT) == S_IFIFO)
593 def S_ISSOCK(m): return (((m) & S_IFMT) == S_IFSOCK)
/external/curl/lib/
Dcurl_setup.h710 #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
711 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
715 #if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
716 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
/external/ImageMagick/MagickWand/
Dstudio.h192 # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
195 # define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify04.c128 } else if ((int)(st.st_mode & S_IFMT) != mask) { in verify_event()
130 "(%o != %o)", st.st_mode & S_IFMT, mask); in verify_event()
/external/ImageMagick/MagickCore/
Dstudio.h202 # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
205 # define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)

123456