[parted-devel] Parted on GNU Hurd based systems

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Mon Mar 5 23:21:34 CET 2007


How is this one?

a. Used #ifndef..#endif on HAVE_SIGACTION and SA_SIGINFO to
selectively define those structure and functions which will go missing
when 'sigaction' and/or 'SA_SIGINFO' are absent. I have nested the two
cases to make them more granular.

b. Separately defined all the constants (as suggested by Jim) that are
compared with info->si_code to print specific messages. Should work on
FreeBSD kernels where some of these are absent.

c. I have not used
#define sigaction (a, b, c)
Instead used a blank function definition, and a couple of blank
structures to keep things readable.

Comments...

Happy hacking,
Debarshi
-- 
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ui.c.diff
Type: text/x-patch
Size: 11154 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20070306/7cba5079/ui.c-0001.bin


More information about the parted-devel mailing list