qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] readconfig: add emulation of /dev/fd/ to platforms that that lacks this API
@ 2012-03-03  7:57 Ronnie Sahlberg
  2012-03-03  7:57 ` [Qemu-devel] [PATCH] READCONFIG: allow /dev/fd/ the file to use for --readconfig Ronnie Sahlberg
  0 siblings, 1 reply; 3+ messages in thread
From: Ronnie Sahlberg @ 2012-03-03  7:57 UTC (permalink / raw)
  To: qemu-devel, kwolf


Resending the patch with the strncmp() bug fixed.

Its been a long long week when you mess up something as simple as this.


regards
ronnie sahlberg

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH] readconfig: add emulation of /dev/fd/ to platforms that that lacks this API
@ 2012-03-03  7:49 Ronnie Sahlberg
  2012-03-03  7:49 ` [Qemu-devel] [PATCH] READCONFIG: allow /dev/fd/ the file to use for --readconfig Ronnie Sahlberg
  0 siblings, 1 reply; 3+ messages in thread
From: Ronnie Sahlberg @ 2012-03-03  7:49 UTC (permalink / raw)
  To: qemu-devel, kwolf


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> 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-03  7:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-03  7:57 [Qemu-devel] [PATCH] readconfig: add emulation of /dev/fd/ to platforms that that lacks this API Ronnie Sahlberg
2012-03-03  7:57 ` [Qemu-devel] [PATCH] READCONFIG: allow /dev/fd/ the file to use for --readconfig Ronnie Sahlberg
  -- strict thread matches above, loose matches on Subject: below --
2012-03-03  7:49 [Qemu-devel] [PATCH] readconfig: add emulation of /dev/fd/ to platforms that that lacks this API Ronnie Sahlberg
2012-03-03  7:49 ` [Qemu-devel] [PATCH] READCONFIG: allow /dev/fd/ the file to use for --readconfig Ronnie Sahlberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).