Common Lisp Package: COM.INFORMATIMAGO.COMMON-LISP.UNIX.GROUP

This package exports a function to read unix group files. License: AGPL3 Copyright Pascal J. Bourguignon 2004 - 2012 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>

README:

FUNCTION

Public

ENTRY-GID (INSTANCE)

The group ID.

ENTRY-PASSWD (INSTANCE)

The password of the group.

ENTRY-USERS (INSTANCE)

The list of user logins (strings).

READ-GROUP (&OPTIONAL (GROUP-FILE-PATH /etc/group))

DO: Read the group file. GROUP-FILE-PATH: The pathname to the group file; default: "/etc/group" RETURN: A list of group ENTRY structures.

Undocumented

SETFENTRY-GID (NEW-VALUE INSTANCE)

SETFENTRY-PASSWD (NEW-VALUE INSTANCE)

SETFENTRY-USERS (NEW-VALUE INSTANCE)

Private

ENTRY-NAME (INSTANCE)

The name of the group.

Undocumented

COPY-ENTRY (INSTANCE)

SETFENTRY-NAME (NEW-VALUE INSTANCE)

ENTRY-P (OBJECT)

MAKE-ENTRY (&KEY ((NAME DUM0) ) ((PASSWD DUM1) ) ((GID DUM2) 0) ((USERS DUM3) NIL))

PARSE-GROUP (LINE)

CLASS

Public

ENTRY

A unix /etc/group entry.