I assume glib has something along those lines
>> even though I haven't looked for it).
>
> Yes, there is g_path_get_basename (and g_path_get_dirname). Added to
> http://wiki.qemu.org/BiteSizedTasks#API_conversion.
>
> Paolo
--
Best regards,
Houcheng Lin
warning,
includes:
unistd.h for lockf() and related define
sys/uio.h for pread() and pwrite()
signal.h for sigtimedwait()
Signed-off-by: Houcheng Lin
---
configure | 14 --
default-configs/pci.mak| 2 +-
hw/i386/kvm/pci-assign.c |
2015-09-28 19:40 GMT+08:00 Paolo Bonzini :
>
>
> On 24/09/2015 15:21, Houcheng Lin wrote:
>> +if [ "$android" = "yes" ] ; then
>> + LIBS="-lglib-2.0 -lgthread-2.0 -lz -lpixman-1 -lintl -liconv -lc $LIBS"
>> + libs_qga="-lglib-2.0 -l
istd.h for lockf() and related define
sys/uio.h for pread() and pwrite()
signal.h for sigtimedwait()
Signed-off-by: Houcheng Lin
---
configure | 18 --
default-configs/pci.mak | 2 +-
hw/i386/kvm/pci-assign.c| 1 -
include/qemu/osdep.
Update these header files in your toolchain to prevent compilation warning,
includes:
unistd.h for lockf() and related define
sys/uio.h for pread() and pwrite()
signal.h for sigtimedwait()
Signed-off-by: Houcheng Lin
---
configure | 18 -
e(s);
> return fd;
>
> plus some error checking. Do Android systems have /dev/shm?
>
> Paolo
It's simple, thanks.
The android have no /dev/shm. Though we can mknod it but need root prividlege to
do it.
--
Best regards,
Houcheng Lin
st a tmpfs.
>
> Paolo
Oh, you are right. The android have shmget, shmat, shmdt functions in
their libc. The POSIX shm_open can built on top of these. I'll fix my
libc to support posix share memory functions.
--
Best regards,
Houcheng Lin
Hi Paolo,
(Please ignore the previous mail that did not include "qemu-devel")
Thanks for your review and suggestions. I'll fix this patch
accordingly and please see my replies below.
best regards,
Houcheng Lin
2015-09-15 17:41 GMT+08:00 Paolo Bonzini :
> This is ok
From: Houcheng
This patch is to build qemu in android ndk tool-chain, and has been tested in
both
x86_64 and x86 android platform with hardware virtualization enabled. This
patch is
composed of three part:
- configure scripts for android
- OS dependent code for android
- kernel hea