qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 03/16] hw/9pfs: Replace the direct call to xxxdir() APIs w


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v5 03/16] hw/9pfs: Replace the direct call to xxxdir() APIs with a wrapper
Date: Mon, 6 Mar 2023 10:31:26 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 20/2/23 11:08, Bin Meng wrote:
From: Guohuai Shi <guohuai.shi@windriver.com>

xxxdir() APIs are not safe on Windows host. For future extension to
Windows, let's replace the direct call to xxxdir() APIs with a wrapper.

Signed-off-by: Guohuai Shi <guohuai.shi@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---

  hw/9pfs/9p-util.h  | 14 ++++++++++++++
  hw/9pfs/9p-local.c | 12 ++++++------
  2 files changed, 20 insertions(+), 6 deletions(-)


+#define qemu_opendir    opendir_win32
+#define qemu_closedir   closedir_win32
+#define qemu_readdir    readdir_win32
+#define qeme_rewinddir  rewinddir_win32

Typo :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]