Name
ap_pfdopen — open a stream from a file descriptor with automatic cleanup
Synopsis
FILE *ap_pfdopen(pool *p, int fd, const char *mode)
Equivalent to fdopen()
, except that it ensures
the stream is closed when the pool is destroyed. Returns a pointer to
the new stream or NULL
on error.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.