mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 02:31:05 +00:00
Move OS-specific driver configuration to grub_util_fd_open. This
moves OS-dependent parts from kern/emu/hostdisk.c to grub-core/osdep/*/hostdisk.c.
This commit is contained in:
1 parent
f7676b7016
commit
caca1c70cf
13 files changed
+101
-93
No files matched your search
@@ -169,6 +169,13 @@ grub_util_fd_open (const char *dev, int flg)
|
||||
IPTR unit = 0;
|
||||
ULONG flags = 0;
|
||||
|
||||
#ifdef O_LARGEFILE
|
||||
flg |= O_LARGEFILE;
|
||||
#endif
|
||||
#ifdef O_BINARY
|
||||
flg |= O_BINARY;
|
||||
#endif
|
||||
|
||||
ret->off = 0;
|
||||
|
||||
if (dev[0] == '\0')
|
||||
@@ -479,12 +486,6 @@ grub_util_fd_sync (grub_util_fd_t fd)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
grub_hostdisk_configure_device_driver (grub_util_fd_t fd __attribute__ ((unused)))
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
grub_hostdisk_flush_initial_buffer (const char *os_dev __attribute__ ((unused)))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user