]> git.proxmox.com Git - grub2.git/log
grub2.git
12 years ago Support odc, newc and bigendian cpio formats.
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 15:15:18 +0000 (16:15 +0100)]
Support odc, newc and bigendian cpio formats.

* Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
* grub-core/Makefile.core.def (newc): New module.
(odc): Likewise.
(cpio_be): Likewise.
* grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
(MAGIC): Likewise.
(MAGIC2): Likewise.
(head) [MODE_ODC]: Adapt for the format.
(head) [MODE_NEWC]: Likewise.
(head) [!MODE_*]: Write fields of interest as arrays.
(MAGIC_USTAR): Removed.
(read_number) [MODE_NEWC]: Change to hex.
(read_number) [!MODE_*]: Parse binary arrays.
(grub_cpio_find_file): Factor out the code for better structure and
always use read_number.
(grub_cpio_mount): Use MAGIC and MAGIC2.
(grub_cpio_dir): Exit on first hook non-0 return.
(grub_cpio_fs) [MODE_ODC]: Set name to odc.
(grub_cpio_fs) [MODE_NEWC]: Set name to newc.
(GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
(GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
(GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
(GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
* grub-core/fs/newc.c: New file.
* grub-core/fs/odc.c: Likewise.
* grub-core/fs/cpio_be.c: Likewise.

12 years ago Fix handling of tar numbers occupying the whole field.
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 13:11:31 +0000 (14:11 +0100)]
Fix handling of tar numbers occupying the whole field.

* grub-core/fs/cpio.c (read_number): New function.
(grub_cpio_find_file): Use read_number instead of strtoull.

12 years ago * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 12:38:21 +0000 (13:38 +0100)]
* grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
occupying the whole field size.

12 years ago * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
Lukas Anzinger [Fri, 23 Dec 2011 11:01:25 +0000 (12:01 +0100)]
* util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.

12 years ago * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 10:54:08 +0000 (11:54 +0100)]
* grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.

12 years ago * grub-core/Makefile.core.def (lzma_decompress): Add missing
Seth Goldberg [Fri, 23 Dec 2011 10:39:30 +0000 (11:39 +0100)]
* grub-core/Makefile.core.def (lzma_decompress): Add missing
TARGET_IMG_LDFLAGS.

12 years ago * util/getroot.c (ESCAPED_PATH_MAX): New define.
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 10:36:31 +0000 (11:36 +0100)]
* util/getroot.c (ESCAPED_PATH_MAX): New define.
(mountinfo_entry): Increase the field size to take escaping into
account.
(find_root_device_from_libzfs): Add one byte to size of strings for
security.

12 years agoRemove empty directories
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 09:24:34 +0000 (10:24 +0100)]
Remove empty directories

12 years agomissing ChangeLog
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 09:24:08 +0000 (10:24 +0100)]
missing ChangeLog

12 years ago * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 09:23:41 +0000 (10:23 +0100)]
* grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
an assert.
* util/grub-setup.c (setup): Likewise.

12 years ago * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
Vladimir 'phcoder' Serbinenko [Fri, 23 Dec 2011 09:21:27 +0000 (10:21 +0100)]
* grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
_LzmaDecodeA.

12 years ago * docs/grub.texi (Internationalisation): New section.
Vladimir 'phcoder' Serbinenko [Thu, 22 Dec 2011 19:55:55 +0000 (20:55 +0100)]
* docs/grub.texi (Internationalisation): New section.

12 years ago * docs/grub.texi (Loopback booting): New section.
Vladimir 'phcoder' Serbinenko [Thu, 22 Dec 2011 16:43:51 +0000 (17:43 +0100)]
* docs/grub.texi (Loopback booting): New section.

12 years ago * util/grub-mkstandalone.in: Fix minor typo errors.
Keshav P R [Thu, 22 Dec 2011 12:05:19 +0000 (13:05 +0100)]
* util/grub-mkstandalone.in: Fix minor typo errors.

12 years ago IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
Vladimir 'phcoder' Serbinenko [Tue, 20 Dec 2011 17:17:07 +0000 (18:17 +0100)]
IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.

* grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
net/icmp.c and net/icmp6.c.
(http): New module.
(priority_queue): Likewise.
* grub-core/io/bufio.c: Rewritten.
* grub-core/lib/legacy_parse.c (legacy_command): New argument type
TYPE_WITH_CONFIGFILE_OPTION.
(legacy_commands): Add bootp and dhcp.
(is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
(grub_legacy_parse): Likewise.
* grub-core/lib/priority_queue.c: New file.
* grub-core/net/arp.c: Add missing license header.
(arp_find_entry): Removed.
(arp_find_entry): Likewise.
(grub_net_arp_resolve): Rename to ...
(grub_net_arp_send_request): ...this.
(grub_net_arp_receive): New card argument.
* grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
Set router and DNS server.
(grub_net_configure_by_dhcp_ack): Handle routing information.
(grub_cmd_bootp): Set checksum.
(grub_bootp_init): Remove net_dhcp.
* grub-core/net/dns.c: New file.
* grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
completion.
(get_card_packet): Handle allocation.
(grub_efinet_findcards): Set mtu.
* grub-core/net/drivers/emu/emunet.c: Add missing license header.
(get_card_packet): Handle allocation.
(emucard): Set mtu.
* grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
(GRUB_MOD_INIT): Set mtu.
* grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
mtu.
(get_card_packet): Handle allocation.
(grub_ofnet_findcards): Set mtu.
* grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
assert.
(grub_net_recv_ethernet_packet): Handle IPv6.
* grub-core/net/http.c: New file.
* grub-core/net/icmp.c: Likewise.
* grub-core/net/icmp6.c: Likewise.
* grub-core/net/ip.c (ip6addr): New type.
(ip6hdr): Likewise.
(reassemble): Likewise.
(cmp): New function.
(reassembles): New variable.
(grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
(id): New variable.
(send_fragmented): New function.
(grub_net_send_ip_packet): Rename to ...
(grub_net_send_ip4_packet): ... this. Send fragmented if needed.
Handle non-UDP.
(grub_net_recv_ip_packets): Rename to ...
(handle_dgram): ... this. Check checksum. Handle non-UDP.
(free_rsm): New function.
(free_old_fragments): Likewise.
(grub_net_recv_ip4_packets): New function.
(grub_net_send_ip6_packet): Likewise.
(grub_net_send_ip_packet): Likewise.
(grub_net_recv_ip6_packets): Likewise.
(grub_net_recv_ip_packets): Likewise.
* grub-core/net/net.c (grub_net_link_layer_entry): New struct.
(LINK_LAYER_CACHE_SIZE): New const.
(link_layer_find_entry): New function.
(grub_net_link_layer_add_address): Likewise.
(grub_net_link_layer_resolve_check): Likewise.
(grub_net_link_layer_resolve): Likewise.
(grub_net_ipv6_get_slaac): Likewise.
(grub_net_ipv6_get_link_local): Likewise.
(grub_cmd_ipv6_autoconf): Likewise.
(parse_ip): Handle one number representation.
(parse_ip6): New functoion.
(match_net): Handle IPv6.
(grub_net_resolve_address): Handle IPv6 and DNS.
(grub_net_resolve_net_address): Handle IPv6.
(route_cmp): New function.
(grub_net_route_address): Find best route.
(grub_net_addr_to_str): Handle IPv6.
(grub_net_addr_cmp): New function.
(grub_net_add_addr): Register local route.
(print_net_address): Handle net address.
(grub_net_poll_cards): Retransmit TCP.
(grub_net_poll_cards_idle_real): Likewise.
(have_ahead): New function.
(grub_net_seek_real): Use underlying seek.
(GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
* grub-core/net/tcp.c: New file.
* grub-core/net/tftp.c (tftp_data): Add priority_queue.
(cmp): New function.
(ack): Likewise.
(tftp_receive): Handle unordered input.
(destroy_pq): New function.
(tftp_close): Close pq.
* grub-core/net/udp.c: Put missing license header.
(grub_net_udp_socket): New function.
(udp_socket_register): Likewise.
(grub_net_udp_close): Likewise.
(grub_net_recv_udp_packet): Check checksum.
* include/grub/efi/api.h (grub_efi_simple_network): Add status.
* include/grub/misc.h (grub_memchr): New function.
* include/grub/net.h (GRUB_NET_*_SIZE): New enum.
(grub_net_card_driver): Return buf in recv.
(grub_net_slaac_mac_list): New struct.
(grub_network_level_protocol_id): Add ipv6.
(grub_net_network_level_addr): Likewise.
(grub_net_network_level_net_addr): Likewise.
(grub_net_app_protocol): Add seek.
(grub_net_socket): Removed.
(grub_net_sockets): Likewise.
(grub_net_socket_register): Likewise.
(grub_net_socket_unregister): Likewise.
(FOR_NET_SOCKETS): Likewise.
(grub_net_add_addr): Add const.
(GRUB_NET_BOOTP_*): New enum.
(grub_net_addr_cmp): New proto.
(GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
(GRUB_NET_MAX_STR_HWADDR_LEN): New define.
(grub_net_hwaddr_to_str): NEw proto.
(FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
(FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
(grub_dns_init): New proto.
(grub_dns_fini): Likewise.
(grub_net_tcp_retransmit): Likewise.
(grub_net_link_layer_add_address): Likewise.
(grub_net_link_layer_resolve_check): Likewise.
(grub_net_link_layer_resolve): Likewise.
(grub_net_dns_lookup): Likewise.
(grub_net_add_dns_server): Likewise.
(grub_net_remove_dns_server): Likewise.
(GRUB_NET_TRIES): New const.
(GRUB_NET_INTERVAL): Likewise.
* include/grub/net/arp.h: Mostly rewritten.
* include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
* include/grub/net/ip.h: Mostly rewritten.
* include/grub/net/netbuff.h: Indent.
* include/grub/net/tcp.h: New file.
* include/grub/net/udp.h: Mostly rewritten.
* include/grub/priority_queue.h: New file.
* include/grub/types.h (PRIdGRUB_SSIZE): New define.
(grub_swap_bytes64_compile_time): Likewise.
(grub_cpu_to_be16_compile_time): Likewise.
(grub_cpu_to_be32_compile_time): Likewise.
(grub_cpu_to_be64_compile_time): Likewise.
(grub_be_to_cpu64_compile_time): Likewise.

12 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Fri, 16 Dec 2011 17:00:16 +0000 (18:00 +0100)]
merge mainline into net

12 years ago * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
Vladimir 'phcoder' Serbinenko [Fri, 16 Dec 2011 16:46:28 +0000 (17:46 +0100)]
* grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
UINT_TO_PTR with cast.

12 years agoRetrieve DNS names from DHCP/BOOTP
Vladimir 'phcoder' Serbinenko [Fri, 16 Dec 2011 16:37:47 +0000 (17:37 +0100)]
Retrieve DNS names from DHCP/BOOTP

12 years agoIntegrate DNS with address parsing
Vladimir 'phcoder' Serbinenko [Fri, 16 Dec 2011 16:12:01 +0000 (17:12 +0100)]
Integrate DNS with address parsing

12 years agoDNS cache support
Vladimir 'phcoder' Serbinenko [Fri, 16 Dec 2011 14:08:46 +0000 (15:08 +0100)]
DNS cache support

12 years agosupport cname
Vladimir 'phcoder' Serbinenko [Fri, 16 Dec 2011 12:43:31 +0000 (13:43 +0100)]
support cname

12 years agoRemerge net branch
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:53:29 +0000 (20:53 +0100)]
Remerge net branch

12 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:51:35 +0000 (20:51 +0100)]
merge mainline into net

12 years agoAdd forgotten file
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:50:21 +0000 (20:50 +0100)]
Add forgotten file

12 years ago * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:33:32 +0000 (20:33 +0100)]
* util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
don't use them.

12 years ago * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:32:02 +0000 (20:32 +0100)]
* util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
already there.

