]> git.proxmox.com Git - grub2.git/log
grub2.git
10 years ago * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 00:48:19 +0000 (02:48 +0200)]
* grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
* grub-core/fs/ntfscomp.c (ntfscomp): ... here.

10 years ago * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 22:10:34 +0000 (00:10 +0200)]
* grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
variable length arrays.

Saves 50 bytes on compressed image.

10 years ago * grub-core/loader/i386/bsd.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 21:45:43 +0000 (23:45 +0200)]
* grub-core/loader/i386/bsd.c: Remove variable length arrays.

10 years ago * grub-core/fs/ufs.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 21:07:50 +0000 (23:07 +0200)]
* grub-core/fs/ufs.c: Remove variable length arrays.

10 years ago * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 16:48:06 +0000 (18:48 +0200)]
* grub-core/fs/ntfs.c: Add comment about fixed allocation size.

10 years ago * grub-core/fs/zfs.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 16:42:40 +0000 (18:42 +0200)]
* grub-core/fs/zfs.c: Remove variable length arrays.
Reduces zfs.mod by 160 bytes (208 compressed).

10 years ago * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 15:57:28 +0000 (17:57 +0200)]
* grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.

10 years ago * grub-core/net/arp.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 15:40:21 +0000 (17:40 +0200)]
* grub-core/net/arp.c: Remove variable length arrays.
* grub-core/net/bootp.c: Likewise.
* grub-core/net/dns.c: Likewise.
* grub-core/net/icmp6.c: Likewise.
* grub-core/net/net.c: Likewise.

10 years ago * grub-core/fs/ntfs.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 15:35:17 +0000 (17:35 +0200)]
* grub-core/fs/ntfs.c: Remove variable length arrays.
Increases ntfs.mod by 64 bytes (but decreases by 3 when
compressed).

10 years ago * grub-core/fs/hfs.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 15:24:19 +0000 (17:24 +0200)]
* grub-core/fs/hfs.c: Remove variable length arrays.
Reduces hfs.mod by 8 bytes (52 compressed).

10 years ago * grub-core/fs/udf.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 14:33:12 +0000 (16:33 +0200)]
* grub-core/fs/udf.c: Remove variable length arrays.
Increases udf.mod by 128 bytes (but decreases by 13 compressed when
compressed).

10 years ago * grub-core/fs/iso9660.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 14:21:02 +0000 (16:21 +0200)]
* grub-core/fs/iso9660.c: Remove variable length arrays.
Increases iso9660.mod by 200 bytes (but decreases by 79 compressed when
compressed).

10 years ago * grub-core/fs/nilfs2.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 14:17:41 +0000 (16:17 +0200)]
* grub-core/fs/nilfs2.c: Remove variable length arrays.
Increases xfs.mod by 24 bytes (but decreases by 115 compressed when
compressed).

10 years ago * grub-core/fs/xfs.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 13:52:27 +0000 (15:52 +0200)]
* grub-core/fs/xfs.c: Remove variable length arrays.
Reduces xfs.mod by 40 bytes (43 compressed).

10 years ago * grub-core/fs/fshelp.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 13:38:37 +0000 (15:38 +0200)]
* grub-core/fs/fshelp.c: Remove variable length arrays.
Reduces fshelp.mod by 116 bytes (23 compressed).

10 years ago * grub-core/normal/completion.c: Remove variable length arrays.
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 11:55:35 +0000 (13:55 +0200)]
* grub-core/normal/completion.c: Remove variable length arrays.
* grub-core/normal/menu_entry.c: Likewise.

Reduces normal.mod by 496 bytes.

10 years ago * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 11:26:37 +0000 (13:26 +0200)]
* grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
by 356 bytes (158 compressed).

10 years ago * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 11:20:12 +0000 (13:20 +0200)]
* grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
by 364 bytes (169 compressed).

10 years ago * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
Vladimir 'phcoder' Serbinenko [Sun, 20 Oct 2013 11:11:40 +0000 (13:11 +0200)]
* grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
* include/grub/types.h (grub_unaligned_uint64_t): New type.

