From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjSCF-0007rJ-2H for qemu-devel@nongnu.org; Tue, 06 Oct 2015 09:22:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjSCA-0005wx-58 for qemu-devel@nongnu.org; Tue, 06 Oct 2015 09:22:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjSCA-0005wc-0o for qemu-devel@nongnu.org; Tue, 06 Oct 2015 09:22:18 -0400 References: <1443847454-20406-1-git-send-email-houcheng@gmail.com> <20151006094713.GD19089@stefanha-thinkpad> <5613BAD6.9090605@redhat.com> From: Paolo Bonzini Message-ID: <5613CB01.6020107@redhat.com> Date: Tue, 6 Oct 2015 15:22:09 +0200 MIME-Version: 1.0 In-Reply-To: <5613BAD6.9090605@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v4] os-android: Add support to android platform List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Stefan Hajnoczi , Houcheng Lin Cc: peter.maydell@linaro.org, famz@redhat.com, kvm@vger.kernel.org, linhaocheng@itri.org.tw, qemu-devel@nongnu.org, alex.bennee@linaro.org 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