12 years ago * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:29:30 +0000 (20:29 +0100)]
* util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
confusing ipxe.

12 years ago * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:26:17 +0000 (20:26 +0100)]
* grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
Add missing const attribute.
* grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
Likewise.
* grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
Likewise.

12 years ago * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:20:02 +0000 (20:20 +0100)]
* grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
misaligned access.
(serpent_setkey): Likewise.
(serpent_encrypt_internal): Likewise.
(serpent_decrypt_internal): Likewise.
(serpent_encrypt): Don't put an alignment-increasing cast.
(serpent_decrypt): Likewise.
(serpent_test): Likewise.

12 years ago * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:05:27 +0000 (20:05 +0100)]
* grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.

12 years agoforgotten file for previous commit
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 19:04:21 +0000 (20:04 +0100)]
forgotten file for previous commit

12 years ago Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:59:49 +0000 (19:59 +0100)]
Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.

* include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
grub_addr_t casts.
(PTR_TO_UINT64): Likewise.
(PTR_TO_UINT32): Likewise.

12 years ago * util/grub-mkimage.c (generate_image): Decrease the higher limit
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:39:41 +0000 (19:39 +0100)]
* util/grub-mkimage.c (generate_image): Decrease the higher limit
because of stack.
* util/grub-setup.c (setup): Don't add redundancy past the higher load
limit.

