diff options
Diffstat (limited to 'src/libtipidee/tipidee_fcgi_startwrite.c')
| -rw-r--r-- | src/libtipidee/tipidee_fcgi_startwrite.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_fcgi_startwrite.c b/src/libtipidee/tipidee_fcgi_startwrite.c new file mode 100644 index 0000000..12fd628 --- /dev/null +++ b/src/libtipidee/tipidee_fcgi_startwrite.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <skalibs/buffer.h> + +#include <tipidee/fcgi.h> + +void tipidee_fcgi_startwrite (tipidee_fcgi *fc, int fd, pid_t pid, tain const *deadline) +{ + buffer_init(&fc->b, &buffer_write, fd, fc->buf, 4096) ; + fc->deadline = *deadline ; + fc->id = pid & 0xffffu ; fc->id += !fc->id ; +} |
