X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fpagealign_alloc.h;h=41fa5d5cf15b4bcb7c431052322598a4a7bc51fb;hb=c74c2411db5f3bf06848008c0d121a23fd31cf91;hp=bf4df8c82a70d7e01ca0544b087bf2fa07f93bb7;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/pagealign_alloc.h b/lib/pagealign_alloc.h index bf4df8c82..41fa5d5cf 100644 --- a/lib/pagealign_alloc.h +++ b/lib/pagealign_alloc.h @@ -1,6 +1,6 @@ /* Memory allocation aligned to system page boundaries. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,11 +26,19 @@ to the next multiple. Return a pointer to the start of the memory block. Upon allocation failure, return NULL and set errno. */ -extern void *pagealign_alloc (size_t size); +extern void *pagealign_alloc (size_t size) +# if __GNUC__ >= 3 + __attribute__ ((__malloc__)) +# endif + ; /* Like pagealign_alloc, except it exits the program if the allocation fails. */ -extern void *pagealign_xalloc (size_t size); +extern void *pagealign_xalloc (size_t size) +# if __GNUC__ >= 3 + __attribute__ ((__malloc__)) +# endif + ; /* Free a memory block. PTR must be a non-NULL pointer returned by pagealign_alloc or