From: Andreas Jaeger <aj@suse.de>
To: GNU libc hacker <libc-hacker@sourceware.cygnus.com>
Subject: Mark __strndup with malloc attribute
Date: Sun, 19 Dec 1999 05:19:00 -0000 [thread overview]
Message-ID: <u8vh5vrs30.fsf@gromit.rhein-neckar.de> (raw)
We should mark the internal functions also, strndup is marked but
__strndup not.
Andreas
1999-12-19 Andreas Jaeger <aj@suse.de>
* include/string.h: Mark __strndup with __attribute_malloc__.
============================================================
Index: include/string.h
--- include/string.h 1999/11/24 20:47:38 1.8
+++ include/string.h 1999/12/19 13:12:51
@@ -14,7 +14,8 @@
extern int __strncasecmp (__const char *__s1, __const char *__s2,
size_t __n);
-extern char *__strndup (__const char *__string, size_t __n);
+extern char *__strndup (__const char *__string, size_t __n)
+ __attribute_malloc__;
extern void *__rawmemchr (__const void *__s, int __c);
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
reply other threads:[~1999-12-19 5:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u8vh5vrs30.fsf@gromit.rhein-neckar.de \
--to=aj@suse.de \
--cc=libc-hacker@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).