Commit 352257ca authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_relocate_fd): New function.

parent 4afbdbab
......@@ -98,6 +98,16 @@ extern void
isc_setabortfn(void (*abortfn)(const char * msg));
* Move a file descriptor FD the first unused file descriptor higher
* than LIMIT. Return the new file descriptor. Close FD.
* On failure, the old FD will be returned, and errno will be set.
* Do nothing (and return FD) if LIMIT is 0.
extern int
isc_relocate_fd(int fd, int limit);
#define ISC_XNEW(var) (var = isc_malloc(sizeof(*var)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment