Beispiel #1
0
def getgrall():
    """
    getgrall() -> list of tuples
    Return a list of all available group database entries,
    in arbitrary order.
    """
    groups = []
    try:
        while True:
            groups.append(struct_group(_posix.getgrent()))
    except NullPointerException:
        return groups
Beispiel #2
0
def getgrall():
    """
    getgrall() -> list of tuples
    Return a list of all available group database entries,
    in arbitrary order.
    """
    groups = []
    try:
        while True:
            groups.append(struct_group(_posix.getgrent()))
    except NullPointerException:
        return groups
Beispiel #3
0
def getgrall():
    """
    getgrall() -> list of tuples
    Return a list of all available group database entries,
    in arbitrary order.
    """
    groups = []
    while True:
        group = _posix.getgrent()
        if not group:
            break
        groups.append(struct_group(group))
    return groups
Beispiel #4
0
def getgrall():
    """
    getgrall() -> list of tuples
    Return a list of all available group database entries,
    in arbitrary order.
    """
    groups = []
    while True:
        group = _posix.getgrent()
        if not group:
            break
        groups.append(struct_group(group))
    return groups