mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
Different changes following Robert's email 20091121230904.GA29740@thorin
This commit is contained in:
1 parent
ee99edc809
commit
0648f857ea
8 files changed
+107
-113
No files matched your search
+10
@@ -164,3 +164,13 @@ grub_file_seek (grub_file_t file, grub_off_t offset)
|
||||
file->offset = offset;
|
||||
return old;
|
||||
}
|
||||
|
||||
grub_ssize_t
|
||||
grub_file_pread (grub_file_t file, void *buf, grub_size_t len, grub_off_t offset)
|
||||
{
|
||||
if (grub_file_seek (file, offset) == (grub_off_t)-1)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return grub_file_read (file, buf, len);
|
||||
}
|
||||
Reference in new issue
Block a user