| commit | 967dd0d48eb0f0c2bf57d58b887e691daea7bd1e | [log] [tgz] |
|---|---|---|
| author | Nico Huber <nico.h@gmx.de> | Sun Jul 09 15:51:08 2017 +0200 |
| committer | Nico Huber <nico.h@gmx.de> | Sun Aug 20 21:15:55 2017 +0000 |
| tree | ab589b49d2c2b00120dfb789095ca87f21a41a51 | |
| parent | a43b1ee1c5aba43291a994ada9886278976e4140 [diff] |
posix file: Add an `Offset` parameter and make `Len` optional Give Map() an `Offset` parameter that will be passed to mmap(). Make the `Len` parameter of Map() optional. If it's left at the default, `0`, map until the end of the file (up to SIZE_MAX bytes). Change-Id: I7b062ce1e9cddab87a66a2aedc8b64e4e8524d9f Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/20553 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>