12 years ago * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:35:54 +0000 (19:35 +0100)]
* grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
text_width > available width a bit more gracefully.

12 years ago * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:32:41 +0000 (19:32 +0100)]
* grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
current address calculation.

12 years ago * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:27:01 +0000 (19:27 +0100)]
* grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
stack.
(encode_block): Likewise.

12 years ago * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:22:36 +0000 (19:22 +0100)]
* grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
certainety.

12 years ago * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:20:41 +0000 (19:20 +0100)]
* grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
non-RS part to avoid RS messing with GDT.
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
Increase to suit in realmode routines.

12 years ago * grub-core/kern/i386/realmode.S: Increase alignment.
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 18:17:36 +0000 (19:17 +0100)]
* grub-core/kern/i386/realmode.S: Increase alignment.
* grub-core/boot/i386/pc/startup_raw.S: Likewise.

12 years ago * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
Vladimir 'phcoder' Serbinenko [Thu, 15 Dec 2011 01:20:21 +0000 (02:20 +0100)]
* grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
be deterministic.
(syndroms): Compute 0 syndrom.
(rs_recover): Use 0 syndrom.

12 years ago * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
Vladimir 'phcoder' Serbinenko [Wed, 14 Dec 2011 22:59:11 +0000 (23:59 +0100)]
* include/grub/kernel.h (FOR_MODULES): Make it a bit faster.

12 years ago * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
Vladimir 'phcoder' Serbinenko [Wed, 14 Dec 2011 22:57:35 +0000 (23:57 +0100)]
* include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
brackets.

12 years ago * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
Vladimir 'phcoder' Serbinenko [Wed, 14 Dec 2011 13:20:57 +0000 (14:20 +0100)]
* grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
account.
(get_top_pad): Likewise.
(get_right_pad): Likewise.
(get_bottom_pad): Likewise.

12 years ago * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use set in if.
Vladimir 'phcoder' Serbinenko [Wed, 14 Dec 2011 11:05:26 +0000 (12:05 +0100)]
* grub-core/gfxmenu/gui_list.c (draw_menu): Don't use set in if.

