Updates group descriptions.
Standard C Library (libc.a)
int putgrent (grp, fp) struct group *grp; FILE *fp;
The putgrent subroutine updates group descriptions. The grp parameter is a pointer to a group structure, as created by the getgrent, getgrgid, and getgrnam subroutines.
The putgrent subroutine writes a line on the stream specified by the fp parameter. The stream matches the format of /etc/group.
The gr_passwd field of the line written is always set to ! (exclamation point).
grp | Pointer to a group structure. |
fp | Specifies the stream to be written to. |
The putgrent subroutine returns a value of 0 upon successful completion. If putgrent fails, a nonzero value is returned.
/etc/group
/etc/security/group
The getgrent, getgrgid, getgrnam, setgrent, or endgrent Subroutine.
List of Security and Auditing Subroutines, Subroutines Overview in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.