diff options
author | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2022-03-01 21:33:49 +0100 |
---|---|---|
committer | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2022-03-07 11:49:31 +0100 |
commit | 1983d8b0d6b013f025905c7d37e3f0261edc328b (patch) | |
tree | 70b64ffd40f8ecc9407e807f23052dbd0c8e5a04 /include | |
parent | 0fb1e19d78536e23b650ca72decdc29c98f2dcc1 (diff) | |
download | qemu-1983d8b0d6b013f025905c7d37e3f0261edc328b.zip qemu-1983d8b0d6b013f025905c7d37e3f0261edc328b.tar.gz qemu-1983d8b0d6b013f025905c7d37e3f0261edc328b.tar.bz2 |
9pfs: move qemu_dirent_dup() from osdep -> 9p-util
Function qemu_dirent_dup() is currently only used by 9pfs server, so move
it from project global header osdep.h to 9pfs specific header 9p-util.h.
Link: https://lore.kernel.org/qemu-devel/CAFEAcA_=HAUNomKD2wurSVaAHa5mrk22A1oHKLWUDjk7v6Khmg@mail.gmail.com/
Based-on: <20220227223522.91937-12-wwcohen@gmail.com>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <E1nP9Oz-00043L-KJ@lizzy.crudebyte.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/osdep.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 7bcce3b..650ba1a 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -673,19 +673,6 @@ static inline int platform_does_not_support_system(const char *command) } #endif /* !HAVE_SYSTEM_FUNCTION */ -/** - * Duplicate directory entry @dent. - * - * It is highly recommended to use this function instead of open coding - * duplication of @c dirent objects, because the actual @c struct @c dirent - * size may be bigger or shorter than @c sizeof(struct dirent) and correct - * handling is platform specific (see gitlab issue #841). - * - * @dent - original directory entry to be duplicated - * @returns duplicated directory entry which should be freed with g_free() - */ -struct dirent *qemu_dirent_dup(struct dirent *dent); - #ifdef __cplusplus } #endif |