diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-18 11:57:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-30 19:11:36 +0200 |
commit | ea1edcd7da1a375ef7ccf8aa93b72827b518ad8e (patch) | |
tree | f7b56f954cbf62133ac38ae8e530e8634e1af002 /os-posix.c | |
parent | 63c4db4c2e6d221cecb5aafa365934bb05724cb4 (diff) |
vl: relocate paths to data directories
As an additional advantage, the logic is now unified between
POSIX and Win32 systems.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'os-posix.c')
-rw-r--r-- | os-posix.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/os-posix.c b/os-posix.c index 36e344c544..1de2839554 100644 --- a/os-posix.c +++ b/os-posix.c @@ -80,26 +80,6 @@ void os_setup_signal_handling(void) sigaction(SIGTERM, &act, NULL); } -/* - * Find a likely location for support files using the location of the binary. - * When running from the build tree this will be "$bindir/pc-bios". - * Otherwise, this is CONFIG_QEMU_DATADIR. - * - * The caller must use g_free() to free the returned data when it is - * no longer required. - */ -char *os_find_datadir(void) -{ - g_autofree char *dir = NULL; - - dir = g_build_filename(qemu_get_exec_dir(), "pc-bios", NULL); - if (g_file_test(dir, G_FILE_TEST_IS_DIR)) { - return g_steal_pointer(&dir); - } - - return g_strdup(CONFIG_QEMU_DATADIR); -} - void os_set_proc_name(const char *s) { #if defined(PR_SET_NAME) |