'\" t .\" Title: xdr_stream_decode_string_dup .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "XDR_STREAM_DECODE_ST" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" xdr_stream_decode_string_dup \- Decode and duplicate variable length string .SH "SYNOPSIS" .HP \w'ssize_t\ xdr_stream_decode_string_dup('u .BI "ssize_t xdr_stream_decode_string_dup(struct\ xdr_stream\ *\ " "xdr" ", char\ **\ " "str" ", size_t\ " "maxlen" ", gfp_t\ " "gfp_flags" ");" .SH "ARGUMENTS" .PP \fIstruct xdr_stream * xdr\fR .RS 4 pointer to xdr_stream .RE .PP \fIchar ** str\fR .RS 4 location to store pointer to string .RE .PP \fIsize_t maxlen\fR .RS 4 maximum acceptable string length .RE .PP \fIgfp_t gfp_flags\fR .RS 4 GFP mask to use .RE .SH "DESCRIPTION" .PP Return values: On success, returns length of NUL\-terminated string stored in *\fIptr\fR \fB\-EBADMSG\fR on XDR buffer overflow \fB\-EMSGSIZE\fR if the size of the string would exceed \fImaxlen\fR \fB\-ENOMEM\fR on memory allocation failure .SH "COPYRIGHT" .br