]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
11 years agoMore efficient retrieval of file size phcoder/filesize
Vladimir Serbinenko [Sun, 27 Oct 2013 16:24:35 +0000 (17:24 +0100)] 
More efficient retrieval of file size

11 years ago Move grub_disk_write out of kernel into disk.mod.
Vladimir Serbinenko [Sun, 27 Oct 2013 14:44:55 +0000 (15:44 +0100)] 
Move grub_disk_write out of kernel into disk.mod.

11 years ago * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
Vladimir Serbinenko [Sun, 27 Oct 2013 13:47:04 +0000 (14:47 +0100)] 
* grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
handling.

11 years ago * grub-core/kern/misc.c (grub_abort): Make static
Vladimir Serbinenko [Sun, 27 Oct 2013 13:13:39 +0000 (14:13 +0100)] 
* grub-core/kern/misc.c (grub_abort): Make static

11 years ago * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
Vladimir Serbinenko [Sun, 27 Oct 2013 12:34:46 +0000 (13:34 +0100)] 
* grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
transform invalid unicode codepoints.

11 years ago * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
Vladimir Serbinenko [Sun, 27 Oct 2013 12:20:50 +0000 (13:20 +0100)] 
* grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
\0 checking.

11 years agoRevert " * util/grub-mkstandalone.in: Remove needless copying since we already"
Vladimir Serbinenko [Sun, 27 Oct 2013 11:22:52 +0000 (12:22 +0100)] 
Revert " * util/grub-mkstandalone.in: Remove needless copying since we already"

The copying in question was needed.

This reverts commit 8154884dd4ee8e1134ca5124ab786173dee279ad.

11 years ago * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
Vladimir Serbinenko [Sun, 27 Oct 2013 00:50:31 +0000 (02:50 +0200)] 
* grub-core/lib/legacy_parse.c: Add support for "nd" disk.

11 years ago Consolidate cpuid code.
Vladimir Serbinenko [Sat, 26 Oct 2013 22:02:01 +0000 (00:02 +0200)] 
Consolidate cpuid code.

11 years ago Move cpuid code to cpuid.h and TSC code to tsc.c.
Vladimir Serbinenko [Sat, 26 Oct 2013 21:39:10 +0000 (23:39 +0200)] 
Move cpuid code to cpuid.h and TSC code to tsc.c.

11 years ago * util/grub.d/00_header.in: Don't use LANG if it's not set.
Grégoire Sutre [Sat, 26 Oct 2013 18:11:55 +0000 (20:11 +0200)] 
* util/grub.d/00_header.in: Don't use LANG if it's not set.

11 years agoMissing Changelog entry
Grégoire Sutre [Sat, 26 Oct 2013 18:06:24 +0000 (20:06 +0200)] 
Missing Changelog entry

11 years ago * util/grub-mkconfig.in: Replace $0 with $self.
Grégoire Sutre [Sat, 26 Oct 2013 18:05:29 +0000 (20:05 +0200)] 
* util/grub-mkconfig.in: Replace $0 with $self.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.

11 years ago * docs/osdetect.cfg: New file.
BVK Chaitanya [Sat, 26 Oct 2013 16:39:03 +0000 (18:39 +0200)] 
* docs/osdetect.cfg: New file.

11 years ago * tests/util/grub-shell.in: Add new --debug option.
BVK Chaitanya [Sat, 26 Oct 2013 13:01:28 +0000 (15:01 +0200)] 
* tests/util/grub-shell.in: Add new --debug option.

11 years ago * tests/test_unset.in: New test.
BVK Chaitanya [Sat, 26 Oct 2013 12:52:54 +0000 (14:52 +0200)] 
* tests/test_unset.in: New test.

11 years ago * tests/test_sha512sum.in: New test.
BVK Chaitanya [Sat, 26 Oct 2013 12:35:35 +0000 (14:35 +0200)] 
* tests/test_sha512sum.in: New test.

11 years ago * grub-core/fs/iso9660.c: Replace strncat with memcpy.
Vladimir Serbinenko [Sat, 26 Oct 2013 10:49:51 +0000 (12:49 +0200)] 
* grub-core/fs/iso9660.c: Replace strncat with memcpy.
* include/grub/misc.h: Remove strncat.
* grub-core/lib/posix_wrap/string.h: Likewise.

11 years agoMissing Changelog entry
Vladimir Serbinenko [Sat, 26 Oct 2013 00:48:55 +0000 (02:48 +0200)] 
Missing Changelog entry

11 years ago * tests/date_unit_test.c: New test.
Vladimir Serbinenko [Sat, 26 Oct 2013 00:48:19 +0000 (02:48 +0200)] 
* tests/date_unit_test.c: New test.

11 years ago * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
Vladimir Serbinenko [Sat, 26 Oct 2013 00:47:40 +0000 (02:47 +0200)] 
* grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
of first three years after start of validity of unixtime.