10 years ago Lift 255x255 erminal sie restriction to 65535x65535. Also change from
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 21:59:32 +0000 (23:59 +0200)]
Lift 255x255 erminal sie restriction to 65535x65535. Also change from
bitmasks to small structures of size chosen to fit in registers.

10 years ago * conf/Makefile.common: Use -freg-struct-return on i386. This
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 21:56:59 +0000 (23:56 +0200)]
* conf/Makefile.common: Use -freg-struct-return on i386. This
decreases code size and improves performance.

10 years ago * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 21:53:48 +0000 (23:53 +0200)]
* grub-core/osdep/unix/exec.c: Fix compilation error on emu.

10 years ago * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 21:52:09 +0000 (23:52 +0200)]
* grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
"(null)" string.
Simplify expressions to save around 256 bytes in kernel.img.
* tests/printf_unit_test.c (printf_test): Add "(null)" tests.

10 years ago * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 21:48:24 +0000 (23:48 +0200)]
* grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
Use GRUB_UTIL_FD_O_* rather than O_*.

10 years ago Add haiku-specific functions.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 14:39:38 +0000 (16:39 +0200)]
Add haiku-specific functions.

10 years ago * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 14:32:28 +0000 (16:32 +0200)]
* grub-core/kern/emu/hostdisk.c: Remove few leftover includes.

10 years ago Move stat () and device mode checking into OS-dependent files as
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 14:29:20 +0000 (16:29 +0200)]
Move stat () and device mode checking into OS-dependent files as
long as performance doesn't suffer.

10 years ago Split make_system_path_relative_to_its_root into separate file
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 14:21:08 +0000 (16:21 +0200)]
Split make_system_path_relative_to_its_root into separate file
relpath.c from getroot.c as it's common between unix and haiku
but otherwise haiku doesn't use any functions from unix getroot.c.

10 years ago * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 14:14:30 +0000 (16:14 +0200)]
* grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
New function.
(grub_util_is_special_file): Likewise.

10 years ago * grub-core/osdep/unix/getroot.c: Move exec functions to ...
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:56:40 +0000 (02:56 +0200)]
* grub-core/osdep/unix/getroot.c: Move exec functions to ...
* osdep/unix/exec.c: ... here. Add few additional exec_* variants.

10 years ago * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:42:40 +0000 (02:42 +0200)]
* grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
grub_size_t. This fixes the case when size_t mismatches grub_size_t.

10 years ago * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:39:06 +0000 (02:39 +0200)]
* util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
(load_image): Likewise.

10 years ago * util/grub-render-label.c: Move backend part to ...
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:37:01 +0000 (02:37 +0200)]
* util/grub-render-label.c: Move backend part to ...
* util/render-label.c: ... here.

10 years ago * util/grub-render-label.c: Move backend part to ...
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:34:18 +0000 (02:34 +0200)]
* util/grub-render-label.c: Move backend part to ...
* util/render-label.c: ... here.

10 years ago * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:30:05 +0000 (02:30 +0200)]
* grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).

10 years ago * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:24:40 +0000 (02:24 +0200)]
* grub-core/osdep/generic/blocklist.c: Add missing include to string.h.

10 years ago * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:23:08 +0000 (02:23 +0200)]
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
CD-ROM in case when it's declared as having subpartitions.

10 years ago Don't add -lm on haiku.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:20:21 +0000 (02:20 +0200)]
Don't add -lm on haiku.

* configure.ac: Define BUILD_LIBM to -lm on most platforms
and empty on haiku.
* grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
-lm.

10 years ago * configure.ac: Use -melf_*_haiku as target on haiku.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:15:35 +0000 (02:15 +0200)]
* configure.ac: Use -melf_*_haiku as target on haiku.

10 years ago * Makefile.util.def: Add util/setup.c to extra_dist.
Vladimir 'phcoder' Serbinenko [Sat, 19 Oct 2013 00:12:06 +0000 (02:12 +0200)]
* Makefile.util.def: Add util/setup.c to extra_dist.

