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:
committed by
waddlesplash
parent
d57510c0ff
commit
6bde05aebd
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright 2023, Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _KERNEL_RANDOM_DEFS_H
|
||||
#define _KERNEL_RANDOM_DEFS_H
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
#define RANDOM_SYSCALLS "random"
|
||||
#define RANDOM_GET_ENTROPY 1
|
||||
|
||||
|
||||
struct random_get_entropy_args {
|
||||
void* buffer;
|
||||
size_t length;
|
||||
};
|
||||
|
||||
|
||||
#endif /* _KERNEL_RANDOM_DEFS_H */
|
||||
Reference in New Issue
Block a user