mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Declare getentropy in <unistd.h> [BZ #17252]
This commit is contained in:
parent
7d68cdaa4f
commit
ccb8b7f7d4
@ -1,3 +1,8 @@
|
||||
2016-12-27 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #17252]
|
||||
* posix/unistd.h (getentropy): Declare.
|
||||
|
||||
2016-12-27 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
|
||||
|
@ -1157,6 +1157,11 @@ extern int pthread_atfork (void (*__prepare) (void),
|
||||
void (*__child) (void)) __THROW;
|
||||
#endif
|
||||
|
||||
#ifdef __USE_GNU
|
||||
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
|
||||
success or -1 on error. */
|
||||
int getentropy (void *__buffer, size_t __length) __wur;
|
||||
#endif
|
||||
|
||||
/* Define some macros helping to catch buffer overflows. */
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||
|
Loading…
Reference in New Issue
Block a user