示例#1
0
文件: grp.py 项目: Qointum/pypy
def getgrall():
    lib.setgrent()
    lst = []
    while 1:
        p = lib.getgrent()
        if not p:
            break
        lst.append(_group_from_gstruct(p))
    lib.endgrent()
    return lst
示例#2
0
文件: grp.py 项目: timm/timmnix
def getgrall():
    lib.setgrent()
    lst = []
    while 1:
        p = lib.getgrent()
        if not p:
            break
        lst.append(_group_from_gstruct(p))
    lib.endgrent()
    return lst