]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/qemu/osdep.h
Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-09-16' into...
[mirror_qemu.git] / include / qemu / osdep.h
index e80fddd1e8c1408ca4b29337b24e745268788a18..dad44be043e9c63ef1a5ac65aeec2c7496e61aec 100644 (file)
@@ -497,10 +497,17 @@ int qemu_madvise(void *addr, size_t len, int advice);
 int qemu_mprotect_rwx(void *addr, size_t size);
 int qemu_mprotect_none(void *addr, size_t size);
 
-int qemu_open(const char *name, int flags, ...);
+/*
+ * Don't introduce new usage of this function, prefer the following
+ * qemu_open/qemu_create that take an "Error **errp"
+ */
+int qemu_open_old(const char *name, int flags, ...);
+int qemu_open(const char *name, int flags, Error **errp);
+int qemu_create(const char *name, int flags, mode_t mode, Error **errp);
 int qemu_close(int fd);
 int qemu_unlink(const char *name);
 #ifndef _WIN32
+int qemu_dup_flags(int fd, int flags);
 int qemu_dup(int fd);
 int qemu_lock_fd(int fd, int64_t start, int64_t len, bool exclusive);
 int qemu_unlock_fd(int fd, int64_t start, int64_t len);