12 years ago * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
Vladimir 'phcoder' Serbinenko [Wed, 14 Dec 2011 10:13:14 +0000 (11:13 +0100)]
* include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
attribute as the structure isn't guaranteed to be properly aligned.
(grub_efi_pci_device_path): Likewise.
(grub_efi_pccard_device_path): Likewise.
(grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
specify the size of `memory_type'.
(grub_efi_vendor_device_path): Likewise.
(grub_efi_controller_device_path): Likewise.
(grub_efi_acpi_device_path): Likewise.
(grub_efi_expanded_acpi_device_path): Likewise.
(grub_efi_atapi_device_path): Likewise.
(grub_efi_scsi_device_path): Likewise.
(grub_efi_fibre_channel_device_path): Likewise.
(grub_efi_1394_device_path): Likewise.
(grub_efi_usb_device_path): Likewise.
(grub_efi_usb_class_device_path): Likewise.
(grub_efi_i2o_device_path): Likewise.
(grub_efi_mac_address_device_path): Likewise.
(grub_efi_ipv4_device_path): Likewise.
(grub_efi_ipv6_device_path): Likewise.
(grub_efi_infiniband_device_path): Likewise.
(grub_efi_uart_device_path): Likewise.
(grub_efi_vendor_messaging_device_path): Likewise.
(grub_efi_hard_drive_device_path): Likewise.
(grub_efi_cdrom_device_path): Likewise.
(grub_efi_vendor_media_device_path): Likewise.
(grub_efi_file_path_device_path): Likewise.
(grub_efi_protocol_device_path): Likewise.
(grub_efi_piwg_device_path): Likewise.
(grub_efi_bios_device_path): Likewise.

12 years ago * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
Vladimir 'phcoder' Serbinenko [Wed, 14 Dec 2011 09:01:24 +0000 (10:01 +0100)]
* include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
(grub_ucs4_to_utf8_alloc): Likewise.
(grub_ucs4_to_utf8): Likewise.
* grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
(grub_ucs4_to_utf8_alloc): Likewise.

12 years ago AFFS never uses unicode.
Vladimir 'phcoder' Serbinenko [Wed, 14 Dec 2011 08:52:00 +0000 (09:52 +0100)]
AFFS never uses unicode.

* include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
(grub_latin1_to_utf8): New inline function.
* grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.

12 years ago * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 22:15:56 +0000 (23:15 +0100)]
* grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
overflow.

12 years ago * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 22:14:25 +0000 (23:14 +0100)]
* grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
(grub_squash_dirent_header): Likewise.
(read_chunk): Don't double swap.
(grub_squash_iterate_dir): Fix swap sizes.

12 years ago * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 22:11:48 +0000 (23:11 +0100)]
* grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.

12 years ago * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 22:10:38 +0000 (23:10 +0100)]
* grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
(grub_hfs_iterate_dir): Likewise.

12 years ago Fix video on platforms where unaligned access is forbidden.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 19:07:33 +0000 (20:07 +0100)]
Fix video on platforms where unaligned access is forbidden.
Make several optimisations while on it.

* grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
(grub_video_fbblit_replace_32bit_1bit): Likewise.
(grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
Disable.
(grub_video_fbblit_replace_16bit_1bit):
Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
(grub_video_fbblit_replace_8bit_1bit): Likewise.
(grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
(grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
(grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
(grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
(grub_video_fbblit_replace_BGR888_RGB888): Likewise.
(grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
(grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
(grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
(grub_video_fbblit_replace_index_RGBX8888): Likewise.
(grub_video_fbblit_replace_index_RGB888): Likewise.
(grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
(grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
(grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
(grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
(grub_video_fbblit_blend_index_RGBA8888): Likewise.
(grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
(grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
Disable.
(grub_video_fbblit_blend_XXX565_1bit):
Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
* grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
* grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
void *.
* grub-core/video/fb/video_fb.c (common_blitter)
[!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
(grub_video_fb_create_render_target_from_pointer)
[!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
* include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
* include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
definition.
* include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.

12 years ago * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 18:56:50 +0000 (19:56 +0100)]
* grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
HH22 and HM10 relocations.

12 years ago * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 18:55:27 +0000 (19:55 +0100)]
* grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.

12 years ago * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 18:53:57 +0000 (19:53 +0100)]
* grub-core/commands/videotest.c (grub_cmd_videotest): Check that
allocation succeeded.

12 years ago * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 15:35:12 +0000 (16:35 +0100)]
* grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
argument a u8 pointer. All users updated.
Handle unaligned buffers.

12 years ago * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 15:33:27 +0000 (16:33 +0100)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
add_part to workaround compiler bug.

12 years ago * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 15:29:15 +0000 (16:29 +0100)]
* include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.

12 years ago * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 15:22:44 +0000 (16:22 +0100)]
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
Reserve alignment invariants.
(grub_multiboot_load): Likewise.
(retrieve_video_parameters): Likewise.
(grub_multiboot_make_mbi): Likewise.

12 years ago * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 15:20:25 +0000 (16:20 +0100)]
* grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
incorrect pointer.

12 years ago * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 14:55:36 +0000 (15:55 +0100)]
* grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
(grub_pata_pio_write): Likewise.

12 years ago Add noreturn attributes and remove unreachable code.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 14:13:51 +0000 (15:13 +0100)]
Add noreturn attributes and remove unreachable code.

* grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
code.
* grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
code. Mark as noreturn.
* grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
* grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
unreachable code.
* grub-core/kern/main.c (grub_main): Mark as noreturn.
* grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
* grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
* grub-core/normal/menu.c (run_menu): Remove unreachable code.
* include/grub/kernel.h (grub_main): Mark as noreturn.
* include/grub/reader.h (grub_rescue_run): Likewise.

12 years ago * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 14:04:07 +0000 (15:04 +0100)]
* include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
redundant declaration.

12 years ago * include/grub/net.h (grub_net_network_level_interfaces): Remove
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 14:03:06 +0000 (15:03 +0100)]
* include/grub/net.h (grub_net_network_level_interfaces): Remove
redundant declaration.
(FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.

12 years ago * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 13:57:46 +0000 (14:57 +0100)]
* grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
to ensure alignment.
(grub_hdparm_print_identify): Make argument uint16 * to ensure
alignment. Ensure tmp alignment.
(grub_cmd_hdparm): Ensure buf alignment.
* grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
to ensure alignment.
(grub_ata_dumpinfo): Ensure text alignment.
(grub_atapi_identify): Preserve alignment invariant.
(grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.

12 years ago * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 13:51:41 +0000 (14:51 +0100)]
* include/grub/emu/misc.h (xasprintf): Add missing format attribute.
* include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
* include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
* include/grub/misc.h (grub_reboot)
[GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
(grub_halt) [__mips__]: Likewise.

12 years ago * include/grub/efi/memory.h (grub_machine_mmap_iterate):
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 13:47:00 +0000 (14:47 +0100)]
* include/grub/efi/memory.h (grub_machine_mmap_iterate):
Remove redundant declaration.
(grub_mmap_get_post64): Likewise.
(grub_mmap_get_upper): Likewise.
(grub_mmap_get_lower): Likewise.

12 years ago * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 13:44:38 +0000 (14:44 +0100)]
* grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
uint32_t * to ensure alignment.
(dvh_partition_map_iterate): Make `block' a union to ensure alignment.

12 years ago * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 13:42:41 +0000 (14:42 +0100)]
* grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
uint16_t * to ensure alignment.
(sun_pc_partition_map_iterate): Make `block' a union to ensure
alignment.

12 years ago * grub-core/partmap/sun.c (grub_sun_is_valid): make argument uint16_t *
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 13:40:41 +0000 (14:40 +0100)]
* grub-core/partmap/sun.c (grub_sun_is_valid): make argument uint16_t *
to ensure alignment.
(sun_partition_map_iterate): Make `block' a union to ensure alignment.

