mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
loader: document that errno is set
Document that get_image_size sets errno on failure. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
7454e51d2b
commit
a1483f88b6
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,13 @@
|
||||||
#include "hw/nvram/fw_cfg.h"
|
#include "hw/nvram/fw_cfg.h"
|
||||||
|
|
||||||
/* loader.c */
|
/* 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 get_image_size(const char *filename);
|
||||||
int load_image(const char *filename, uint8_t *addr); /* deprecated */
|
int load_image(const char *filename, uint8_t *addr); /* deprecated */
|
||||||
int load_image_targphys(const char *filename, hwaddr,
|
int load_image_targphys(const char *filename, hwaddr,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue