Ixp_srv_writectl
#include <ixp_srvutil.h> char *ixp_srv_writectl(Ixp9Req *req, char *(*fn)(void *, IxpMsg *));
This utility function is meant to simplify the writing of pseudo files to which single-lined commands are written. In order to use this function, the aux member of req->fid must be nul or an IxpFileId(3). Each line of the written data is stripped of its trailing newline, nul-terminated, and stored in an IxpMsg(3). For each line thus prepared, fn is called with the IxpMsg pointer and the the p member of the IxpFileId.