12 years ago * grub-core/fs/ntfs.c (u16at): Make into inline function.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 13:17:24 +0000 (14:17 +0100)]
* grub-core/fs/ntfs.c (u16at): Make into inline function.
Handle unaligned pointers.
(u32at): Likewise.
(u64at): Likewise.
(fixup): Use byte access instead of v16at.
(find_attr): Fix imporper usage of v32at.
(read_data): Likewise.
(list_file): Handle byte-swapping and unaligned strings.
(grub_ntfs_label): Likewise.

12 years ago * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 12:58:33 +0000 (13:58 +0100)]
* grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
as it's not necessarily aligned.

12 years ago * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 10:46:29 +0000 (11:46 +0100)]
* grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
redundant declaration.
(grub_serial_init): Likewise.
(grub_terminfo_init): Likewise.

12 years ago * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 10:33:02 +0000 (11:33 +0100)]
* grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
function.
(ZAP_HASH_IDX): Likewise.
(ZAP_LEAF_HASH_SHIFT): Likewise.
(ZAP_LEAF_HASH_NUMENTRIES): Likewise.
(LEAF_HASH): Likewise.
(ZAP_LEAF_NUMCHUNKS): Likewise.
(ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
alignment invariants. Return pointer. All users updated.
(ZAP_LEAF_ENTRY): Make into inline function.
(NBBY): Removed.
(xor): LIkewise.
(xor_out): Use grub_crypto_xor.
(dnode_get_path): Use grub_get_unaligned.
(nvlist_find_value): Likewise.
(grub_zfs_nvlist_lookup_uint64): Likewise.
(grub_zfs_nvlist_lookup_string): Likewise.
(get_nvlist_size): Likewise.
(grub_zfs_open): Likewise.
(fill_fs_info): Likewise.
(grub_zfs_dir): Likewise.
* include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
alignment invariants.
* include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
necessarily aligned.

12 years ago * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 01:15:09 +0000 (02:15 +0100)]
* grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.

