1 .\" Copyright 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
7 .TH PUTGRENT 3 2015-01-22 "GNU" "Linux Programmer's Manual"
9 putgrent \- write a group database entry to a file
11 .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
15 .BI "int putgrent(const struct group *" grp ", FILE *" stream );
19 function is the counterpart for
21 The function writes the content of the provided
25 The list of group members must be NULL-terminated or NULL-initialized.
29 is defined as follows:
34 char *gr_name; /* group name */
35 char *gr_passwd; /* group password */
36 gid_t gr_gid; /* group ID */
37 char **gr_mem; /* group members */
42 The function returns zero on success, and a nonzero value on error.
44 This function is a GNU extension.
50 This page is part of release 3.79 of the Linux
53 A description of the project,
54 information about reporting bugs,
55 and the latest version of this page,
57 \%http://www.kernel.org/doc/man\-pages/.