POSIX: move getentropy(2) from libbsd
Specified in POSIX.1-2024 https://www.austingroupbugs.net/view.php?id=1134 Change-Id: Ie715a102aa6f7764bc639e0a1874a6c7f7d81019 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7846 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
bc28372cec
commit
4169a972ee
@@ -28,8 +28,6 @@ char *getusershell(void);
|
||||
int issetugid(void);
|
||||
void setusershell(void);
|
||||
|
||||
int getentropy(void *buf, size_t buflen);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -481,6 +481,8 @@ extern void encrypt(char block[64], int edflag);
|
||||
extern int getopt(int argc, char *const *argv, const char *shortOpts);
|
||||
extern void swab(const void *src, void *dest, ssize_t nbytes);
|
||||
|
||||
int getentropy(void *buf, size_t buflen);
|
||||
|
||||
/* getopt() related external variables */
|
||||
extern char *optarg;
|
||||
extern int optind, opterr, optopt;
|
||||
|
||||
@@ -19,7 +19,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
explicit_bzero.c
|
||||
fgetln.c
|
||||
fts.c
|
||||
getentropy.c
|
||||
getpass.c
|
||||
issetugid.c
|
||||
kqueue.cpp
|
||||
|
||||
@@ -22,6 +22,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
exec.cpp
|
||||
_exit.c
|
||||
fork.c
|
||||
getentropy.c
|
||||
getlogin.cpp
|
||||
getpagesize.c
|
||||
hostname.cpp
|
||||
|
||||
Reference in New Issue
Block a user