qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] v6 revamp acpitable parsing and allow to specif


From: Michael Tokarev
Subject: Re: [Qemu-devel] [PATCH] v6 revamp acpitable parsing and allow to specify complete (headerful) table
Date: Thu, 17 Jan 2013 14:49:50 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/17.0 Icedove/17.0

Wow you're replying to an old post... ;)

17.01.2013 13:50, TeLeMan wrote:
On Thu, May 12, 2011 at 10:44 PM, Michael Tokarev <address@hidden> wrote:
This patch almost rewrites acpi_table_add() function
[]
+
+    /* now read in the data files, reallocating buffer as needed */
+
+    for (f = strtok(buf, ":"); f; f = strtok(NULL, ":")) {
+        int fd = open(f, O_RDONLY);

The acpi table is the binary file, so it should be opened by O_RDONLY
| O_BINARY.

On Unix, O_BINARY is defined as 0, it has no effect whatsoever.
But yes it is a bug on other platforms.  I'll fix that in a moment.

Thanks,

/mnt



reply via email to

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