1 # Stubs for posix1e (Python 3)
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
5 from typing import Optional, Union, Tuple, TypeVar
6 from builtins import _PathLike as PathLike
8 from typing import overload
9 ACL_DUPLICATE_ERROR: int
21 ACL_UNDEFINED_TAG: int
27 HAS_ACL_FROM_MODE: int
30 HAS_EXTENDED_CHECK: int
32 TEXT_ALL_EFFECTIVE: int
34 TEXT_SMART_INDENT: int
35 TEXT_SOME_EFFECTIVE: int
37 S = TypeVar('S', str, bytes, int, PathLike)
39 def delete_default(path: str) -> None: ...
40 def has_extended(item: S) -> bool: ...
43 def __init__(*args, **kwargs) -> None: ...
45 def append(self) -> 'Entry': ...
47 def append(self, __entry: 'Entry') -> 'Entry': ...
48 def applyto(self, __item, flag: Optional[int]=0) -> None: ...
49 def calc_mask(self) -> None: ...
50 def check(self) -> Union[bool, Tuple[int, int]]: ...
51 def delete_entry(self, __entry: 'Entry') -> None: ...
52 def equiv_mode(self) -> int: ...
53 def to_any_text(self, prefix: str=..., separator: str=..., options: int=...) -> bytes: ...
54 def valid(self) -> bool: ...
55 def __iter__(self) -> 'ACL': ...
56 def __next__(self) -> 'Entry': ...
57 def __getstate__(self) -> bytes: ...
58 def __setstate__(self, state: bytes) -> None: ...
62 permset: 'Permset' = ...
65 def __init__(self, __acl: ACL) -> None: ...
66 def copy(self, __src: 'Entry') -> None: ...
72 def __init__(self, __entry: Entry) -> None: ...
74 def add(self, perm: int) -> None: ...
75 def clear(self) -> None: ...
76 def delete(self, perm: int) -> None: ...
77 def test(self, perm: int) -> bool: ...