Declare getentropy in <unistd.h> [BZ #17252]

This commit is contained in:
Florian Weimer 2016-12-27 17:13:21 +01:00
parent 7d68cdaa4f
commit ccb8b7f7d4
2 changed files with 10 additions and 0 deletions

View File

@ -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):

View File

@ -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