qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] loader: document that errno is set
@ 2014-02-05 20:05 Michael S. Tsirkin
  2014-02-05 20:03 ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2014-02-05 20:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell

Document that get_image_size sets errorno
on failure.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 include/hw/loader.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/hw/loader.h b/include/hw/loader.h
index 7a23d6b..91b0122 100644
--- a/include/hw/loader.h
+++ b/include/hw/loader.h
@@ -4,6 +4,13 @@
 #include "hw/nvram/fw_cfg.h"
 
 /* loader.c */
+/**
+ * get_image_size: retrieve size of an image file
+ * @filename: Path to the image file
+ *
+ * Returns the size of the image file on success, -1 otherwise.
+ * On error, errno is also set as appropriate.
+ */
 int get_image_size(const char *filename);
 int load_image(const char *filename, uint8_t *addr); /* deprecated */
 int load_image_targphys(const char *filename, hwaddr,
-- 
MST

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

end of thread, other threads:[~2014-02-05 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 20:05 [Qemu-devel] [PATCH] loader: document that errno is set Michael S. Tsirkin
2014-02-05 20:03 ` Eric Blake
2014-02-05 20:10   ` Michael S. Tsirkin

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