If I'm not mistaken, the xalloc family of functions should have the same set of function attributes as the corresponding functions in glibc. glibc gives malloc, calloc, and realloc the 'malloc' and 'warn_unused_result' attributes; similarly, it gives strdup and strndup the 'malloc' and 'nonnull (1)' attributes. 'malloc' requires gcc 2.96, 'nonnull' requires gcc 3.3, and 'warn_unused_result' requires gcc 3.4. Could Gnulib do the same for its x* wrappers?
Thanks, -- Colin Watson [EMAIL PROTECTED]