On 4/22/22 01:36, marcandre.lur...@redhat.com wrote:
+/* Sets a specific flag */
+static int fcntl_setfl(int fd, int flag)
+{
+int flags;
+
+flags = fcntl(fd, F_GETFL);
+if (flags == -1)
+return -errno;
+
+if (fcntl(fd, F_SETFL, flags | flag) == -1)
+return -errno;
From: Marc-André Lureau
It is only used by block/file-posix.c, move it there.
Signed-off-by: Marc-André Lureau
---
include/sysemu/os-posix.h | 2 --
block/file-posix.c| 15 +++
util/oslib-posix.c| 15 ---
3 files changed, 15 insertions(+), 17 deletions(