]> git.dujemihanovic.xyz Git - u-boot.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)
commitb4467fae06e7c5b48635cd28e0b168b8508ad168
treec6bdb800ed5f2021484a0945388cc61922ff9702
parent79b3f367304dc743518200eb6b82556890c9ae05
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