12 years ago * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 01:13:44 +0000 (02:13 +0100)]
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
arithmetic to conserve alignment invariants.

12 years ago * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 01:12:23 +0000 (02:12 +0100)]
* include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
redundant declaration.
(grub_efiemu_mm_obtain_request): Likewise.
(grub_efiemu_prepare): Likewise.

12 years ago * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 01:08:14 +0000 (02:08 +0100)]
* include/grub/list.h: Explicitly cast return of grub_bad_type_cast
to match types.

12 years ago * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 01:05:58 +0000 (02:05 +0100)]
* grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
case of aunaligned recptr.
(grub_hfsplus_read_block): Declare extoverflow as key to ensure
alignment.
(grub_hfsplus_btree_search): Handle unaligned index.

12 years ago * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 01:02:38 +0000 (02:02 +0100)]
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
to get freetag and skip.

12 years ago * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 01:00:44 +0000 (02:00 +0100)]
* grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
array.
(grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
(grub_nilfs2_btree_lookup): Ensure buffer alignment.

12 years ago * grub-core/fs/ext2.c (grub_ext4_find_leaf): MAke buf as pointer to
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:58:35 +0000 (01:58 +0100)]
* grub-core/fs/ext2.c (grub_ext4_find_leaf): MAke buf as pointer to
properly aligned memory.
(grub_ext2_read_block): Ensure buffer alignment.

12 years ago * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:57:07 +0000 (01:57 +0100)]
* grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
name for checksum and fix allocation algorithm.

12 years ago * include/grub/types.h (grub_properly_aligned_t): New type.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:54:59 +0000 (01:54 +0100)]
* include/grub/types.h (grub_properly_aligned_t): New type.
(GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
(grub_get_unaligned16): Add explicit casts.
(grub_get_unaligned32): Likewise.
(grub_get_unaligned64): Likewise.
(grub_set_unaligned16): New function.
(grub_set_unaligned32): Likewise.

12 years ago * grub-core/normal/datetime.c (grub_weekday_names): Make const.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:45:38 +0000 (01:45 +0100)]
* grub-core/normal/datetime.c (grub_weekday_names): Make const.

12 years ago * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:41:16 +0000 (01:41 +0100)]
* grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
* grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
* grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.

12 years ago * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:36:09 +0000 (01:36 +0100)]
* grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
conditionals.

12 years ago * grub-core/kern/emu/main.c (main): Add missing const qualifier.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:32:41 +0000 (01:32 +0100)]
* grub-core/kern/emu/main.c (main): Add missing const qualifier.
* grub-core/loader/efi/appleloader.c (devdata): Likewise.

12 years ago Unify and improve RAID and crypto xor.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:26:53 +0000 (01:26 +0100)]
Unify and improve RAID and crypto xor.

* grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
changed to grub_crypto_xor
* grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
* include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
Use bigger types when possible.

12 years ago * grub-core/disk/raid.c (scan_devices): Fix condition.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:19:47 +0000 (01:19 +0100)]
* grub-core/disk/raid.c (scan_devices): Fix condition.

12 years ago * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:07:06 +0000 (01:07 +0100)]
* grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
Make name a const ptr.

12 years ago * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:00:34 +0000 (01:00 +0100)]
* grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
first argument a const pointer.
* grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
proto.
(grub_children_iterate): Likewise.
(grub_machine_mmap_iterate): Remove redundant declaration.

12 years ago * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:55:00 +0000 (00:55 +0100)]
* grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
(grub_cmd_acpi) [!x86]: Disable EBDA.

12 years ago Enable UTF8 in gnulib regexp.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:50:49 +0000 (00:50 +0100)]
Enable UTF8 in gnulib regexp.

