Example #1
0
File: grp.py Project: babble/babble
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
Example #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
Example #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
Example #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