10 years ago * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 23:01:36 +0000 (01:01 +0200)]
* grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
unknown types through.

10 years ago * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 22:51:08 +0000 (00:51 +0200)]
* grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
(grub_util_check_char_device): Likewise.
* include/grub/emu/getroot.h: Likewise.

10 years ago * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 15:18:15 +0000 (17:18 +0200)]
* grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
memset rather than inline static function.

10 years ago * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 15:13:38 +0000 (17:13 +0200)]
* grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
not doing embedded decompressor.

10 years ago * grub-core/disk/ldm.c: Rename variables and arguments to prevent
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:54:57 +0000 (16:54 +0200)]
* grub-core/disk/ldm.c: Rename variables and arguments to prevent
shadowing.
* grub-core/kern/disk.c: Likewise.
* grub-core/kern/misc.c: Likewise.
* include/grub/parser.h: Likewise.
* include/grub/script_sh.h: Likewise.
* include/grub/zfs/zfs.h: Likewise.

10 years ago * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:51:08 +0000 (16:51 +0200)]
* grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.

10 years ago * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:49:17 +0000 (16:49 +0200)]
* grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
defined before trying to use it.

10 years ago * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:47:30 +0000 (16:47 +0200)]
* grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
warning.

10 years ago * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:41:50 +0000 (16:41 +0200)]
* include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
Use __unused__ rather than __used__ on gcc < 3.2.

