I am working on giving GRUB2 support on illumos. This will need changes in grub/grub-core/kern/emu/hostdisk.c. However, I am not able to determine what changes should be done in this file (eg, Different libraries have been included in this file depending on the kernel. What libraries I should include for solaris? ). I am not able to understand the purpose of functions properly. Kindly help me with hostdisk.c