All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] osdep: Move qemu_{open,close}() prototypes
@ 2012-11-14 15:46 Andreas Färber
  2012-11-14 16:04 ` [Qemu-devel] [PATCH] osdep: Move qemu_{open, close}() prototypes Eduardo Habkost
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Färber @ 2012-11-14 15:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Färber, Eduardo Habkost

They are implemented in osdep.c, so keep the prototypes in osdep.h.

Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Cc: Eduardo Habkost <ehabkost@redhat.com>
---
 osdep.h       |    3 +++
 qemu-common.h |    2 --
 2 Dateien geändert, 3 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

diff --git a/osdep.h b/osdep.h
index 585e2c1..87d3b9c 100644
--- a/osdep.h
+++ b/osdep.h
@@ -136,6 +136,9 @@ void qemu_vfree(void *ptr);
 
 int qemu_madvise(void *addr, size_t len, int advice);
 
+int qemu_open(const char *name, int flags, ...);
+int qemu_close(int fd);
+
 #if defined(__HAIKU__) && defined(__i386__)
 #define FMT_pid "%ld"
 #elif defined(WIN64)
diff --git a/qemu-common.h b/qemu-common.h
index 9112e2d..cef264c 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -217,8 +217,6 @@ const char *path(const char *pathname);
 
 void *qemu_oom_check(void *ptr);
 
-int qemu_open(const char *name, int flags, ...);
-int qemu_close(int fd);
 ssize_t qemu_write_full(int fd, const void *buf, size_t count)
     QEMU_WARN_UNUSED_RESULT;
 ssize_t qemu_send_full(int fd, const void *buf, size_t count, int flags)
-- 
1.7.10.4

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

* Re: [Qemu-devel] [PATCH] osdep: Move qemu_{open, close}() prototypes
  2012-11-14 15:46 [Qemu-devel] [PATCH] osdep: Move qemu_{open,close}() prototypes Andreas Färber
@ 2012-11-14 16:04 ` Eduardo Habkost
  0 siblings, 0 replies; 2+ messages in thread
From: Eduardo Habkost @ 2012-11-14 16:04 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-devel

On Wed, Nov 14, 2012 at 04:46:07PM +0100, Andreas Färber wrote:
> They are implemented in osdep.c, so keep the prototypes in osdep.h.
> 
> Suggested-by: Igor Mammedov <imammedo@redhat.com>
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> Cc: Eduardo Habkost <ehabkost@redhat.com>

Acked-by: Eduardo Habkost <ehabkost@redhat.com>


> ---
>  osdep.h       |    3 +++
>  qemu-common.h |    2 --
>  2 Dateien geändert, 3 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)
> 
> diff --git a/osdep.h b/osdep.h
> index 585e2c1..87d3b9c 100644
> --- a/osdep.h
> +++ b/osdep.h
> @@ -136,6 +136,9 @@ void qemu_vfree(void *ptr);
>  
>  int qemu_madvise(void *addr, size_t len, int advice);
>  
> +int qemu_open(const char *name, int flags, ...);
> +int qemu_close(int fd);
> +
>  #if defined(__HAIKU__) && defined(__i386__)
>  #define FMT_pid "%ld"
>  #elif defined(WIN64)
> diff --git a/qemu-common.h b/qemu-common.h
> index 9112e2d..cef264c 100644
> --- a/qemu-common.h
> +++ b/qemu-common.h
> @@ -217,8 +217,6 @@ const char *path(const char *pathname);
>  
>  void *qemu_oom_check(void *ptr);
>  
> -int qemu_open(const char *name, int flags, ...);
> -int qemu_close(int fd);
>  ssize_t qemu_write_full(int fd, const void *buf, size_t count)
>      QEMU_WARN_UNUSED_RESULT;
>  ssize_t qemu_send_full(int fd, const void *buf, size_t count, int flags)
> -- 
> 1.7.10.4
> 

-- 
Eduardo

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

end of thread, other threads:[~2012-11-14 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-14 15:46 [Qemu-devel] [PATCH] osdep: Move qemu_{open,close}() prototypes Andreas Färber
2012-11-14 16:04 ` [Qemu-devel] [PATCH] osdep: Move qemu_{open, close}() prototypes Eduardo Habkost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.