GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       ixp_srv_readbuf, ixp_srv_writebuf


       #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);


       Utility  functions  for  handling  TRead  and TWrite requests for files
       backed by in-memory buffers. For both functions, buf points to a buffer
       and   len   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.

       If  max  has  a  value other than 0, ixp_srv_writebuf will truncate any
       writes to that point in the buffer. Otherwise, *buf 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.


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

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.256 seconds. Last modified: November 04 2018 12:49:43.