10 years ago * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:38:36 +0000 (16:38 +0200)]
* include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
gcc < 4.0.
* include/grub/*/setjmp.h: USe RETURNS_TWICE.

10 years ago * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:36:09 +0000 (16:36 +0200)]
* grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".

10 years ago * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:34:18 +0000 (16:34 +0200)]
* include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
* include/grub/emu/misc.h: Likewise.

10 years ago * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
Vladimir 'phcoder' Serbinenko [Fri, 18 Oct 2013 14:30:30 +0000 (16:30 +0200)]
* grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
cur_color.

10 years ago * grub-core/tests/checksums.h: Regenerated due to progress bar
Vladimir Testov [Fri, 18 Oct 2013 12:11:48 +0000 (16:11 +0400)]
   * grub-core/tests/checksums.h: Regenerated due to progress bar
       get_minimal_size changes.

10 years ago Added `tr' command support.
BVK Chaitanya [Thu, 17 Oct 2013 17:06:29 +0000 (19:06 +0200)]
Added `tr' command support.

* grub-core/commands/tr.c: New file.
* grub-core/Makefile.core.def: Build rules for new module.

* tests/grub_cmd_tr.in: New test.
* Makefile.util.def: Build rules for new test.

10 years ago * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
Vladimir Testov [Thu, 17 Oct 2013 11:50:25 +0000 (15:50 +0400)]
   * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.

10 years ago * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
Vladimir Testov [Thu, 17 Oct 2013 11:42:49 +0000 (15:42 +0400)]
   * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
       * docs/gurb.texi: Likewise.

10 years ago * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
Vladimir Testov [Thu, 17 Oct 2013 11:34:04 +0000 (15:34 +0400)]
    * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
        Pixmap highlighted section with east and west slices was displayed
        incorrectly due to negative width of the central slice.

10 years ago * docs/grub.texi: Graphical options information update.
Vladimir Testov [Thu, 17 Oct 2013 11:07:09 +0000 (15:07 +0400)]
    * docs/grub.texi: Graphical options information update.
        Removed outdated. Updated current. Inserted missed.

10 years ago * docs/grub.texi: Mention few new platform-specific commands.
Vladimir 'phcoder' Serbinenko [Wed, 16 Oct 2013 23:52:44 +0000 (01:52 +0200)]
* docs/grub.texi: Mention few new platform-specific commands.

10 years ago * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
Vladimir 'phcoder' Serbinenko [Wed, 16 Oct 2013 23:28:24 +0000 (01:28 +0200)]
* grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
currently used so this doesn't really have any effect.
Reported by:   Douglas Ray <dougray>

10 years ago * util/grub-mkstandalone.in: Remove needless copying since we already
Vladimir 'phcoder' Serbinenko [Wed, 16 Oct 2013 23:12:22 +0000 (01:12 +0200)]
* util/grub-mkstandalone.in: Remove needless copying since we already
pass the files to tar.

10 years ago * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
Vladimir 'phcoder' Serbinenko [Wed, 16 Oct 2013 23:09:19 +0000 (01:09 +0200)]
* autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
compilation but prevents gcc from displaying messages in non-Latin
alphabets.
* conf/Makefile.common: Likewise.

10 years ago Handle Japanese special keys.
Hiroyuki YAMAMORI [Wed, 16 Oct 2013 22:49:05 +0000 (00:49 +0200)]
Handle Japanese special keys.
Reported by: Hiroyuki YAMAMORI.
Codes supplied by: Hiroyuki YAMAMORI.

10 years ago * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
Vladimir Testov [Tue, 15 Oct 2013 14:16:06 +0000 (18:16 +0400)]
   * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.

10 years ago * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
Vladimir Testov [Tue, 15 Oct 2013 14:12:39 +0000 (18:12 +0400)]
   * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
       * docs/grub.texi: Likewise.

10 years ago * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 22:20:07 +0000 (00:20 +0200)]
* grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
value in case of incomplete read.
(grub_util_fd_write): Likewise.

10 years ago * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 19:25:18 +0000 (21:25 +0200)]
* util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.

10 years ago * util/grub-editenv.c (create_envblk_file): More from here ...
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 19:23:54 +0000 (21:23 +0200)]
* util/grub-editenv.c (create_envblk_file): More from here ...
* util/editenv.c (grub_util_create_envblk_file): ... to here.

10 years ago * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 19:04:10 +0000 (21:04 +0200)]
* grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
canonicalize file name before doing the rest.

10 years ago * include/grub/osdep/hostfile_windows.h: Add missing ftello for
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 18:32:07 +0000 (20:32 +0200)]
* include/grub/osdep/hostfile_windows.h: Add missing ftello for
mingw32.

10 years ago Define grub_util_is_directory/regular/special_file and
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 18:27:58 +0000 (20:27 +0200)]
Define grub_util_is_directory/regular/special_file and
use OS-dependent versions rather than to rely on stat().

10 years ago * util/grub-mkimage.c: Move backend part to ...
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 17:14:55 +0000 (19:14 +0200)]
* util/grub-mkimage.c: Move backend part to ...
* util/mkimage.c: ... here.

10 years ago Allow compilation with mingw64 albeit with warnings due to lack of
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 16:03:19 +0000 (18:03 +0200)]
Allow compilation with mingw64 albeit with warnings due to lack of
%llx/%llu.

* grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
* grub-core/lib/posix_wrap/wchar.h: Define wint_t.
* grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
* include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
on mingw64.
* include/grub/types.h: Allow sizeof (long) != sizeof (void *).

10 years ago Remove leftover references to some of the system headers.
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 15:59:54 +0000 (17:59 +0200)]
Remove leftover references to some of the system headers.

10 years ago * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 15:55:20 +0000 (17:55 +0200)]
* grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
read.

10 years ago * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 15:52:43 +0000 (17:52 +0200)]
* grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
of strerror.

10 years ago Split out blocklist retrieving from setup.c to
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 15:02:26 +0000 (17:02 +0200)]
Split out blocklist retrieving from setup.c to
grub-core/osdep/blocklist.c and add windows implementation since
generic version doesn't work on NTFS on Windows due to aggressive
unflushable cache.

10 years ago Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 14:16:04 +0000 (16:16 +0200)]
Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
files.

10 years ago * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 13:14:58 +0000 (15:14 +0200)]
* grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
Cut tailing newline. Remove arbitrary limitation. Always use
grub_util_tchar_to_utf8.

10 years ago * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 13:12:15 +0000 (15:12 +0200)]
* grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
* tests/printf_unit_test.c (printf_test): Add %% tests.
Reported by: Paulo Flabiano Smorigo.

10 years ago * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 13:06:20 +0000 (15:06 +0200)]
* grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
implement fsync.

10 years ago * configure.ac: Check for nvlist_lookup_string in nvpair since we
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 13:01:01 +0000 (15:01 +0200)]
* configure.ac: Check for nvlist_lookup_string in nvpair since we
use nvlist_lookup_string and don't use nvlist_print.

10 years ago Add wrappers around rename, unlink, mkdir, opendir, readdir and
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 12:11:34 +0000 (14:11 +0200)]
Add wrappers around rename, unlink, mkdir, opendir, readdir and
closedir to handle filename charset translation.

10 years ago * include/grub/emu/hostdisk.h: Move file operations to
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 11:56:10 +0000 (13:56 +0200)]
* include/grub/emu/hostdisk.h: Move file operations to
* include/grub/emu/hostfile.h: ... here.

10 years ago * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 11:34:03 +0000 (13:34 +0200)]
* grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
unicode path.

10 years agoIgnore build-aux/test-driver
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 11:29:34 +0000 (13:29 +0200)]
Ignore build-aux/test-driver

10 years ago * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 11:28:19 +0000 (13:28 +0200)]
* grub-core/tests/checksums.h: Regenerate due to swiss.sed change.

10 years ago Move cpu time retrieval to separate grub_util_get_cpu_time_ms
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 11:13:53 +0000 (13:13 +0200)]
Move cpu time retrieval to separate grub_util_get_cpu_time_ms
and remove export.h.

10 years ago * grub-core/kern/emu/error.c: Removed.
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 10:46:06 +0000 (12:46 +0200)]
* grub-core/kern/emu/error.c: Removed.
* grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
explicitly as it's already in libgnu.a.

10 years ago * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 10:43:52 +0000 (12:43 +0200)]
* grub-core/osdep/windows/emuconsole.c: Add missing config.h and
config-util.h include.

10 years ago Split emunet into platform-dependent and GRUB-binding parts. Keep
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 09:55:20 +0000 (11:55 +0200)]
Split emunet into platform-dependent and GRUB-binding parts. Keep
platform-dependent part in kernel for easy access to OS functions.

10 years ago * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
Vladimir 'phcoder' Serbinenko [Tue, 15 Oct 2013 09:06:57 +0000 (11:06 +0200)]
* grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
open/read/write.

10 years ago * grub-core/osdep/windows/emuconsole.c: New file.
Vladimir 'phcoder' Serbinenko [Mon, 14 Oct 2013 19:33:55 +0000 (21:33 +0200)]
* grub-core/osdep/windows/emuconsole.c: New file.

10 years ago * conf/Makefile.extra-dist: Add osdep/*/init.c
Andrey Borzenkov [Mon, 14 Oct 2013 17:03:14 +0000 (21:03 +0400)]
* conf/Makefile.extra-dist: Add osdep/*/init.c

10 years ago * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
Vladimir 'phcoder' Serbinenko [Mon, 14 Oct 2013 16:29:57 +0000 (18:29 +0200)]
* Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.

10 years ago * util/grub-probe.c (probe): Separate different drives in hint-str
Vladimir 'phcoder' Serbinenko [Mon, 14 Oct 2013 16:27:29 +0000 (18:27 +0200)]
* util/grub-probe.c (probe): Separate different drives in hint-str
by spaces and not newlines.
* util/grub-mkconfig_lib.in: Handle multidevice filesystem.

10 years ago * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
Andrey Borzenkov [Mon, 14 Oct 2013 15:06:39 +0000 (17:06 +0200)]
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
Handle CD-ROMs.

10 years ago Pass-through unknown E820 types. It required reorganisation of mmap
Vladimir 'phcoder' Serbinenko [Mon, 14 Oct 2013 14:33:44 +0000 (16:33 +0200)]
Pass-through unknown E820 types. It required reorganisation of mmap
module.

10 years ago * Makefile.util.def: Add osdep/init.c to grub-mount files.
Andrey Borzenkov [Mon, 14 Oct 2013 11:21:51 +0000 (15:21 +0400)]
* Makefile.util.def: Add osdep/init.c to grub-mount files.