Move os dependent code to a separate file ?
Hi,
i can see that there are linux specific code in util/biosdisk.c, perhaps we should move them to a separate file such as util/osdep.c ?
Signature · 1 line
Bean
Quoted 4 lines · Bean
Hi,
i can see that there are linux specific code in
util/biosdisk.c, perhaps we should move them to a separate file such asutil/osdep.c?
In general I don't like very much to split unportable code in separate files because it's easy to lose context of what it is doing. But some Linux-specific code in that file is obsolete, IIRC, inherited from GRUB Legacy just to support ancient libcs. Maybe part of it needs to be considered for removal.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.)