Lines Matching refs:mode
21 def S_IMODE(mode): argument
22 return mode & 07777
24 def S_IFMT(mode): argument
25 return mode & 0170000
40 def S_ISDIR(mode): argument
41 return S_IFMT(mode) == S_IFDIR
43 def S_ISCHR(mode): argument
44 return S_IFMT(mode) == S_IFCHR
46 def S_ISBLK(mode): argument
47 return S_IFMT(mode) == S_IFBLK
49 def S_ISREG(mode): argument
50 return S_IFMT(mode) == S_IFREG
52 def S_ISFIFO(mode): argument
53 return S_IFMT(mode) == S_IFIFO
55 def S_ISLNK(mode): argument
56 return S_IFMT(mode) == S_IFLNK
58 def S_ISSOCK(mode): argument
59 return S_IFMT(mode) == S_IFSOCK