[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] readconfig: add emulation of /dev/fd/ to platfo
From: |
ronnie sahlberg |
Subject: |
Re: [Qemu-devel] [PATCH] readconfig: add emulation of /dev/fd/ to platforms that that lacks this API |
Date: |
Tue, 20 Mar 2012 19:02:02 +1100 |
None.
No platforms that I care about.
On Tue, Mar 20, 2012 at 3:43 AM, Anthony Liguori <address@hidden> wrote:
> On 03/03/2012 01:49 AM, Ronnie Sahlberg wrote:
>>
>> Please find a patch to -readconfig.
>>
>> On many platforms -readconfig /dev/fd/<n> can be used to read from an
>> already opened and inherited filedescriptor<n>.
>>
>> On platforms that do not natively provide /dev/fd/<n>
>
>
> What platforms don't provide /dev/fd/<n> where fd passing makes sense?
>
> Regards,
>
> Anthony Liguori
>
>
>> add emulation of this by checking if the ofiginal fopen(path) failed, then
>> IF
>> the path starts with /dev/fd/ then try to read the descriptorvalue and
>> fdopen() it.
>>
>>
>> It means that we can use -readconfig /dev/fd/<n> on all platforms. On
>> those that provide a /dev/fd we just open that file. On those that do not we
>> emulate it.
>>
>>
>> regards
>> ronnie sahlberg
>>
>>
>