File indexing completed on 2024-04-28 15:53:57
0001 # AUTO-GENERATED FILE -- DO NOT EDIT 0002 0003 """ Access to the Unix group database. 0004 0005 Group entries are reported as 4-tuples containing the following fields 0006 from the group database, in order: 0007 0008 name - name of the group 0009 passwd - group password (encrypted); often empty 0010 gid - numeric ID of the group 0011 mem - list of members 0012 0013 The gid is an integer, name and password are strings. (Note that most 0014 users are not explicitly listed as members of the groups they are in 0015 according to the password database. Check both databases to get 0016 complete membership information.) """ 0017 0018 __package__ = None 0019 0020 def getgrall(): 0021 """ getgrall() -> list of tuples 0022 Return a list of all available group entries, in arbitrary order. 0023 An entry whose name starts with '+' or '-' represents an instruction 0024 to use YP/NIS and may not be accessible via getgrnam or getgrgid. """ 0025 return () 0026 0027 def getgrgid(id): 0028 """ getgrgid(id) -> tuple 0029 Return the group database entry for the given numeric group ID. If 0030 id is not valid, raise KeyError. """ 0031 return () 0032 0033 def getgrnam(name): 0034 """ getgrnam(name) -> tuple 0035 Return the group database entry for the given group name. If 0036 name is not valid, raise KeyError. """ 0037 return () 0038 0039 class struct_group(object): 0040 """ grp.struct_group: Results from getgr*() routines. 0041 0042 This object may be accessed either as a tuple of 0043 (gr_name,gr_passwd,gr_gid,gr_mem) 0044 or via the object attributes as named in the above tuple. 0045 """ 0046 0047 gr_gid = None 0048 gr_mem = None 0049 gr_name = None 0050 gr_passwd = None 0051 n_fields = 4 0052 n_sequence_fields = 4 0053 n_unnamed_fields = 0 0054