FILE *
os_file_create_unique(const char *filename, int filemode);
+/*
+ * Duplicate a file descriptor, making sure not to keep it open after an exec*()
+ */
+int
+os_dupfd_cloexec(int fd);
+
/*
* Read a file.
* Returns a char* that the caller must free(), or NULL and sets errno.