]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Add a way to find the size of a file
authorSimon Glass <sjg@chromium.org>
Thu, 19 Aug 2021 03:40:30 +0000 (21:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 16 Sep 2021 17:19:25 +0000 (13:19 -0400)
commit75bcd18e5fbfdc43c49dffc48fb465e10becd12c
treec6bdb800ed5f2021484a0945388cc61922ff9702
parent9d774ff7c1cca4cf8241ae597065220738612663
sandbox: Add a way to find the size of a file

Add a function to return the size of a file. This is useful in situations
where we need to allocate memory for it before reading it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
arch/sandbox/cpu/os.c
include/os.h