* config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
* grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
(isupper): Use grub_isupper.
(isascii): New inline function.
* grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
* grub-core/lib/posix_wrap/wctype.h: Likewise.
* grub-core/normal/charset.c (grub_utf8_process): New function.
(grub_utf8_to_utf16): Use grub_utf8_process.
(grub_encode_utf8_character): New function.
(grub_ucs4_to_utf8): Use grub_encode_utf8_character.
* include/grub/charset.h (grub_utf8_process): New declaration.
(grub_encode_utf8_character): Likewise.
* include/grub/misc.h (grub_islower): New inline function.
(grub_isupper): Likewise.
(grub_strchrsub): Moved down to fix the definitions.

12 years ago * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:29:42 +0000 (00:29 +0100)]
* grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
specification.

12 years ago * include/grub/loader.h (grub_loader_register_preboot_hook):
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:28:14 +0000 (00:28 +0100)]
* include/grub/loader.h (grub_loader_register_preboot_hook):
Use struct preboot * and not void * for handle. All users updated.
(grub_loader_unregister_preboot_hook): Likewise.

12 years ago * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 21:40:43 +0000 (22:40 +0100)]
* include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
* grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
UTF-16-BE. All users updated.
(grub_hfsplus_cmp_catkey): Fix unicode handling.
(grub_hfsplus_iterate_dir): Likewise.
(grub_hfsplus_label): Likewise.

12 years ago * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 21:20:14 +0000 (22:20 +0100)]
* grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.

12 years ago Add missing const qualifiers.
Vladimir 'phcoder' Serbinenko [Wed, 30 Nov 2011 15:20:13 +0000 (16:20 +0100)]
Add missing const qualifiers.

* grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
* grub-core/commands/lspci.c (grub_pci_classname): Likewise.
* grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
* grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
(grub_lvm_check_flag): Likewise.
* grub-core/efiemu/i386/coredetect.c
(grub_efiemu_get_default_core_name): Likewise
* grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
* grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
* grub-core/fs/ntfs.c (fixup): Likewise.
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
* grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
(fzap_lookup): Likewise.
(zap_lookup): Likewise.
* grub-core/gnulib/regcomp.c (init_dfa): Likewise.
* grub-core/lib/legacy_parse.c (check_option): Likewise.
* grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
* grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
(grub_freebsd_add_meta_module): Likewise.
(grub_cmd_freebsd_module): Likewise.
* grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
* grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
(grub_xnu_writetree_get_size): Likewise.
(grub_xnu_writetree_toheap_real): Likewise.
(grub_xnu_find_key): Likewise.
(grub_xnu_create_key): Likewise.
(grub_xnu_create_value): Likewise.
(grub_xnu_register_memory): Likewise.
(grub_xnu_check_os_bundle_required): Likewise.
(grub_xnu_scan_dir_for_kexts): Likewise.
(grub_xnu_load_kext_from_dir): Likewise.
* grub-core/normal/color.c (color_list): Likewise.
* grub-core/normal/completion.c (current_word): Likewise.
* grub-core/normal/menu_entry.c (insert_string): Likewise.
* grub-core/term/serial.c (grub_serial_find): Likewise.
* grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
* include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
Likewise.
* include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
(grub_freebsd_add_meta_module): Likewise.
* include/grub/lib/arg.h (grub_arg_option): Likewise.
* include/grub/net.h (grub_net_card_driver): Likewise.
(grub_net_card): Likewise.
(grub_net_app_protocol): Likewise.
* include/grub/parttool.h (grub_parttool_argdesc): Likewise.
* include/grub/serial.h (grub_serial_find): Likewise.
* include/grub/tparm.h (grub_terminfo_tparm): Likewise.
* include/grub/xnu.h (grub_xnu_create_key): Likewise.
(grub_xnu_create_value): Likewise.
(grub_xnu_find_key): Likewise.
(grub_xnu_scan_dir_for_kexts): Likewise.
(grub_xnu_load_kext_from_dir): Likewise.

* include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
* grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
* include/grub/zfs/zio_checksum.h (zio_checksum_info):
Moved from here ...
* grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.

12 years ago* util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
Colin Watson [Mon, 28 Nov 2011 01:10:00 +0000 (01:10 +0000)]
* util/getroot.c (find_root_device_from_libzfs): Use xasprintf.