11 years ago * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
Vladimir Serbinenko [Fri, 25 Oct 2013 23:01:06 +0000 (01:01 +0200)] 
* grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
division as the one making more sense.
(update_screen): Likewise.
(complete): Likewise.

11 years ago * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
Vladimir Serbinenko [Fri, 25 Oct 2013 22:07:59 +0000 (00:07 +0200)] 
* grub-core/normal/menu_entry.c (complete): Make sure that width is >0.

11 years ago Make char and string width grub_size_t rather than grub_ssize_t.
Vladimir Serbinenko [Fri, 25 Oct 2013 21:58:24 +0000 (23:58 +0200)] 
Make char and string width grub_size_t rather than grub_ssize_t.

11 years ago * grub-core/normal/cmdline.c (grub_history_get): Make argument into
Vladimir Serbinenko [Fri, 25 Oct 2013 20:58:19 +0000 (22:58 +0200)] 
* grub-core/normal/cmdline.c (grub_history_get): Make argument into
unsigned.
(grub_history_replace): Likewise.

11 years ago * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
Vladimir Serbinenko [Fri, 25 Oct 2013 20:51:03 +0000 (22:51 +0200)] 
* grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
appropriate.

11 years ago * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
Vladimir Serbinenko [Fri, 25 Oct 2013 19:39:00 +0000 (21:39 +0200)] 
* grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
appropriate.

11 years ago * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
Vladimir Serbinenko [Fri, 25 Oct 2013 19:35:44 +0000 (21:35 +0200)] 
* grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
Use unsigned divisions rather than signed variants.

11 years ago * grub-core/video/readers/png.c (grub_png_convert_image): Use
Vladimir Serbinenko [Fri, 25 Oct 2013 18:36:39 +0000 (20:36 +0200)] 
* grub-core/video/readers/png.c (grub_png_convert_image): Use
unsigned arithmetics.
Add missing break.

11 years ago * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
Vladimir Serbinenko [Fri, 25 Oct 2013 18:35:02 +0000 (20:35 +0200)] 
* grub-core/video/readers/jpeg.c: Use unsigned where appropriate.

11 years ago * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
Vladimir Serbinenko [Fri, 25 Oct 2013 18:31:04 +0000 (20:31 +0200)] 
* grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
rather than signed one.
(recovery): Likewise.

11 years ago * grub-core/net/dns.c (hash): Use unsigned arithmetic.
Vladimir Serbinenko [Fri, 25 Oct 2013 18:26:27 +0000 (20:26 +0200)] 
* grub-core/net/dns.c (hash): Use unsigned arithmetic.

11 years ago * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
Vladimir Serbinenko [Fri, 25 Oct 2013 18:18:30 +0000 (20:18 +0200)] 
* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
than signed.

11 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/grub
Vladimir Serbinenko [Fri, 25 Oct 2013 17:48:24 +0000 (19:48 +0200)] 
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub

11 years ago * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
Vladimir Serbinenko [Fri, 25 Oct 2013 16:03:36 +0000 (18:03 +0200)] 
* grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.

11 years ago * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
Vladimir Serbinenko [Fri, 25 Oct 2013 16:02:40 +0000 (18:02 +0200)] 
* grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
than int.

11 years agoDocumentation cleanup in response to ML discussion.
Jon McCune [Fri, 25 Oct 2013 15:31:36 +0000 (08:31 -0700)] 
Documentation cleanup in response to ML discussion.

 [v0] Accepted with modifications by phcoder@
 [v1] Introduce subsections within Security
 [v1] Correct errors regarding public key files not being automatically signature-checked in trust and verify_detached
 [v1] Replace check_signatures=enforce with check_signatures set to enforce
 [v1] Move detailed discussion of using signatures out of check_signatures environment variable description
 [v1] Use long form for option flags to security-relevant commands
 [v2] Explain the key fingerprint format for distrust and list_trusted.
 [v2] Eliminates references to grub-mkimage and UEFI Secure Boot.
 [v3] Updates in response to addition of --skip-sig to trust and verify_detached
 [  ] Restore @xref for cross-references at the start of sentences

11 years ago * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
Vladimir Serbinenko [Fri, 25 Oct 2013 14:07:01 +0000 (16:07 +0200)] 
* conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
* include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
functions when compiling for kernel.

11 years ago * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
Vladimir Serbinenko [Fri, 25 Oct 2013 13:22:30 +0000 (15:22 +0200)] 
* grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
unsigned long long when using %llu.

11 years ago * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
Vladimir Serbinenko [Fri, 25 Oct 2013 09:57:36 +0000 (11:57 +0200)] 
* grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
terminal after updating progress.

11 years ago * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
Vladimir Serbinenko [Fri, 25 Oct 2013 09:03:39 +0000 (11:03 +0200)] 
* grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
argument. We don't disable Gate A20 in this code.

11 years ago * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
Vladimir Serbinenko [Fri, 25 Oct 2013 08:51:58 +0000 (10:51 +0200)] 
* grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
Conceptually based on change in branch "vbe-on-coreboot".

