qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH] os-android: Add support to android platform


From: Houcheng Lin
Subject: Re: [Qemu-devel] [RFC PATCH] os-android: Add support to android platform, built by ndk-r10
Date: Wed, 16 Sep 2015 17:54:46 +0800

2015-09-16 17:38 GMT+08:00 Paolo Bonzini <address@hidden>:
>
> Actually it's even simpler.  shm_open is basically just
>
>         char *s;
>         int fd;
>
>         asprintf(&s, "/dev/shm/%s", name);
>         fd = open(s, name | O_CLOEXEC, mode);
>         free(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



reply via email to

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