libs/bsd: Implement getentropy(2).

With generic_syscall to avoid using a FD.

Change-Id: Id1702118bb673f06a861e4f0ad3401ce3d45cbd0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/31
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Augustin Cavalier
2023-08-29 19:42:27 +00:00
committed by waddlesplash
parent d57510c0ff
commit 6bde05aebd
5 changed files with 90 additions and 0 deletions
+2
View File
@@ -28,6 +28,8 @@ char *getusershell(void);
int issetugid(void);
void setusershell(void);
int getentropy(void *buf, size_t buflen);
#ifdef __cplusplus
}
#endif