From e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 19 Dec 1999 08:08:59 +0000 Subject: Update. * misc/sys/cdefs.h: Define __attribute_malloc__ according to available gcc version. * string/string.h: Mark strdup, __strdup, and strndup with __attribute_malloc__. * stdlib/stdlib.h: Make malloc, calloc, realloc, and valloc with __attribute_malloc__. * malloc/malloc.h: Make malloc, calloc, realloc, valloc, pvallc, __morecore, and __default_morecore with __attribute_malloc__. Provide default definition for __attribute_malloc__. * libio/stdio.h: Make tempnam with __attribute_malloc__. --- libio/stdio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libio') diff --git a/libio/stdio.h b/libio/stdio.h index e78c33ba8b..00b7d879d6 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -156,7 +156,8 @@ extern char *tmpnam_r (char *__s) __THROW; If not and if DIR is not NULL, that value is checked. If that fails, P_tmpdir is tried and finally "/tmp". The storage for the filename is allocated by `malloc'. */ -extern char *tempnam (__const char *__dir, __const char *__pfx) __THROW; +extern char *tempnam (__const char *__dir, __const char *__pfx) + __THROW __attribute_malloc__; #endif -- cgit 1.4.1