text
stringlengths 0
234
|
---|
and are not widely available on other systems. |
.sh notes |
there is no file descriptor associated with the file stream |
returned by these functions |
(i.e., |
.br fileno (3) |
will return an error if called on the returned stream). |
.sh bugs |
in glibc before version 2.7, seeking past the end of a stream created by |
.br open_memstream () |
does not enlarge the buffer; instead the |
.br fseek (3) |
call fails, returning \-1. |
.\" http://sourceware.org/bugzilla/show_bug.cgi?id=1996 |
.sh examples |
see |
.br fmemopen (3). |
.sh see also |
.br fmemopen (3), |
.br fopen (3), |
.br setbuf (3) |
.sh colophon |
this page is part of release 5.13 of the linux |
.i man-pages |
project. |
a description of the project, |
information about reporting bugs, |
and the latest version of this page, |
can be found at |
\%https://www.kernel.org/doc/man\-pages/. |
.so man3/strchr.3 |
.so man3/unlocked_stdio.3 |
.so man3/unlocked_stdio.3 |
.\" copyright 2003 walter harms ([email protected]) |
.\" |
.\" %%%license_start(gpl_noversion_oneline) |
.\" distributed under gpl |
.\" %%%license_end |
.\" |
.th putgrent 3 2021-03-22 "gnu" "linux programmer's manual" |
.sh name |
putgrent \- write a group database entry to a file |
.sh synopsis |
.nf |
.br "#define _gnu_source" " /* see feature_test_macros(7) */" |
.b #include <grp.h> |
.pp |
.bi "int putgrent(const struct group *restrict " grp \ |
", file *restrict " stream ); |
.fi |
.sh description |
the |
.br putgrent () |
function is the counterpart for |
.br fgetgrent (3). |
the function writes the content of the provided |
.ir "struct group" |
into the |
.ir stream . |
the list of group members must be null-terminated or null-initialized. |
.pp |
the |
.ir "struct group" |
is defined as follows: |
.pp |
.in +4n |
.ex |
struct group { |
char *gr_name; /* group name */ |
char *gr_passwd; /* group password */ |
gid_t gr_gid; /* group id */ |
char **gr_mem; /* group members */ |
}; |
.ee |
.in |
.sh return value |
the function returns zero on success, and a nonzero value on error. |
.sh attributes |
for an explanation of the terms used in this section, see |
.br attributes (7). |
.ad l |
.nh |
.ts |
allbox; |
lbx lb lb |
l l l. |
interface attribute value |
t{ |
.br putgrent () |
t} thread safety mt-safe |
.te |
.hy |
.ad |
.sp 1 |
.sh conforming to |
this function is a gnu extension. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.