[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Make 9pfs buildable for Windows
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] Make 9pfs buildable for Windows |
Date: |
Fri, 29 Sep 2017 16:25:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 29/09/2017 16:14, Michael Fritscher wrote:
>> Yes, that's pretty much the only way to do it; it's not the easiest
>> thing because you have to use NT kernel APIs (NtCreateFile) rather than
>> e.g. CreateFile. Likewise for NtQueryAttributesFile,
>> NtQueryDirectoryObject, etc. NtOpenDirectoryObject. :(
>>
>> Paolo
>>
> Hi,
>
> why do I need the NT* functions instead of the "normal" ones from
> kernel32? And it was working even with the posix functions some time ago
> (Which I'll port to current qemu atm)
openat lets you create a file from a directory handle and relative path.
CreateFile doesn't let you do that, only the ntdll functions can.
Paolo
- [Qemu-devel] [PATCH 02/18] #include <sys/vfs.h> is not available under Windows., (continued)
- [Qemu-devel] [PATCH 02/18] #include <sys/vfs.h> is not available under Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 17/18] Compile fixes for Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 12/18] Buildfix in 9p-util.c., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 18/18] Enable 9pfs for Windows in configure / makefiles, Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 11/18] Sete ctx->xops to null on Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 10/18] dirent has no d_off on Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 13/18] fsetxattrat_nofollow doesn't seem to be defined on Windows - disable it., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 09/18] Dont initialize fields which aren't available on Windows., Michael Fritscher, 2017/09/29
- Re: [Qemu-devel] Make 9pfs buildable for Windows, Paolo Bonzini, 2017/09/29