xdr.3: ATTRIBUTES: Note functions that are thread-safe

After research, We think
xdr_array(), xdr_bool(),
xdr_bytes(), xdr_char(),
xdr_destroy(), xdr_double(),
xdr_enum(), xdr_float(),
xdr_free(), xdr_getpos(),
xdr_inline(), xdr_int(),
xdr_long(), xdrmem_create(),
xdr_opaque(), xdr_pointer(),
xdrrec_create(), xdrrec_eof(),
xdrrec_endofrecord(),
xdrrec_skiprecord(),
xdr_reference(), xdr_setpos(),
xdr_short(), xdrstdio_create(),
xdr_string(), xdr_u_char(),
xdr_u_int(), xdr_u_long(),
xdr_u_short(), xdr_union(),
xdr_vector(), xdr_void(),
xdr_wrapstring(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Zeng Linggang 2015-06-24 17:28:39 +08:00 committed by Michael Kerrisk
parent 7d30e395a0
commit 365dc8d352
1 changed files with 62 additions and 0 deletions

View File

@ -545,6 +545,68 @@ routines as arguments, and
.BR xdr_string (),
one of the most frequently used primitives, requires three.
Returns one if it succeeds, zero otherwise.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).
.TS
allbox;
lbw31 lb lb
l l l.
Interface Attribute Value
T{
.BR xdr_array (),
.BR xdr_bool (),
.br
.BR xdr_bytes (),
.BR xdr_char (),
.br
.BR xdr_destroy (),
.BR xdr_double (),
.br
.BR xdr_enum (),
.BR xdr_float (),
.br
.BR xdr_free (),
.BR xdr_getpos (),
.br
.BR xdr_inline (),
.BR xdr_int (),
.br
.BR xdr_long (),
.BR xdrmem_create (),
.br
.BR xdr_opaque (),
.BR xdr_pointer (),
.br
.BR xdrrec_create (),
.BR xdrrec_eof (),
.br
.BR xdrrec_endofrecord (),
.br
.BR xdrrec_skiprecord (),
.br
.BR xdr_reference (),
.BR xdr_setpos (),
.br
.BR xdr_short (),
.BR xdrstdio_create (),
.br
.BR xdr_string (),
.BR xdr_u_char (),
.br
.BR xdr_u_int (),
.BR xdr_u_long (),
.br
.BR xdr_u_short (),
.BR xdr_union (),
.br
.BR xdr_vector (),
.BR xdr_void (),
.br
.BR xdr_wrapstring ()
T} Thread safety MT-Safe
.TE
.SH SEE ALSO
.BR rpc (3)
.LP