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);
|
int issetugid(void);
|
||||||
void setusershell(void);
|
void setusershell(void);
|
||||||
|
|
||||||
int getentropy(void *buf, size_t buflen);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#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 int getopt(int argc, char *const *argv, const char *shortOpts);
|
||||||
extern void swab(const void *src, void *dest, ssize_t nbytes);
|
extern void swab(const void *src, void *dest, ssize_t nbytes);
|
||||||
|
|
||||||
|
int getentropy(void *buf, size_t buflen);
|
||||||
|
|
||||||
/* getopt() related external variables */
|
/* getopt() related external variables */
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind, opterr, optopt;
|
extern int optind, opterr, optopt;
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
explicit_bzero.c
|
explicit_bzero.c
|
||||||
fgetln.c
|
fgetln.c
|
||||||
fts.c
|
fts.c
|
||||||
getentropy.c
|
|
||||||
getpass.c
|
getpass.c
|
||||||
issetugid.c
|
issetugid.c
|
||||||
kqueue.cpp
|
kqueue.cpp
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
exec.cpp
|
exec.cpp
|
||||||
_exit.c
|
_exit.c
|
||||||
fork.c
|
fork.c
|
||||||
|
getentropy.c
|
||||||
getlogin.cpp
|
getlogin.cpp
|
||||||
getpagesize.c
|
getpagesize.c
|
||||||
hostname.cpp
|
hostname.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user