11 years ago * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
Robert Millan [Thu, 24 Oct 2013 06:53:04 +0000 (08:53 +0200)] 
* grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
numeric constants with their symbolic equivalent.
Taken from branch "vbe-on-coreboot".

11 years ago * docs/grub.texi: Fix ordering and use pxref rather than xref.
Vladimir Serbinenko [Wed, 23 Oct 2013 15:54:28 +0000 (17:54 +0200)] 
* docs/grub.texi: Fix ordering and use pxref rather than xref.

11 years ago * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
Vladimir Serbinenko [Wed, 23 Oct 2013 15:34:49 +0000 (17:34 +0200)] 
* grub-core/lib/progress.c (grub_file_progress_hook_real): Use
divmod64 for offset division.

11 years ago Rename .bzrignore to .gitignore. Add "*.o" rule.
Paulo Flabiano Smorigo [Wed, 23 Oct 2013 12:01:12 +0000 (10:01 -0200)] 
Rename .bzrignore to .gitignore. Add "*.o" rule.

    * .bzrignore: Renamed to...
    * .gitignore: ...this.

11 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/grub
Paulo Flabiano Smorigo [Tue, 22 Oct 2013 18:45:16 +0000 (16:45 -0200)] 
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub

11 years ago Add progress module to display load progress of files.
Paulo Flabiano Smorigo [Tue, 22 Oct 2013 18:42:20 +0000 (16:42 -0200)] 
Add progress module to display load progress of files.

* grub-core/lib/progress.c: New file.
* grub-core/Makefile.core.def (progress): New module.
* grub-core/kern/file.c (grub_file_open): File name added.
* (grub_file_read): Progress hook added.
* grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
* grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
* grub-core/net/net.c (grub_net_fs_read_real): Likewise.
* include/grub/file.h (struct grub_file): Add progress module
* members.
* include/grub/term.h (struct grub_term_output): Likewise.
* grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
Terminal velocity added.
* grub-core/osdep/windows/emuconsole.c (grub_console_term_output):
* Likewise.
* grub-core/term/arc/console.c (grub_console_term_output): Likewise.
* grub-core/term/efi/console.c (grub_console_term_output): Likewise.
* grub-core/term/gfxterm.c (grub_video_term): Likewise.
* grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output):
* Likewise.
* grub-core/term/i386/pc/console.c (grub_console_term_output):
* Likewise.
* grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
* grub-core/term/ieee1275/console.c (grub_console_term_output):
* Likewise.
* grub-core/term/morse.c (grub_audio_term_output): Likewise.
* grub-core/term/serial.c (grub_serial_term_output): Likewise.
* grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
* grub-core/term/uboot/console.c (uboot_console_term_output):
* Likewise.

11 years agoImport from bzr to git
Vladimir Serbinenko [Tue, 22 Oct 2013 18:11:54 +0000 (20:11 +0200)] 
Import from bzr to git

11 years ago Verify signatures of signatures unless --skip-sig is specified.
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 22:24:19 +0000 (00:24 +0200)] 
Verify signatures of signatures unless --skip-sig is specified.

11 years ago * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 12:02:24 +0000 (14:02 +0200)] 
* grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
\0 checking.

Saves 70 bytes on compressed image.

11 years ago * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 11:40:05 +0000 (13:40 +0200)] 
* grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
check.

Saves 10 bytes on compressed image.

11 years ago * grub-core/kern/misc.c (grub_isprint): Move to ...
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 11:25:56 +0000 (13:25 +0200)] 
* grub-core/kern/misc.c (grub_isprint): Move to ...
* include/grub/misc.h (grub_isprint): ... here. Make inline.

Saves 20 bytes on compressed image due to remving exporting.

11 years ago * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 11:14:38 +0000 (13:14 +0200)] 
* grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.

Saves 5 bytes on compressed image.

11 years ago * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 11:04:41 +0000 (13:04 +0200)] 
* grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
function get_utf8.

Saves 379 bytes on compressed image.

11 years ago * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 10:58:38 +0000 (12:58 +0200)] 
* grub-core/fs/ntfs.c: Handle 48-bit MFT no.

11 years ago * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 02:05:23 +0000 (04:05 +0200)] 
* grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.

Saves 40 bytes on compressed image.

11 years agoAdd missing Changelog comment
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 01:26:05 +0000 (03:26 +0200)] 
Add missing Changelog comment

11 years ago * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
Vladimir 'phcoder' Serbinenko [Mon, 21 Oct 2013 01:23:57 +0000 (03:23 +0200)] 
* grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
mask rather than 64-bit type.

Saves 20 bytes on compressed image.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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).

11 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.

11 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.

11 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).

11 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).

11 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).

11 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).

11 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).

11 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).

11 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).

11 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.

11 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).

11 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).

11 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.

11 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.

11 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.

11 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.

11 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.

11 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_*.

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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).

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.