mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-03 20:53:13 +03:00
getentropy: Declare it in <unistd.h> for __USE_MISC [BZ #17252]
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2016-12-31 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
[BZ #17252]
|
||||||
|
* posix/unistd.h (getentropy): Declare for __USE_MISC, not just
|
||||||
|
__USE_GNU.
|
||||||
|
|
||||||
2016-12-31 Torvald Riegel <triegel@redhat.com>
|
2016-12-31 Torvald Riegel <triegel@redhat.com>
|
||||||
|
|
||||||
[BZ #13165]
|
[BZ #13165]
|
||||||
|
|||||||
@@ -1157,7 +1157,7 @@ extern int pthread_atfork (void (*__prepare) (void),
|
|||||||
void (*__child) (void)) __THROW;
|
void (*__child) (void)) __THROW;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __USE_GNU
|
#ifdef __USE_MISC
|
||||||
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
|
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
|
||||||
success or -1 on error. */
|
success or -1 on error. */
|
||||||
int getentropy (void *__buffer, size_t __length) __wur;
|
int getentropy (void *__buffer, size_t __length) __wur;
|
||||||
|
|||||||
Reference in New Issue
Block a user