aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-19 08:08:59 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-19 08:08:59 +0000
commite9e9b245b98b8aeb8b8e898dce2b8c0f771602d6 (patch)
tree8cedb8e3ff9898a02990d88802319f68e99ac268 /libio
parent778c59c850879b2ffc7a396cecfa5a5ad68a40e6 (diff)
downloadglibc-e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6.zip
glibc-e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6.tar.gz
glibc-e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6.tar.bz2
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__.
Diffstat (limited to 'libio')
-rw-r--r--libio/stdio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index e78c33b..00b7d87 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