|
@@ -199,23 +199,6 @@ int qemu_msync(void *addr, size_t length, int fd)
|
|
|
#endif /* CONFIG_POSIX */
|
|
|
}
|
|
|
|
|
|
-#ifndef _WIN32
|
|
|
-/* Sets a specific flag */
|
|
|
-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;
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
static int64_t suffix_mul(char suffix, int64_t unit)
|
|
|
{
|
|
|
switch (qemu_toupper(suffix)) {
|