xdr_restrict_buflen(9)

xdr_restrict_buflen9

Decrease available buffer space

Usage

int xdr_restrict_buflen(struct xdr_stream * xdr, int newbuflen);

Arguments

xdr

pointer to xdr_stream

newbuflen

new maximum number of bytes available

Overview

Adjust our idea of how much space is available in the buffer. If we've already used too much space in the buffer, returns -1. If the available space is already smaller than newbuflen, returns 0 and does nothing. Otherwise, adjusts xdr->buf->buflen to newbuflen and ensures xdr->end is set at most offset newbuflen from the start of the buffer.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.