From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [Qemu-devel] [RFC PATCH v4] os-android: Add support to android platform Date: Tue, 6 Oct 2015 15:22:09 +0200 Message-ID: <5613CB01.6020107@redhat.com> References: <1443847454-20406-1-git-send-email-houcheng@gmail.com> <20151006094713.GD19089@stefanha-thinkpad> <5613BAD6.9090605@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: peter.maydell@linaro.org, famz@redhat.com, kvm@vger.kernel.org, linhaocheng@itri.org.tw, qemu-devel@nongnu.org, alex.bennee@linaro.org To: Eric Blake , Stefan Hajnoczi , Houcheng Lin Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59633 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460AbbJFNWR (ORCPT ); Tue, 6 Oct 2015 09:22:17 -0400 In-Reply-To: <5613BAD6.9090605@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/10/2015 14:13, Eric Blake wrote: > > If you are already writing code to be ported to both Unixy and > windows systems, you are better off rolling your own alternative to > basename (or better, using something else that has already rolled a > portable version for you - while I know gnulib does that, we aren't > using gnulib; but 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