]> git.proxmox.com Git - qemu.git/blobdiff - qemu-common.h
Don't leak file descriptors
[qemu.git] / qemu-common.h
index 57af677f07ef2d92cdb188f0d1593c6c38b1e6d0..8630f8c41d991b392ed02d1e7c21b518d1ea7a8f 100644 (file)
@@ -159,6 +159,13 @@ void *get_mmap_addr(unsigned long size);
 void qemu_mutex_lock_iothread(void);
 void qemu_mutex_unlock_iothread(void);
 
+int qemu_open(const char *name, int flags, ...);
+void qemu_set_cloexec(int fd);
+
+#ifndef _WIN32
+int qemu_pipe(int pipefd[2]);
+#endif
+
 /* Error handling.  */
 
 void QEMU_NORETURN hw_error(const char *fmt, ...)