mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
add default implementation of _get_entropy() that returns -1 to avoid linker warning (#2578)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
This commit is contained in:
parent
dfc26a00b0
commit
2e2651f087
1 changed files with 5 additions and 0 deletions
|
|
@ -152,6 +152,11 @@ int __attribute__((weak)) _isatty(int fd) {
|
||||||
return fd == STDIO_HANDLE_STDIN || fd == STDIO_HANDLE_STDOUT || fd == STDIO_HANDLE_STDERR;
|
return fd == STDIO_HANDLE_STDIN || fd == STDIO_HANDLE_STDOUT || fd == STDIO_HANDLE_STDERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __attribute__((weak)) _getentropy (__unused void *buffer, __unused size_t length) {
|
||||||
|
// note we don't hook this up as it isn't clear if/where it is used, and we don't particularly
|
||||||
|
// want to pull in pico_rand. the user can supply their own strong implementation if they need it!
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
// exit is not useful... no desire to pull in __call_exitprocs
|
// exit is not useful... no desire to pull in __call_exitprocs
|
||||||
void exit(int status) {
|
void exit(int status) {
|
||||||
_exit(status);
|
_exit(status);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue