Home | History | Annotate | Download | only in Lib

Lines Matching refs:mode

19 # Extract bits from the mode

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