diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-12-19 08:08:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-12-19 08:08:59 +0000 |
commit | e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6 (patch) | |
tree | 8cedb8e3ff9898a02990d88802319f68e99ac268 /libio/stdio.h | |
parent | 778c59c850879b2ffc7a396cecfa5a5ad68a40e6 (diff) | |
download | glibc-e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6.tar.gz glibc-e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6.tar.xz glibc-e9e9b245b98b8aeb8b8e898dce2b8c0f771602d6.zip |
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/stdio.h')
-rw-r--r-- | libio/stdio.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |