File: ixp_srv_readbuf.3

package info (click to toggle)
libixp 0.6~20121202%2Bhg148-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 988 kB
  • sloc: ansic: 4,908; sh: 142; perl: 121; makefile: 111
file content (44 lines) | stat: -rw-r--r-- 1,094 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.TH "IXP_SRV_READBUF" 3 "2012 Dec" "libixp Manual"


.SH NAME

.P
ixp_srv_readbuf, ixp_srv_writebuf

.SH SYNOPSIS

.nf
#include <ixp_srvutil.h>

void ixp_srv_readbuf(Ixp9Req *req, char *buf, uint len);

void ixp_srv_writebuf(Ixp9Req *req, char **buf, uint *len, uint max);
.fi


.SH DESCRIPTION

.P
Utility functions for handling TRead and TWrite requests for
files backed by in\-memory buffers. For both functions, \fIbuf\fR
points to a buffer and \fIlen\fR specifies the length of the
buffer. In the case of ixp_srv_writebuf, these values add a
level of pointer indirection, and updates the values if they
change.

.P
If \fImax\fR has a value other than 0, ixp_srv_writebuf will
truncate any writes to that point in the buffer. Otherwise,
\fI*buf\fR is assumed to be malloc(3) allocated, and is
reallocated to fit the new data as necessary. The buffer is
is always left nul\-terminated.

.SH BUGS

.P
ixp_srv_writebuf always truncates its buffer to the end
of the most recent write.

.\" man code generated by txt2tags 2.6 (http://txt2tags.org)
.\" cmdline: txt2tags -o- ixp_srv_readbuf.man3